/* Кузнечик.Обмен — share.sonhopps.win */
:root {
  --bg: #0b120e;
  --bg-soft: #101a13;
  --surface: #142019;
  --surface-2: #18261d;
  --line: #26362b;
  --line-soft: #1d2b22;
  --text: #e9f1e6;
  --muted: #9caf9f;
  --muted-2: #74857a;
  --accent: #b9f27a;
  --accent-2: #6fd39b;
  --warm: #e6c07a;
  --danger: #f08a7a;
  --radius: 18px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(111, 211, 155, .10), transparent 60%),
    radial-gradient(900px 500px at 8% 10%, rgba(185, 242, 122, .06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: .94rem; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #0a130d; }
.btn-primary:hover { background: #c9ff8d; color: #0a130d; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3c5342; background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-small { padding: .5rem .8rem; font-size: .84rem; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.4rem, 5vw, 4rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--accent); font-style: italic; }
.lead {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.stats {
  display: flex;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  margin: 2.4rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.stats div { margin: 0; }
.stats dt {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--text);
}
.stats dd { margin: .35rem 0 0; color: var(--muted-2); font-size: .82rem; }

.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(closest-side, rgba(185, 242, 122, .16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero-art svg { position: relative; z-index: 1; width: 100%; height: auto; }

/* sections */
.section { padding: clamp(2.4rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head h2, .cta h2, .about-teaser h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -.01em;
}
.section-head p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: #3c5342; }
.chip.is-active { background: rgba(185, 242, 122, .12); border-color: rgba(185, 242, 122, .45); color: var(--accent); }

/* grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #33483a; box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card[hidden] { display: none; }

.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1711; }
.thumb > svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .35s ease; }
.card:hover .thumb > svg { transform: scale(1.035); }
.thumb .dur, .thumb .badge {
  position: absolute;
  z-index: 2;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  padding: .32rem .46rem;
  border-radius: 7px;
}
.thumb .dur { right: .55rem; bottom: .55rem; background: rgba(5, 10, 7, .78); color: #dfe9db; }
.thumb .badge { left: .55rem; top: .55rem; background: rgba(5, 10, 7, .62); color: var(--accent); letter-spacing: .02em; }

.thumb .hop { color: #0a130d; }
.thumb .blades { color: inherit; }

.t1 { background: linear-gradient(155deg, #223424 0%, #4a6636 48%, #c9a463 100%); }
.t1 .sun { fill: #ffe7ad; opacity: .55; }
.t1 .hill { fill: #0d1811; opacity: .82; }
.t1 .hop { color: #0a130d; }
.t1 .blades { color: #0c170f; }

.t2 { background: linear-gradient(150deg, #172b2e 0%, #386253 55%, #a8cfa9 100%); }
.t2 .sun { fill: #dff6e4; opacity: .5; }
.t2 .hill { fill: #0b1a15; opacity: .78; }
.t2 .hop { color: #0a1610; }
.t2 .blades { color: #0e1e18; }

.t3 { background: linear-gradient(160deg, #3a2f1e 0%, #7a5c2e 50%, #d9b36a 100%); }
.t3 .sun { fill: #ffe2a8; opacity: .42; }
.t3 .hill { fill: #1b140a; opacity: .72; }
.t3 .hop { color: #170f07; }
.t3 .blades { color: #221708; }

.t4 { background: linear-gradient(160deg, #0d1f1a 0%, #1f4a3a 60%, #4f8a63 100%); }
.t4 .sun { fill: #d8f7c2; opacity: .22; }
.t4 .hill { fill: #081410; opacity: .8; }
.t4 .hop { color: #061009; }

.t5 { background: linear-gradient(160deg, #1a2233 0%, #3a4a5e 55%, #7c6a86 100%); }
.t5 .sun { fill: #f4e9c9; opacity: .65; }
.t5 .hill { fill: #0c1119; opacity: .8; }
.t5 .hop { color: #080d12; }
.t5 .blades { color: #0b1119; }

.t6 { background: linear-gradient(155deg, #1a1f1a 0%, #2e3a2c 55%, #5c6b4e 100%); }
.t6 .sun { fill: #e8f3d0; opacity: .25; }
.t6 .hill { fill: #0b0f0b; opacity: .82; }
.t6 .hop { color: #090d09; }

.card-body { padding: .95rem 1.05rem 1.15rem; }
.card-body h3 { margin: 0; font-size: 1.01rem; font-weight: 600; line-height: 1.32; letter-spacing: -.005em; }
.card-body .meta { margin: .42rem 0 0; color: var(--muted-2); font-size: .8rem; }

/* cta + about teaser */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(185, 242, 122, .22);
  border-radius: 22px;
  background:
    radial-gradient(600px 240px at 85% 20%, rgba(185, 242, 122, .14), transparent 65%),
    var(--surface-2);
}
.cta p { margin: .45rem 0 0; color: var(--muted); max-width: 58ch; }
.about-teaser {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line-soft);
}
.about-teaser p { margin: 0; color: var(--muted); }
.about-teaser a { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 600; }

/* footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0 2.6rem;
  color: var(--muted-2);
  font-size: .85rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.site-footer .sep { margin-left: auto; }
.site-footer a { color: var(--muted); }

/* dialogs */
dialog.modal {
  width: min(760px, calc(100% - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
  margin: auto;
}
dialog.modal::backdrop { background: rgba(3, 7, 5, .74); backdrop-filter: blur(5px); }
.modal-shell { position: relative; border-radius: 22px; overflow: hidden; }
.modal-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(5, 10, 7, .62);
  color: #e9f1e6;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(5, 10, 7, .85); }
.modal-thumb .thumb { border-radius: 0; }
.modal-body { padding: 1.35rem 1.5rem 1.7rem; }
.modal-body h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.55rem; }
.modal-body .meta { margin: .4rem 0 0; color: var(--muted-2); font-size: .85rem; }
.modal-desc { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }

.gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  padding: .95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.gate p { margin: 0; color: var(--muted); font-size: .9rem; }

.notice {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(185, 242, 122, .28);
  border-radius: 14px;
  background: rgba(185, 242, 122, .06);
}
.notice p { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; }
.notice .invite-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.notice input { flex: 1 1 220px; }
.form-ok { margin: .7rem 0 0; color: var(--accent); font-size: .88rem; }

/* forms */
input, select, textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(185, 242, 122, .55);
  box-shadow: 0 0 0 3px rgba(185, 242, 122, .10);
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; margin: 0 0 .35rem; color: var(--muted); font-size: .84rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .85rem; }
.check input { width: auto; margin-top: .15rem; }
.form-card {
  max-width: 720px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
}
.form-card h1 { margin: 0 0 .4rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.form-card .lead { margin-top: .5rem; font-size: .96rem; }
.form-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.form-hint { margin: 0; color: var(--muted-2); font-size: .8rem; }
.success {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(185, 242, 122, .3);
  border-radius: 14px;
  background: rgba(185, 242, 122, .07);
}
.success h2 { margin: 0 0 .4rem; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.success p { margin: 0; color: var(--muted); font-size: .92rem; }

/* prose pages */
.prose { max-width: 760px; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.prose h1 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3rem); }
.prose h2 { margin: 2rem 0 .6rem; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: .35rem 0; }
.prose details { border-top: 1px solid var(--line-soft); padding: .9rem 0; }
.prose details summary { cursor: pointer; color: var(--text); font-weight: 600; }
.prose details p { margin: .6rem 0 0; }
.prose .back { display: inline-block; margin-top: 2rem; color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .about-teaser { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-actions .btn { padding: .55rem .8rem; font-size: .82rem; }
  .field-row { grid-template-columns: 1fr; }
  .stats { gap: 1.2rem; }
  .stats dt { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
