/* ============================================================
   Интерактивный подбор техники «Русич»
   Все стили изолированы префиксом .rsq
   ============================================================ */

.rsq {
  --rsq-primary: #3c5bb1;
  --rsq-primary-dark: #2f4a96;
  --rsq-primary-light: #eef2fb;
  --rsq-primary-soft: #dfe7fa;
  --rsq-ink: #172033;
  --rsq-muted: #66718a;
  --rsq-line: #e1e6f0;
  --rsq-line-strong: #c8d2e5;
  --rsq-bg: #f5f7fb;
  --rsq-success: #167a4b;
  --rsq-success-bg: #e9f8f0;
  --rsq-warning: #a56200;
  --rsq-warning-bg: #fff4e2;
  --rsq-danger: #cf3f3f;
  --rsq-radius: 18px;
  --rsq-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  box-sizing: border-box;
  width: 100%;
  max-width: 1470px;
  margin: 0 auto;
  color: var(--rsq-ink);
  font-family: var(--rsq-font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.rsq *,
.rsq *::before,
.rsq *::after {
  box-sizing: border-box;
}

.rsq :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

.rsq img {
  max-width: 100%;
}

.rsq .rsq-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -2px;
}

.rsq :where(a) {
  color: var(--rsq-primary);
}

.rsq__shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rsq-line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(26, 43, 82, 0.07);
}

/* ---------- Основная область ---------- */

.rsq__body {
  padding: clamp(18px, 3vw, 30px);
}

.rsq__progress {
  margin-bottom: clamp(18px, 2.5vw, 26px);
}

.rsq__progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--rsq-muted);
  font-size: 12.5px;
}

.rsq__progress-step {
  font-weight: 650;
  color: var(--rsq-primary);
  letter-spacing: 0.01em;
}

.rsq__progress-step--done {
  color: var(--rsq-success);
}

.rsq__progress-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsq__progress-track {
  overflow: hidden;
  height: 6px;
  border-radius: 99px;
  background: #edf0f6;
}

.rsq__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rsq-primary) 0%, #6482d6 100%);
  transition: width 0.35s ease;
}

/* ---------- Шаг ---------- */

.rsq-step {
  animation: rsq-fade 0.3s ease both;
}

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

.rsq-step__head {
  max-width: 700px;
  margin-bottom: 18px;
}

.rsq-step__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--rsq-primary-light);
  color: var(--rsq-primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsq-step__title {
  margin: 10px 0 6px;
  font-size: clamp(21px, 2.7vw, 29px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.rsq-step__title:focus {
  outline: none;
}

.rsq-step__lead {
  max-width: 620px;
  margin: 0;
  color: var(--rsq-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- Опции ---------- */

.rsq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.rsq-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rsq-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 74px;
  margin: 0;
  padding: 13px;
  border: 1.5px solid var(--rsq-line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.rsq-option:hover {
  border-color: #b9c6e4;
  box-shadow: 0 7px 20px rgba(25, 45, 92, 0.06);
  transform: translateY(-1px);
}

.rsq-option:focus-within {
  outline: 2px solid #9db2e8;
  outline-offset: 2px;
}

.rsq-option.is-selected {
  border-color: var(--rsq-primary);
  background: var(--rsq-primary-light);
  box-shadow: 0 0 0 3px rgba(60, 91, 177, 0.07);
}

.rsq-option__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rsq-option__icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f1f5fc;
  color: var(--rsq-primary);
  transition: background 0.18s ease;
}

.rsq-option.is-selected .rsq-option__icon {
  background: #fff;
}

.rsq-option__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 4px;
}

.rsq-option__title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rsq-option__desc {
  display: block;
  margin-top: 3px;
  color: var(--rsq-muted);
  font-size: 12px;
  line-height: 1.4;
}

.rsq-option__meta {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f0f3f9;
  color: #59647a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.rsq-option.is-selected .rsq-option__meta {
  background: #fff;
  color: var(--rsq-primary);
}

.rsq-option__mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-left: auto;
  border: 1.5px solid #c6d0e2;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.rsq-option.is-selected .rsq-option__mark {
  border-color: var(--rsq-primary);
  background: var(--rsq-primary);
}

.rsq-option.is-selected .rsq-option__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
}

.rsq-option--multi .rsq-option__mark {
  border-radius: 6px;
}

.rsq-option--multi.is-selected .rsq-option__mark::after {
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  margin: 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: none;
  transform: rotate(43deg);
}

.rsq-option--group {
  min-height: 96px;
  padding: 15px;
}

.rsq-option--group .rsq-option__icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.rsq-option--group .rsq-option__title {
  font-size: 16px;
}

/* ---------- Подсказки под опциями ---------- */

.rsq-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--rsq-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.rsq-hint .rsq-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--rsq-primary);
}

