/* ============================================================
   Sell or Buy — общий стиль
   Дизайн-язык: дружелюбный маркетплейс, округлые формы,
   бирюзовый акцент, крупный поиск-хиро, карточки с бейджами.
   ============================================================ */

:root {
  --bg: #f2fbfa;
  --surface: #ffffff;
  --ink: #10322f;
  --muted: #5e7c79;
  --accent: #0ea5a4;
  --accent2: #f97316;

  --accent-soft: rgba(14, 165, 164, 0.12);
  --accent2-soft: rgba(249, 115, 22, 0.14);
  --line: #d9ece9;
  --shadow-sm: 0 2px 8px rgba(16, 50, 47, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 50, 47, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 50, 47, 0.14);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1140px;
  --gutter: 16px;

  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--accent2-soft), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(42px, 7vw, 86px) 0; }
.section-tight { padding: clamp(30px, 5vw, 56px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #12b7b6);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent2), #fb923c);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo { flex: 0 0 auto; width: 40px; height: 40px; }
.brand b { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(46px, 7vw, 90px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 span { color: var(--accent); }
.hero .lead { margin-bottom: 26px; }

.hero-search {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 9px 9px 20px;
  box-shadow: var(--shadow-md);
  max-width: 520px;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
}
.hero-search input::placeholder { color: var(--muted); }

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
}
.hero-stats .stat span { color: var(--muted); font-size: 0.92rem; }

/* Hero visual — коллаж карточек на CSS */
.hero-visual { position: relative; min-height: 360px; }
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  width: 230px;
}
.float-card .thumb {
  height: 110px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.float-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.float-card .price { font-family: var(--font-head); font-weight: 900; color: var(--accent); }
.fc-1 { top: 0; left: 0; transform: rotate(-4deg); }
.fc-2 { top: 120px; right: 0; transform: rotate(3deg); z-index: 2; }
.fc-3 { bottom: 0; left: 40px; transform: rotate(5deg); }

.grad-teal { background: linear-gradient(135deg, #0ea5a4, #67e8e6); }
.grad-orange { background: linear-gradient(135deg, #f97316, #fdba74); }
.grad-mix { background: linear-gradient(135deg, #0ea5a4, #f97316); }
.grad-cool { background: linear-gradient(135deg, #0b7c7b, #34d399); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-hot { background: var(--accent2-soft); color: #c2410c; }
.badge-top { background: #fef3c7; color: #92400e; }
.badge-sale { background: #e0f2fe; color: #0369a1; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card-thumb {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-start;
  padding: 14px;
}
.card-thumb .badge { position: relative; z-index: 2; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin: 0; }
.card-meta { color: var(--muted); font-size: 0.88rem; display: flex; gap: 10px; align-items: center; }
.card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.card-price .price { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: var(--ink); }
.card-price .loc { color: var(--muted); font-size: 0.85rem; }

/* ---------- Category chips / cards ---------- */
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; }
.cat-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.cat-icon svg { width: 30px; height: 30px; }
.cat-card h3 { margin: 0; font-size: 1.15rem; }
.cat-card .count { color: var(--muted); font-size: 0.9rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Feature / steps ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.feature .f-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature .f-icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  position: absolute;
  top: -20px;
  left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #12b7b6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--shadow-md);
}
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Panels / CTA ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.cta-band {
  background: linear-gradient(135deg, #0b7c7b, #0ea5a4);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin: 0 auto 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ---------- Live feed (фишка) ---------- */
.feed-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 22px;
  align-items: center;
}
.feed-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  box-shadow: var(--shadow-sm);
}
.feed-search svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.feed-search input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.feed-select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}
.chip {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.feed-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.feed-meta strong { color: var(--ink); }

.feed-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.feed-empty svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 12px; }

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { font-weight: 600; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 6px;
}
.form-success {
  display: none;
  gap: 10px;
  align-items: center;
  background: #dcfce7;
  color: #15803d;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-top: 14px;
}
.form-success.show { display: flex; }

.map-stub {
  height: 220px;
  border-radius: var(--radius);
  margin-top: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(14,165,164,0.06) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #d9f3f1, #eafaf9);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.map-stub .pin {
  width: 44px; height: 44px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--accent2), #fb923c);
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9ddda;
  padding: 54px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand b { color: #5eead4; }
.footer-about { color: #9fc0bc; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #a9cbc7; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #8fb3af;
  font-size: 0.9rem;
}
.footer-bottom a { color: #8fb3af; }

/* ---------- Misc content ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.pill-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 36px);
}
.safety {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.safety-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.safety-item .s-ic { color: var(--accent); flex: 0 0 auto; }
.safety-item h4 { margin: 0 0 3px; font-size: 1rem; }
.safety-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px var(--gutter) 22px;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; font-size: 1.05rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feed-controls { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 440px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { width: 190px; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); padding: 14px; }
  .hero-search .btn { width: 100%; }
}

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