.rfq-head { margin-bottom: 1.5rem; }
.rfq-head__actions { margin-top: 1rem; }
.rfq-head__stats { margin-top: 0.5rem; font-size: 0.875rem; }

/* Промо-карусель над заголовком ленты */
.rfq-promo-carousel {
  position: relative;
  margin: 0 0 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--color-border, #e5e7eb);
  background: #0f172a;
}

.rfq-promo-carousel__track.carousel-track {
  min-height: 0;
}

.rfq-promo-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: clamp(10.5rem, 28vw, 13.5rem);
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.rfq-promo-carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 90% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(135deg, #1e3a5f 0%, #0f172a 55%, #1a2332 100%);
}

.rfq-promo-carousel__slide--buyer::before {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(59, 130, 246, 0.35), transparent 50%),
    linear-gradient(125deg, #1e3a5f 0%, #0f172a 60%, #172554 100%);
}

.rfq-promo-carousel__slide--seller::before {
  background:
    radial-gradient(ellipse 70% 80% at 100% 10%, rgba(16, 185, 129, 0.28), transparent 50%),
    linear-gradient(125deg, #14532d 0%, #0f172a 55%, #1e293b 100%);
}

.rfq-promo-carousel__slide--services::before {
  background:
    radial-gradient(ellipse 70% 80% at 95% 15%, rgba(245, 158, 11, 0.28), transparent 50%),
    linear-gradient(125deg, #78350f 0%, #0f172a 55%, #1c1917 100%);
}

.rfq-promo-carousel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.15rem 3.25rem 1.35rem 1.25rem;
  max-width: 40rem;
  color: #f8fafc;
}

.rfq-promo-carousel__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.rfq-promo-carousel__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.rfq-promo-carousel__text {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.88);
}

