@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f7f1e7;
  --surface: #ffffff;
  --ink: #1d1f1e;
  --muted: #6d6a63;
  --primary: #cc4b2f;
  --primary-strong: #f0703c;
  --accent: #2d7f6d;
  --accent-soft: #cfe9e1;
  --highlight: #f5c77a;
  --shadow: 0 24px 60px rgba(28, 27, 25, 0.12);
  --outline: #e7ded3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(245, 199, 122, 0.35), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(45, 127, 109, 0.18), transparent 45%),
    linear-gradient(160deg, #fff7ed 0%, var(--bg) 45%, #f1e4d3 100%);
  color: var(--ink);
  min-height: 100vh;
  padding: 32px 24px 80px;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(204, 75, 47, 0.28), transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(45, 127, 109, 0.25), transparent 70%);
  bottom: -80px;
  left: -60px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 32px;
  animation: fade-in 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 24px;
}

.badge {
  align-self: flex-start;
  background: var(--highlight);
  color: #4b2c20;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f3f39;
  font-size: 12px;
  font-weight: 600;
}

.hero-panel {
  background: linear-gradient(160deg, #fff6e8, #ffffff);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
}

.hero-panel ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-note {
  margin: 0;
  font-size: 12px;
  color: #5f4d3d;
  background: #fff0d9;
  padding: 10px 12px;
  border-radius: 12px;
}

p {
  margin: 0;
  line-height: 1.6;
}

.grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: card-in 0.6s ease-out;
}

.grid > .card:nth-child(1) {
  animation-delay: 0.05s;
}

.grid > .card:nth-child(2) {
  animation-delay: 0.12s;
}

.grid > .card:nth-child(3) {
  animation-delay: 0.18s;
}

.grid > .card:nth-child(4) {
  animation-delay: 0.24s;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 14px;
}

input,
select,
textarea {
  border: 1px solid #ded9cf;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(204, 75, 47, 0.25);
}

button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #ece6db;
}

.contacts-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.contacts-panel.is-hidden {
  display: none;
}

.pagination {
  justify-content: space-between;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #f0eadf;
}

th {
  background: #fff7ea;
  font-weight: 600;
}

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

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0ede6;
  color: var(--ink);
  font-size: 12px;
}

.preview {
  background: #fff4e1;
  border-radius: 14px;
  padding: 12px 16px;
}

.preview .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.status {
  font-size: 12px;
  color: var(--muted);
}

.actions {
  justify-content: flex-start;
}

.small {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .span-2 {
    grid-column: span 1;
  }

  .card-header {
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
