@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Quantico:wght@700&family=Syne:wght@600;700&family=Unbounded:wght@500;700&display=swap");

:root {
  --ink: #414a57;
  --muted: #69707a;
  --soft: #f7f7f9;
  --line: #d0d9dc;
  --orange: #ff8000;
  --white: #ffffff;
  --dark: #202833;
  --green: #1f8a5b;
  --red: #af3333;
  --shadow: 0 24px 70px rgba(32, 40, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(32, 40, 51, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 124px;
  min-height: 34px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 14px;
}

.brand-mark img {
  display: block;
  width: 112px;
  max-height: 30px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: Quantico, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

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

.nav-btn,
.button,
.icon-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: Unbounded, Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.nav-btn {
  min-height: 36px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-btn.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 46px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(32, 40, 51, 0.94), rgba(65, 74, 87, 0.78)),
    url("https://small-laser.com/cdn/shop/files/cut_air2_fda43e14-1555-419e-be08-870686654c08.webp?v=1779158040&width=1600") center / cover;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--orange);
  font-family: Syne, Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: Quantico, Archivo, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 78px);
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

.hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.button.secondary {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.metric strong {
  display: block;
  font-family: Quantico, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.rules-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.rules-intro {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.rules-intro h2 {
  font-size: 26px;
}

.rules-intro p,
.rule-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.rule-card {
  min-height: 172px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.rule-card:last-child {
  border-right: 0;
}

.rule-card > span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: Quantico, sans-serif;
  font-size: 22px;
}

.rule-card h3 {
  font-size: 16px;
}

.rule-card p {
  font-size: 14px;
}

.points-rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, #f7f7f9, #ffffff);
}

.points-rules article {
  min-height: 116px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.points-rules article:last-child {
  border-right: 0;
}

.points-rules strong {
  display: block;
  color: var(--ink);
  font-family: Quantico, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.points-rules span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.workspace > * {
  min-width: 0;
}

.submit-panel {
  display: grid;
  gap: 16px;
}

.panel-card,
.content-panel,
.feed-card,
.detail-card,
.leader-card,
.moderation-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.panel-card {
  min-width: 0;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 17px;
}

.panel-head span {
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.stacked-form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-size: 14px;
  outline: none;
  padding: 10px 12px;
  text-transform: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 128, 0, 0.12);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkline input {
  width: 16px;
  min-height: 16px;
}

.content-panel {
  min-height: 720px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters select {
  width: auto;
  min-width: 150px;
}

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  background: #fff4e8;
  color: var(--ink);
  font-weight: 700;
}

.feed-list,
.leader-list,
.moderation-list {
  display: grid;
  gap: 14px;
}

.feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
}

.feed-card.project {
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.project-thumb {
  width: 150px;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag,
.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 8px;
  color: var(--ink);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.status {
  border-color: rgba(31, 138, 91, 0.24);
  background: rgba(31, 138, 91, 0.1);
  color: var(--green);
}

.status.pending,
.status.in_review {
  border-color: rgba(255, 128, 0, 0.24);
  background: rgba(255, 128, 0, 0.1);
  color: #a65700;
}

.status.rejected,
.status.hidden {
  border-color: rgba(175, 51, 51, 0.24);
  background: rgba(175, 51, 51, 0.1);
  color: var(--red);
}

.feed-card p,
.detail-card p,
.moderation-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.feed-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 110px;
}

.small-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.small-btn.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.small-btn.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.empty {
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.leader-card,
.moderation-card,
.detail-card {
  padding: 18px;
}

.points-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.points-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(128px, 0.55fr));
  border: 1px solid var(--line);
  background: var(--white);
}

.points-brief > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.points-brief > div:last-child {
  border-right: 0;
}

.points-brief h3 {
  margin: 4px 0 8px;
}

.points-brief p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.points-kpi {
  display: grid;
  align-content: center;
  gap: 4px;
}

.points-kpi strong {
  font-family: Quantico, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.points-kpi span,
.points-rule-strip span,
.progress-copy {
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.points-rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.points-rule-strip span {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 8px 10px;
}

.leader-list {
  display: grid;
  gap: 12px;
}

.leader-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-family: Quantico, sans-serif;
}

.leader-main {
  min-width: 0;
}

.progress-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--orange);
}

.progress-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.points {
  font-family: Quantico, sans-serif;
  font-size: 28px;
  text-align: right;
}

.points small {
  display: block;
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.moderation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.moderation-actions {
  display: flex;
  gap: 8px;
  align-items: start;
}

dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(32, 40, 51, 0.58);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  width: 36px;
  height: 36px;
}

#dialog-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: auto;
}

.answer-card {
  border: 1px solid var(--line);
  padding: 16px;
}

.answer-card.best {
  border-color: var(--orange);
  background: #fff8f0;
}

.answer-inline-form {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 18px;
}

.answer-inline-form .panel-head {
  margin-bottom: 12px;
}

@media (max-width: 1120px) {
  .hero,
  .workspace,
  .rules-band {
    grid-template-columns: 1fr;
  }

  .submit-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .points-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .toolbar,
  .feed-card,
  .feed-card.project,
  .moderation-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
    gap: 14px;
    flex-direction: column;
    padding: 14px;
  }

  .topnav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-btn {
    width: 100%;
    min-width: 0;
  }

  main {
    padding: 14px;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero-metrics,
  .rules-grid,
  .points-rules,
  .points-brief,
  .submit-panel,
  .field-row {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: start;
  }

  .brand-mark {
    width: 104px;
    padding-right: 10px;
  }

  .brand-mark img {
    width: 94px;
  }

  .rule-card,
  .points-brief > div,
  .points-rules article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-head {
    display: grid;
    gap: 6px;
  }

  .panel-head span {
    text-align: left;
  }

  .rule-card:last-child,
  .points-brief > div:last-child,
  .points-rules article:last-child {
    border-bottom: 0;
  }

  .filters {
    width: 100%;
    flex-direction: column;
  }

  .project-thumb {
    width: 100%;
  }

  .leader-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .points {
    grid-column: 1 / -1;
    text-align: left;
  }

  .progress-copy {
    justify-content: start;
  }
}