.rsq-hint--accent {
  padding: 11px 13px;
  border-radius: 11px;
  background: #f7f9fd;
  border: 1px solid #e7ecf6;
}

/* ---------- Навигация ---------- */

.rsq-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.rsq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.rsq-btn .rsq-icon {
  flex: 0 0 auto;
}

.rsq-btn--primary {
  background: var(--rsq-primary);
  color: #fff;
  box-shadow: 0 9px 20px rgba(60, 91, 177, 0.22);
}

.rsq-btn--primary:hover:not(:disabled) {
  background: var(--rsq-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(60, 91, 177, 0.27);
}

.rsq-btn--primary:disabled {
  background: #c8d2e6;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.rsq-btn--ghost {
  border-color: var(--rsq-line-strong);
  background: #fff;
  color: var(--rsq-ink);
}

.rsq-btn--ghost:hover {
  border-color: var(--rsq-primary);
  color: var(--rsq-primary);
}

.rsq-btn--soft {
  background: var(--rsq-primary-light);
  color: var(--rsq-primary);
}

.rsq-btn--soft:hover {
  background: var(--rsq-primary-soft);
}

.rsq-btn--sm {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.rsq-btn--block {
  width: 100%;
}

.rsq-nav__spacer {
  flex: 1 1 auto;
}

.rsq-nav__note {
  color: var(--rsq-muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-align: right;
}

/* ---------- Результаты ---------- */

.rsq-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rsq-results-head .rsq-step__head {
  margin-bottom: 0;
}

.rsq-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 15px;
  padding: 10px 12px;
  border: 1px solid #f2dfba;
  border-radius: 10px;
  background: #fffaf0;
  color: #7c5714;
  font-size: 12px;
  line-height: 1.45;
}

.rsq-notice .rsq-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.rsq-notice--error {
  border-color: #f0c7c7;
  background: #fff5f5;
  color: #a12626;
}

.rsq-loader {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px;
  border: 1px solid var(--rsq-line);
  border-radius: 14px;
  background: var(--rsq-bg);
  color: var(--rsq-muted);
  font-size: 14px;
}

.rsq-loader__spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--rsq-primary-soft);
  border-top-color: var(--rsq-primary);
  border-radius: 50%;
  animation: rsq-spin 0.8s linear infinite;
}

@keyframes rsq-spin {
  to {
    transform: rotate(360deg);
  }
}

.rsq-product {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 11px;
  border: 1.5px solid var(--rsq-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rsq-product--best {
  border-color: #b9c7ea;
  box-shadow: 0 12px 30px rgba(32, 55, 112, 0.07);
}

.rsq-product.is-hidden {
  display: none;
}

.rsq-product.is-requested {
  border-color: var(--rsq-success);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.09);
}

.rsq-product__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 14px;
  background: linear-gradient(145deg, #f3f6fc 0%, #e9eef9 100%);
}

.rsq-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

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

.rsq-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--rsq-primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(34, 55, 110, 0.18);
}

.rsq-badge--product {
  background: #fff;
  color: var(--rsq-primary);
  border: 1px solid #d8e1f4;
  box-shadow: none;
}

.rsq-product__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
}

.rsq-product__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rsq-product__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.rsq-product__tagline {
  margin: 4px 0 0;
  color: var(--rsq-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rsq-product__price {
  flex: 0 0 auto;
  color: var(--rsq-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.rsq-product__price small {
  display: block;
  margin-top: 3px;
  color: var(--rsq-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
}

.rsq-product__price.is-over {
  color: var(--rsq-warning);
}

.rsq-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--rsq-success-bg);
  color: var(--rsq-success);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.4;
}

.rsq-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.rsq-stock--out {
  background: var(--rsq-warning-bg);
  color: var(--rsq-warning);
}

.rsq-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.rsq-spec {
  padding: 4px 7px;
  border-radius: 7px;
  background: #f3f5fa;
  color: #536078;
  font-size: 10.5px;
  line-height: 1.4;
}

.rsq-spec b {
  color: #2c374c;
  font-weight: 700;
}

.rsq-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.rsq-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--rsq-primary-light);
  color: #35529f;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.rsq-flag--good {
  background: var(--rsq-success-bg);
  color: #167a4b;
}

.rsq-flag--warn {
  background: var(--rsq-warning-bg);
  color: #8a5200;
}

.rsq-why {
  display: grid;
  gap: 3px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.rsq-why li {
  position: relative;
  padding-left: 18px;
  color: #465168;
  font-size: 11.5px;
  line-height: 1.45;
}

.rsq-why li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--rsq-success);
  border-bottom: 2px solid var(--rsq-success);
  transform: rotate(-45deg);
}

.rsq-product__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
}

.rsq-products-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
}

.rsq-products-controls .rsq-btn {
  flex: 0 0 auto;
}

