.deals-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.deals-wrap {
  max-width: 44rem;
}

.deals-lead {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.deals-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 40, 28, 0.12);
  padding-bottom: 0.75rem;
}

.deals-filter {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.35rem 0;
  font: inherit;
  font-weight: 700;
  color: rgba(15, 40, 28, 0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.deals-filter.is-active {
  color: #0a7f4f;
  border-bottom-color: #0a7f4f;
}

.deals-empty {
  padding: 2rem 0;
}

.deals-empty h2 {
  margin-bottom: 0.5rem;
}

.deals-list {
  display: grid;
  gap: 1rem;
}

.deals-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(15, 40, 28, 0.1);
}

.deals-card:hover .deals-card-title,
.deals-card:focus-visible .deals-card-title {
  color: #0a7f4f;
}

.deals-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.deals-card-meta,
.deal-meta-row {
  color: rgba(15, 40, 28, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
}

.deals-card-status {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a7f4f;
}

.deals-card-status.is-completed,
.deals-card-status.is-cancelled {
  color: rgba(15, 40, 28, 0.55);
}

.deals-back {
  margin-bottom: 1.25rem;
}

.deal-detail h1 {
  margin-bottom: 0.35rem;
}

.deal-status-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a7f4f;
  margin-bottom: 1.5rem;
}

.deal-block {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 40, 28, 0.1);
}

.deal-block:last-child {
  border-bottom: 0;
}

.deal-block h2 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 40, 28, 0.55);
  margin: 0 0 0.65rem;
}

.deal-block h2,
.deal-block p,
.deals-card {
  overflow-wrap: anywhere;
}

.deal-block p {
  margin: 0.25rem 0;
}

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.deal-actions .btn {
  min-width: 8rem;
}

.deal-confirm,
.deal-cancel-form {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 40, 28, 0.1);
}

.deal-confirm p,
.deal-cancel-form p {
  margin: 0 0 0.85rem;
  color: rgba(15, 40, 28, 0.75);
}

.deal-cancel-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
}

.deal-activity {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deal-activity li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  color: rgba(15, 40, 28, 0.75);
}

@media (max-width: 420px) {
  .deal-actions {
    flex-direction: column;
  }

  .deal-actions .btn {
    width: 100%;
  }
}