.rfq-promo-carousel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.rfq-promo-carousel__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.rfq-promo-carousel__cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.rfq-promo-carousel__cta--ghost:hover,
.rfq-promo-carousel__cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.rfq-promo-carousel__controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.rfq-promo-carousel__nav {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rfq-promo-carousel__nav:hover,
.rfq-promo-carousel__nav:focus-visible {
  background: rgba(15, 23, 42, 0.7);
}

.rfq-promo-carousel__nav[data-carousel-prev] { left: 0.5rem; }
.rfq-promo-carousel__nav[data-carousel-next] { right: 0.5rem; }

.rfq-promo-carousel__indicators {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.rfq-promo-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.rfq-promo-carousel__dot.is-active {
  background: #fff;
  width: 1.1rem;
}

.rfq-page-howto {
  margin: 0 0 1.25rem;
  padding: 0;
}

.rfq-page-howto__summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
}

.rfq-page-howto__summary::-webkit-details-marker { display: none; }
.rfq-page-howto__summary::before { content: "▸ "; color: #6b7280; }
.rfq-page-howto[open] .rfq-page-howto__summary::before { content: "▾ "; }

.rfq-page-howto__body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.rfq-page-howto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin: 0.85rem 0 1rem;
}

.rfq-page-howto__role {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.rfq-page-howto__body ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.rfq-page-howto__rules {
  margin: 0;
  padding: 0.75rem 0 0 1.15rem;
  border-top: 1px dashed var(--color-border, #e5e7eb);
  display: grid;
  gap: 0.3rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.rfq-list-empty {
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .rfq-promo-carousel__inner {
    padding: 1rem 2.75rem 1.75rem 1rem;
  }

  .rfq-page-howto__grid {
    grid-template-columns: 1fr;
  }
}

.rfq-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1rem; margin-bottom: 1.5rem; }
.rfq-list { display: grid; gap: 1rem; }
.rfq-card__title { margin: 0 0 0.5rem; font-size: 1.125rem; }
.rfq-card__meta { margin: 0 0 0.75rem; font-size: 0.875rem; }
.rfq-card__lines { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.rfq-card__footer { font-size: 0.875rem; margin-bottom: 0.75rem; }
.rfq-status { font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: #eef2f7; }
.rfq-status--open, .rfq-status--has_offers { background: #e8f5e9; }
.rfq-status--pending_buyer_confirm, .rfq-status--deal_reported { background: #fff8e1; }
.rfq-status--completed, .rfq-status--auto_confirmed { background: #e3f2fd; }
.rfq-status--disputed { background: #ffebee; }
.rfq-progress-line {
  background: #f4f6f8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0.75rem 0;
}
.rfq-progress-line__done { color: #1a7f37; }
.rfq-progress-line__inprog { color: #bf8700; }
.rfq-progress-line__open { color: #57606a; }
.rfq-bulk-input { margin-bottom: 1.25rem; padding: 1rem; background: #f8fafc; }
.rfq-buyer-free-note { font-size: 0.875rem; margin: 0.5rem 0 0; }
.rfq-create-form .field { margin-bottom: 1rem; }
.rfq-create-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rfq-create-line { position: relative; margin-bottom: 1rem; padding: 1rem; }
.rfq-create-line__remove { position: absolute; top: 0.5rem; right: 0.5rem; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.rfq-line-budget-total { font-size: 0.875rem; margin: 0.25rem 0 0.5rem; }
.rfq-budget { font-size: 0.875rem; }
.rfq-offer-line-total { font-size: 0.875rem; margin: 0.35rem 0; }
.rfq-line-extra { margin-top: 0.5rem; font-size: 0.875rem; }
.rfq-line-extra summary { cursor: pointer; color: #57606a; }
.rfq-line-photo { margin-top: 0.5rem; }
.rfq-line-image-hint { font-size: 0.8125rem; margin: 0.35rem 0 0; }
.rfq-line-image-preview { display: block; max-width: 120px; max-height: 120px; margin-top: 0.5rem; border-radius: 0.375rem; object-fit: cover; border: 1px solid #e5e7eb; }
.rfq-line-image-preview[hidden] { display: none; }
.rfq-line-thumb { object-fit: cover; border-radius: 0.25rem; vertical-align: middle; margin-right: 0.35rem; border: 1px solid #e5e7eb; }
.rfq-line-thumb--list { width: 32px; height: 32px; }
.rfq-line-has-image { margin-right: 0.25rem; font-size: 0.875rem; }
.rfq-line-ref { margin: 0.35rem 0; font-size: 0.875rem; }
.rfq-line-figure { margin: 0.5rem 0 0; }
.rfq-line-image { max-width: min(100%, 320px); height: auto; border-radius: 0.375rem; border: 1px solid #e5e7eb; }
.rfq-card__lines li { display: flex; align-items: center; gap: 0.35rem; }
.rfq-more-details { margin: 0.5rem 0; font-size: 0.875rem; }
.rfq-more-details summary { cursor: pointer; }
.rfq-line-details summary { cursor: pointer; list-style: none; }
.rfq-line-details summary::-webkit-details-marker { display: none; }
.rfq-lines-list { margin: 0; padding-left: 0; list-style: none; }
.rfq-lines-list > li { margin-bottom: 0.5rem; }
.rfq-offer-line { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.rfq-offer-line__summary { cursor: pointer; }
.rfq-offer-line__fields { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.rfq-offer-line__check { display: inline-flex; gap: 0.5rem; align-items: center; }
.rfq-consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0; font-size: 0.875rem; }
.rfq-hint { cursor: help; color: #57606a; margin-left: 0.25rem; }
.rfq-tip { display: block; margin: 0.25rem 0 1rem; font-size: 0.8125rem; color: #57606a; }
.rfq-offer-total-commission { font-size: 0.875rem; margin: 0.5rem 0; }
.rfq-commission-line { font-size: 0.8125rem; margin-top: 0.25rem; }
.rfq-offer-card { margin-bottom: 1rem; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.rfq-offer-card__summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; cursor: pointer; font-weight: 600; }
.rfq-offer-card__total { margin-left: auto; }
.rfq-offer-card__lines { margin: 0.75rem 0; padding-left: 1.25rem; }
.rfq-offer-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rfq-deal-card { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e7eb; }
.rfq-deal-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rfq-deal-card__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.rfq-deal-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.rfq-deal-table td, .rfq-deal-table th { padding: 0.35rem 0; text-align: left; }
.rfq-deal-table__amount, .rfq-deal-table__total { text-align: right; white-space: nowrap; }
.rfq-deal-table tfoot th { font-weight: normal; color: #57606a; }
.rfq-deal-table__total strong { font-size: 1.125rem; color: #111; }
.rfq-deal-commission-note { font-size: 0.8125rem; margin: 0.5rem 0; }
.rfq-deal-auto-note { font-size: 0.8125rem; }
.rfq-deal-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rfq-decline-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rfq-decline-modal[hidden], .rfq-modal[hidden] { display: none; }
.rfq-decline-modal__backdrop, .rfq-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.rfq-decline-modal__panel, .rfq-modal__panel { position: relative; width: min(100%, 32rem); z-index: 1; max-height: 90vh; overflow-y: auto; }
.rfq-decline-modal__actions, .rfq-modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }
.rfq-modal__actions--stack { flex-direction: column; }
.rfq-modal__actions--stack .btn { width: 100%; }
.rfq-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rfq-engagement-card { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--border-color, #e2e8f0); border-radius: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rfq-engagement-card__status { width: 100%; margin: 0 0 0.25rem; }
.rfq-deal-card--seller { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border-color, #e2e8f0); border-radius: 0.5rem; }
.rfq-alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin: 0.75rem 0; }
.rfq-alert--info { background: #e3f2fd; }
.rfq-alert--muted { background: #f3f4f6; }
.rfq-alert--success { background: #e8f5e9; }
.rfq-buyer-contacts { margin: 0.75rem 0; }
.rfq-contacts-placeholder { font-size: 0.875rem; margin: 0.5rem 0 1rem; }
.rfq-seller-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.rfq-seller-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 1.5rem;
}
.rfq-after-no-deal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.rfq-report-row { display: block; margin-bottom: 0.75rem; padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.rfq-report-row__amount { display: block; margin-top: 0.5rem; }
.rfq-report-total { margin: 0.75rem 0; }
.rfq-report-commission { font-size: 0.875rem; }
.rfq-notice { background: #fff8e1; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.rfq-cancel-reason { display: block; margin-top: 0.35rem; }
.rfq-pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.rfq-cabinet-pending { margin-bottom: 1.5rem; }
.rfq-cabinet-pending-card__lines { margin: 0.5rem 0; padding-left: 1.25rem; }

@media (max-width: 768px) {
  .rfq-create-form .field-row { grid-template-columns: 1fr; }
  .rfq-card { padding-bottom: 72px; }
  .rfq-form input,
  .rfq-form select,
  .rfq-form textarea,
  .rfq-create-form input,
  .rfq-create-form select,
  .rfq-create-form textarea,
  .rfq-offer-form input,
  .rfq-offer-form select,
  .rfq-offer-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    font-size: 16px;
  }
  .rfq-deal-card__actions { flex-direction: column; }
  .rfq-deal-card__actions .btn { width: 100%; }
  .rfq-seller-actions--sticky .btn { flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .rfq-create-form .field-row { grid-template-columns: 1fr; }
}