.rsq [hidden] {
  display: none !important;
}

/* ---------- Навесное к технике ---------- */

.rsq-extras {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rsq-line);
}

.rsq-extras__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rsq-extras__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rsq-extras__lead {
  margin: 0 0 11px;
  color: var(--rsq-muted);
  font-size: 12px;
}

.rsq-extras__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rsq-extras__loading,
.rsq-extras__empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.rsq-extras__loading {
  border: 1px dashed var(--rsq-line-strong);
  color: var(--rsq-muted);
}

.rsq-extras__empty {
  border: 1px solid #f2dfba;
  background: #fffaf0;
  color: #7c5714;
}

.rsq-extra {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--rsq-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rsq-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rsq-extra:hover {
  border-color: var(--rsq-line-strong);
  box-shadow: 0 5px 14px rgba(25, 43, 82, 0.06);
}

.rsq-extra__img {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f6fc;
}

.rsq-extra__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsq-extra__text {
  display: block;
  min-width: 0;
}

.rsq-extra__name {
  display: block;
  overflow: hidden;
  color: var(--rsq-ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.rsq-extra__price {
  display: block;
  margin-top: 2px;
  color: var(--rsq-muted);
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- Форма заявки ---------- */

.rsq-lead {
  margin-top: 24px;
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid #d9e2f5;
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(96, 127, 214, 0.1) 0%, rgba(96, 127, 214, 0) 55%),
    linear-gradient(145deg, #f3f7ff 0%, #fff 100%);
  scroll-margin-top: 18px;
}

.rsq-lead.is-highlight {
  animation: rsq-pulse 1.1s ease;
}

@keyframes rsq-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(60, 91, 177, 0);
  }
  30% {
    box-shadow: 0 0 0 5px rgba(60, 91, 177, 0.12);
  }
}

.rsq-lead__head {
  margin-bottom: 14px;
}

.rsq-lead__title {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rsq-lead__lead {
  margin: 4px 0 0;
  color: var(--rsq-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.rsq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.rsq-field {
  min-width: 0;
}

.rsq-field--full {
  grid-column: 1 / -1;
}

.rsq-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 700;
}

.rsq-field label span {
  color: var(--rsq-muted);
  font-weight: 400;
}

.rsq-input,
.rsq-select,
.rsq-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid #d3dceb;
  border-radius: 10px;
  background: #fff;
  color: var(--rsq-ink);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rsq-textarea {
  min-height: 76px;
  resize: vertical;
}

.rsq-input::placeholder,
.rsq-textarea::placeholder {
  color: #9aa3b6;
}

.rsq-input:focus,
.rsq-select:focus,
.rsq-textarea:focus {
  outline: none;
  border-color: var(--rsq-primary);
  box-shadow: 0 0 0 3px rgba(60, 91, 177, 0.11);
}

.rsq-input.is-invalid,
.rsq-select.is-invalid,
.rsq-textarea.is-invalid {
  border-color: var(--rsq-danger);
}

.rsq-field__error {
  margin-top: 4px;
  color: var(--rsq-danger);
  font-size: 11.5px;
  line-height: 1.35;
}

.rsq-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--rsq-muted);
  font-size: 11.8px;
  line-height: 1.45;
  cursor: pointer;
}

.rsq-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--rsq-primary);
}

.rsq-consent a {
  color: var(--rsq-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rsq-consent.is-invalid {
  color: var(--rsq-danger);
}

.rsq-consent-error {
  grid-column: 1 / -1;
  margin-top: -7px;
}

.rsq-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.rsq-form__status {
  color: var(--rsq-muted);
  font-size: 12px;
  line-height: 1.4;
}

.rsq-form__status.is-error {
  color: var(--rsq-danger);
}

.rsq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rsq-success {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #cfe9db;
  border-radius: 16px;
  background: linear-gradient(145deg, #f2fcf7 0%, #fff 100%);
  text-align: center;
}

.rsq-success__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--rsq-success-bg);
  color: var(--rsq-success);
}

.rsq-success__title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rsq-success__title:focus {
  outline: none;
}

.rsq-success__text {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--rsq-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.rsq-success__demo {
  max-width: 620px;
  margin: 13px auto 0;
  padding: 9px 12px;
  border: 1px solid #f2dfba;
  border-radius: 10px;
  background: #fffaf0;
  color: #7c5714;
  font-size: 11.5px;
  line-height: 1.45;
}

.rsq-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 17px;
}

/* ---------- Модальное окно заявки ---------- */

.rsq-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: var(--rsq-font);
  color: var(--rsq-ink);
  text-align: left;
}

.rsq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 45, 0.55);
  backdrop-filter: blur(2px);
}

.rsq-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 24, 52, 0.32);
  overscroll-behavior: contain;
  animation: rsq-modal-in 0.22s ease both;
}

