.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 40px 32px 56px;
}

.detail-main {
  min-width: 0;
  width: 100%;
}

.detail-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-main h2 {
  margin-top: 34px;
  font-size: 28px;
}

.detail-main p {
  line-height: 1.65;
}

.detail-copy-block {
  display: grid;
  max-width: 860px;
  gap: 12px;
}

.detail-copy-paragraph {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-lead-copy {
  gap: 8px;
}

.detail-key-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 30px;
}

.detail-key-facts div {
  min-width: 0;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.detail-key-facts dt {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-key-facts dd {
  margin: 6px 0 0;
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-passport {
  display: grid;
  gap: 14px;
  margin: 24px 0 30px;
}

.detail-passport h2 {
  margin: 0;
  font-size: 24px;
}

.detail-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-condition {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.detail-condition-budget {
  border-color: var(--ff-color-coral-shade-1);
  background: #fff7f5;
}

.detail-condition span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-condition strong {
  color: var(--ff-color-deep-purpur);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-condition-budget strong {
  font-size: 20px;
}

.detail-condition small {
  color: var(--ff-color-text-muted);
  line-height: 1.35;
}

.detail-section {
  margin-top: 24px;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 22px;
}

.detail-section h2 {
  margin: 0 0 10px;
}

.detail-action-panel {
  align-self: start;
  display: grid;
  position: sticky;
  top: 18px;
  gap: 14px;
}

.detail-action-panel h2,
.detail-response-hint h3 {
  margin: 0;
}

.detail-action-panel p {
  margin: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.55;
}

.detail-action-panel .button-link {
  justify-content: center;
  width: 100%;
}

.detail-response-hint {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 14px;
}

.detail-response-hint h3 {
  color: var(--ff-color-deep-purpur);
  font-size: 18px;
}

.detail-response-hint ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ff-color-text-muted);
}

.response-form-section {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--ff-color-border);
}

.response-page {
  padding: 40px 32px 56px;
}

.response-success-page {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 40px 32px 56px;
  background:
    linear-gradient(135deg, rgba(255, 118, 99, 0.12), rgba(246, 241, 255, 0.82)),
    var(--ff-color-soft-purple);
}

.response-success-card {
  display: grid;
  width: min(860px, 100%);
  gap: 18px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(55, 11, 39, 0.08);
}

.success-status {
  display: grid;
  gap: 4px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--ff-color-surface);
}

.success-status span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-status strong {
  color: var(--ff-color-deep-purpur);
  font-size: 28px;
  line-height: 1.15;
}

.success-status-sent {
  border-color: #b8e8c9;
  background: #f0fbf4;
}

.success-status-duplicate {
  border-color: var(--ff-color-coral-shade-1);
  background: #fff7f5;
}

.success-tender-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.response-success-card h1 {
  margin: 0;
  color: var(--ff-color-deep-purpur);
  font-size: 34px;
  line-height: 1.15;
}

.response-success-card .lead {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.success-next-steps {
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--ff-color-surface);
}

.success-next-steps h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.success-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ff-color-text-muted);
  list-style: none;
}

.success-step-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.success-step-list span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ff-color-deep-purpur);
  font-weight: 800;
}

.success-step-list p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link-secondary {
  border: 1px solid var(--ff-color-border);
  color: var(--ff-color-deep-purpur);
  background: #fff;
}

.response-page-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.response-page-header-card {
  display: grid;
  max-width: none;
  gap: 10px;
  border: 1px solid var(--ff-color-border);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(55, 11, 39, 0.05);
}

.response-page-header-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px 22px;
}

.response-header-main {
  min-width: 0;
}

.response-header-tags .tender-badges {
  max-width: 360px;
  justify-content: flex-end;
}

.response-page-header-compact .detail-key-facts {
  grid-column: 1 / -1;
}

.response-page-header-compact h1 {
  font-size: 38px;
}

.response-page-header h1 {
  margin: 0 0 8px;
  font-size: 42px;
}

.response-page-header p {
  margin: 0;
  color: var(--ff-color-text-muted);
  font-size: 18px;
}

.response-page-header.response-page-header-compact h1 {
  font-size: 38px;
}

.response-context-facts {
  margin: 10px 0 0;
}

.response-context-facts div {
  background: var(--ff-color-surface);
}

.response-form-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 320px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.response-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.response-form-card {
  max-width: none;
}

.response-summary-panel {
  position: sticky;
  top: 18px;
}

.response-summary-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.response-summary-title {
  margin: 0;
  color: var(--ff-color-deep-purpur);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.response-sidebar-meta {
  margin: 8px 0 0;
  color: var(--ff-color-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.response-before-submit {
  margin-top: 16px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: var(--ff-color-surface);
}

.manager-preview-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(55, 11, 39, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.manager-preview-panel h3 {
  margin: 0;
  font-size: 18px;
}

.manager-preview-panel div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--ff-color-border);
  padding-top: 10px;
}

.manager-preview-panel span {
  color: var(--ff-color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.manager-preview-panel strong {
  color: var(--ff-color-deep-purpur);
  font-size: 14px;
  line-height: 1.35;
}

.response-before-submit h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.response-before-submit ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  color: var(--ff-color-text-muted);
  line-height: 1.45;
  list-style: none;
}

.response-checklist li {
  position: relative;
  padding-left: 18px;
}

.response-checklist li::before {
  position: absolute;
  left: 0;
  color: var(--ff-color-coral);
  content: "•";
  font-weight: 800;
}