@keyframes rsq-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.rsq-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rsq-modal__subtitle {
  margin: 4px 0 0;
  color: var(--rsq-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.rsq-modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 1px solid var(--rsq-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rsq-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rsq-modal__close:hover {
  border-color: var(--rsq-primary);
  background: var(--rsq-primary-light);
  color: var(--rsq-primary);
}

.rsq-modal__close:focus-visible {
  outline: 2px solid #9db2e8;
  outline-offset: 2px;
}

.rsq-modal__body {
  min-width: 0;
}

.rsq-modal__lead {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--rsq-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.rsq-modal__body .rsq-success {
  margin-top: 0;
}

.rsq-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Адаптив ---------- */

@media (min-width: 1100px) {
  .rsq-step__head {
    max-width: 860px;
  }

  .rsq-product {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .rsq-product__media {
    min-height: 230px;
  }

  .rsq-product__media img {
    max-height: 240px;
  }

  .rsq-product__body {
    padding: 18px 22px;
  }

  .rsq-product__name {
    font-size: 18px;
  }

  .rsq-product__price {
    font-size: 21px;
  }
}

@media (min-width: 1280px) {
  .rsq-options--groups,
  .rsq-options--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rsq-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .rsq-product {
    grid-template-columns: 210px minmax(0, 1fr);
    margin-bottom: 0;
  }

  .rsq-product:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .rsq-product:first-child .rsq-product__body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    grid-template-areas:
      "top why"
      "stock why"
      "specs why"
      "flags why"
      "footer why";
    column-gap: 32px;
    align-content: start;
  }

  .rsq-product:first-child .rsq-product__top {
    grid-area: top;
  }

  .rsq-product:first-child .rsq-stock {
    grid-area: stock;
    justify-self: start;
  }

  .rsq-product:first-child .rsq-specs {
    grid-area: specs;
  }

  .rsq-product:first-child .rsq-flags {
    grid-area: flags;
  }

  .rsq-product:first-child .rsq-why {
    grid-area: why;
    align-self: start;
    margin-top: 0;
  }

  .rsq-product:first-child .rsq-product__footer {
    grid-area: footer;
  }

  .rsq-product__media {
    min-height: 210px;
  }

  .rsq-product__media img {
    max-height: 220px;
  }

  .rsq-product:first-child .rsq-product__media {
    min-height: 240px;
  }

  .rsq-product:first-child .rsq-product__media img {
    max-height: 250px;
  }

  .rsq-products-controls {
    margin-top: 16px;
  }
}

@media (max-width: 980px) {
  .rsq-product {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .rsq-product__media {
    min-height: 190px;
  }

  .rsq-product__price {
    font-size: 18px;
  }

  .rsq-options--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rsq__shell {
    border-radius: 16px;
  }

  .rsq__body {
    padding: 16px 14px 20px;
  }

  .rsq-options,
  .rsq-options--three {
    grid-template-columns: 1fr;
  }

  .rsq-option {
    min-height: 0;
    padding: 12px;
  }

  .rsq-option--group {
    min-height: 0;
  }

  .rsq-product {
    grid-template-columns: 1fr;
  }

  .rsq-product__media {
    min-height: 180px;
    padding: 12px;
  }

  .rsq-product__media img {
    max-height: 190px;
  }

  .rsq-product__body {
    padding: 14px;
  }

  .rsq-product__top {
    flex-direction: column;
    gap: 7px;
  }

  .rsq-product__price {
    text-align: left;
  }

  .rsq-product__price small {
    display: inline;
    margin-left: 5px;
  }

  .rsq-extras__grid {
    grid-template-columns: 1fr;
  }

  .rsq-extras__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .rsq-products-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .rsq-products-controls .rsq-btn {
    width: 100%;
  }

  .rsq-modal {
    padding: 12px;
  }

  .rsq-modal__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border-radius: 16px;
  }

  .rsq-modal__head {
    margin-bottom: 13px;
  }

  .rsq-form {
    grid-template-columns: 1fr;
  }

  .rsq-nav {
    flex-wrap: wrap;
  }

  .rsq-nav__note {
    display: none;
  }

  .rsq-btn {
    min-height: 44px;
  }

  .rsq-nav .rsq-btn--primary {
    flex: 1 1 auto;
  }

  .rsq-form__actions .rsq-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .rsq-step__title {
    font-size: 20px;
  }

  .rsq-option__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .rsq-option--group .rsq-option__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .rsq-modal {
    padding: 8px;
  }

  .rsq-modal__dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 14px;
  }

  .rsq-modal__title {
    font-size: 19px;
  }

  .rsq-modal__subtitle {
    font-size: 12px;
  }

  .rsq-modal__close {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsq *,
  .rsq *::before,
  .rsq *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
