/* ==========================================================================
   Стили калькулятора аренды ковров (/kalkulyator.html)
   Интегрированы в цветовую гамму и сетку arendakovrov.ru (#2525cf)
   ========================================================================== */

#salut-calculator,
#salut-calculator * {
  box-sizing: border-box;
}

.calculator-page-wrapper {
  padding-bottom: 60px;
}

#salut-calculator {
  --sc-primary: #2525cf;
  --sc-primary-dark: #1f2c8c;
  --sc-primary-soft: #eef1fd;
  --sc-primary-soft-hover: #e2e8fa;
  --sc-ink: #1a1a1a;
  --sc-muted: #555555;
  --sc-light-muted: #777777;
  --sc-line: #dfe4ee;
  --sc-line-light: #edf1f7;
  --sc-bg: #f8fafc;
  --sc-card: #ffffff;
  --sc-radius-lg: 14px;
  --sc-radius-md: 10px;
  --sc-radius-sm: 8px;
  --sc-shadow: 0 4px 20px rgba(0, 40, 100, 0.05);
  --sc-shadow-hover: 0 8px 28px rgba(0, 40, 100, 0.08);

  color: var(--sc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  width: 100%;
  margin: 0;
  padding: 10px 0 0;
  background: transparent;
}

#salut-calculator button,
#salut-calculator input,
#salut-calculator select {
  font: inherit;
}

#salut-calculator button,
#salut-calculator summary,
#salut-calculator label {
  -webkit-tap-highlight-color: transparent;
}

#salut-calculator svg {
  display: block;
  width: 1em;
  height: 1em;
}

#salut-calculator .sc__eyebrow svg,
#salut-calculator .sc__hero-note-icon svg,
#salut-calculator .sc-remove-row svg,
#salut-calculator .sc-trash-icon,
#salut-calculator .sc-details summary > span > svg,
#salut-calculator .sc-file__icon svg,
#salut-calculator .sc-summary__phone-icon svg {
  fill: none !important;
  stroke: currentColor !important;
}

#salut-calculator .sc-control--icon svg,
#salut-calculator .sc-btn svg,
#salut-calculator .sc-details__chevron {
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Заголовок страницы (Hero)
   -------------------------------------------------------------------------- */
#salut-calculator .sc__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sc-line-light);
}

#salut-calculator .sc__hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

#salut-calculator .sc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--sc-primary);
  background: var(--sc-primary-soft);
  border: 1px solid rgba(37, 37, 207, 0.16);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#salut-calculator .sc__eyebrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

#salut-calculator .sc__hero h1 {
  margin: 0 0 10px;
  color: var(--sc-primary-dark);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

#salut-calculator .sc__hero-lead {
  margin: 0;
  max-width: 780px;
  color: var(--sc-muted);
  font-size: clamp(14.5px, 1.15vw, 16px);
  line-height: 1.6;
}

#salut-calculator .sc__hero-aside {
  flex: 0 0 350px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#salut-calculator .sc__hero-note {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 40, 100, 0.04);
  box-sizing: border-box;
}

#salut-calculator .sc__hero-note-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

#salut-calculator .sc__hero-note-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

#salut-calculator .sc__hero-note-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#salut-calculator .sc__hero-note-text strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

#salut-calculator .sc__hero-note-text span {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Основной макет: левая колонка + правый сайдбар
   -------------------------------------------------------------------------- */
#salut-calculator .sc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

#salut-calculator .sc__main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Карточки секций (sc-card)
   -------------------------------------------------------------------------- */
#salut-calculator .sc-card {
  min-width: 0;
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow);
  padding: 24px 22px;
}

#salut-calculator .sc-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sc-line-light);
}

#salut-calculator .sc-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

#salut-calculator .sc-card__badge {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--sc-primary);
  background: var(--sc-primary-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

#salut-calculator .sc-card__heading h2 {
  margin: 0;
  color: var(--sc-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

#salut-calculator .sc-card__desc {
  margin: 0;
  color: var(--sc-light-muted);
  font-size: 13px;
  text-align: right;
  max-width: 480px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Сетка полей и элементы ввода
   -------------------------------------------------------------------------- */
#salut-calculator .sc-grid {
  display: grid;
  gap: 16px;
}

#salut-calculator .sc-grid--3 {
  grid-template-columns: 1.3fr 1fr 1fr;
}

#salut-calculator .sc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#salut-calculator .sc-field {
  display: block;
  min-width: 0;
  margin: 0;
}

#salut-calculator .sc-field__label,
#salut-calculator .sc-field > span:first-child:not(.sc-mobile-label),
#salut-calculator .sc-choice-group legend {
  display: block;
  margin-bottom: 7px;
  color: #333333;
  font-size: 13px;
  font-weight: 650;
}

#salut-calculator .sc-field em {
  color: var(--sc-primary);
  font-style: normal;
}

#salut-calculator .sc-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#salut-calculator .sc-control:focus-within {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px rgba(37, 37, 207, 0.12);
}

#salut-calculator .sc-control.sc-control--error {
  border-color: #ef4444 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

#salut-calculator .sc-control input,
#salut-calculator .sc-control select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 13px;
  color: var(--sc-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  border-radius: inherit;
}

#salut-calculator .sc-control input::placeholder {
  color: #999999;
}

/* Нейтрализация фона автозаполнения браузера (чтобы поле оставалось ровным и белым без обрезки краев) */
#salut-calculator .sc-control input:-webkit-autofill,
#salut-calculator .sc-control input:-webkit-autofill:hover,
#salut-calculator .sc-control input:-webkit-autofill:focus,
#salut-calculator .sc-control input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: var(--sc-ink) !important;
  transition: background-color 5000s ease-in-out 0s;
}

#salut-calculator .sc-control--icon {
  position: relative;
}

#salut-calculator .sc-control--icon svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  margin: 0;
  color: #8c93a3;
  pointer-events: none;
  z-index: 2;
  display: block;
}

#salut-calculator .sc-control--icon input {
  padding-left: 40px !important;
  padding-right: 14px !important;
}

#salut-calculator .sc-control--select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

#salut-calculator .sc-control select {
  padding-right: 32px;
  appearance: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
#salut-calculator .sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--sc-radius-sm);
  padding: 0 16px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

#salut-calculator .sc-btn svg {
  width: 16px;
  height: 16px;
}

#salut-calculator .sc-btn--ghost {
  color: var(--sc-primary);
  background: var(--sc-primary-soft);
  height: 38px;
  font-size: 13px;
}

#salut-calculator .sc-btn--ghost:hover {
  background: var(--sc-primary-soft-hover);
  color: var(--sc-primary-dark);
}

#salut-calculator .sc-btn--add {
  width: 100%;
  height: 44px;
  color: var(--sc-primary);
  background: #ffffff;
  border: 1.5px dashed #bcc7e8;
  border-radius: var(--sc-radius-md);
  margin-top: 14px;
  font-size: 14px;
}

#salut-calculator .sc-btn--add:hover {
  border-color: var(--sc-primary);
  background: var(--sc-primary-soft);
}

#salut-calculator .sc-btn--primary {
  width: 100%;
  height: 48px;
  color: #ffffff;
  background: var(--sc-primary);
  border-radius: var(--sc-radius-sm);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 37, 207, 0.25);
}

#salut-calculator .sc-btn--primary:hover {
  background: var(--sc-primary-dark);
  box-shadow: 0 6px 18px rgba(37, 37, 207, 0.32);
  transform: translateY(-1px);
}

#salut-calculator .sc-btn--primary:active {
  transform: translateY(0);
}

#salut-calculator .sc-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Таблица и строки ковров
   -------------------------------------------------------------------------- */
#salut-calculator .sc-carpets__labels {
  display: grid;
  grid-template-columns: minmax(115px, 1.1fr) 66px 88px minmax(135px, 1.25fr) minmax(75px, 0.8fr) 32px;
  gap: 8px;
  padding: 0 12px 10px;
  color: var(--sc-light-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#salut-calculator .sc-carpets__labels .sc-label-center {
  text-align: center;
}

#salut-calculator .sc-carpets__rows {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#salut-calculator .sc-carpet-row {
  display: grid;
  grid-template-columns: minmax(115px, 1.1fr) 66px 88px minmax(135px, 1.25fr) minmax(75px, 0.8fr) 32px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  min-width: 0;
  background: var(--sc-bg);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

#salut-calculator .sc-carpet-row:hover {
  border-color: #c9d2e5;
  background: #fbfcfe;
}

#salut-calculator .sc-carpet-row__head {
  display: none;
}

#salut-calculator .sc-mobile-label,
#salut-calculator .sc-row-field .sc-mobile-label,
#salut-calculator .sc-carpet-row .sc-mobile-label {
  display: none !important;
}

#salut-calculator .sc-row-field {
  min-width: 0;
}

/* Радиокнопки цвета - круглые точки точно по скриншоту 2 */
#salut-calculator .sc-color {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#salut-calculator .sc-color label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#salut-calculator .sc-color input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

#salut-calculator .sc-color-dot {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--sc-line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#salut-calculator .sc-color-dot--gray {
  background: linear-gradient(135deg, #929aa2, #686f77);
}

#salut-calculator .sc-color-dot--brown {
  background: linear-gradient(135deg, #896957, #5d4134);
}

#salut-calculator .sc-color input:checked + .sc-color-dot {
  box-shadow: 0 0 0 2px var(--sc-primary);
  transform: scale(1.06);
}

#salut-calculator .sc-color label:hover .sc-color-dot {
  transform: scale(1.06);
}

#salut-calculator .sc-color small {
  display: none;
}

/* Контрол количества +/- */
#salut-calculator .sc-qty__control {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: #ffffff;
  overflow: hidden;
}

#salut-calculator .sc-qty__control button {
  flex: 0 0 28px;
  height: 100%;
  background: #f8fafc;
  border: 0;
  color: #333333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#salut-calculator .sc-qty__control button:hover {
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
}

#salut-calculator .sc-qty__control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-ink);
  -moz-appearance: textfield;
}

#salut-calculator .sc-qty__control input::-webkit-outer-spin-button,
#salut-calculator .sc-qty__control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Стоимость в строке */
#salut-calculator .sc-line-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}

#salut-calculator .sc-line-total strong {
  color: var(--sc-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
}

#salut-calculator .sc-line-total small,
#salut-calculator .nds {
  display: none !important;
}

/* Кнопка удаления строки */
#salut-calculator .sc-remove-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#salut-calculator .sc-remove-row:hover {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
}

#salut-calculator .sc-remove-row svg,
#salut-calculator .sc-trash-icon {
  width: 18px;
  height: 18px;
  fill: none !important;
  stroke: currentColor !important;
}

/* --------------------------------------------------------------------------
   Адрес доставки для отдельного ковра
   -------------------------------------------------------------------------- */
#salut-calculator .sc-carpet-row__addr {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

/* Панель адреса доставки ковра (аккуратная плашка) */
#salut-calculator .sc-carpet-addr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--sc-radius-sm, 8px);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-bar {
  background: #f0f7ff;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

#salut-calculator .sc-carpet-addr-bar__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

#salut-calculator .sc-carpet-addr-bar__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

#salut-calculator .sc-carpet-addr-bar__pin {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

#salut-calculator .sc-carpet-addr-bar__pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-bar__pin {
  color: var(--sc-primary);
}

#salut-calculator .sc-carpet-addr-bar__label {
  color: #64748b;
  font-weight: 500;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

#salut-calculator .sc-carpet-addr-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1.5px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 5px;
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

#salut-calculator .sc-carpet-addr-bar__badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

#salut-calculator .sc-carpet-addr-bar__val {
  color: var(--sc-ink);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 20px;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-bar__val {
  color: #1e3a8a;
  font-weight: 700;
}

#salut-calculator .sc-carpet-addr-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Кнопки-чипы для действий с адресом ковра */
#salut-calculator .sc-carpet-addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--sc-primary);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
  user-select: none;
}

#salut-calculator .sc-carpet-addr-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--sc-primary-dark);
}

#salut-calculator .sc-carpet-addr-btn__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-btn {
  background: #ffffff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

#salut-calculator .sc-carpet-addr-btn--reset {
  color: #dc2626;
  border-color: #fecaca;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.04);
}

#salut-calculator .sc-carpet-addr-btn--reset:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-btn--reset {
  color: #dc2626;
  border-color: #fecaca;
}

#salut-calculator .sc-carpet-row--has-custom-addr .sc-carpet-addr-btn--reset:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Форма редактирования адреса ковра */
#salut-calculator .sc-carpet-addr-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--sc-radius-sm);
}

#salut-calculator .sc-carpet-addr-edit__field {
  flex: 1 1 auto;
  min-width: 0;
}

#salut-calculator .sc-carpet-addr-edit__field .sc-control {
  background: #ffffff;
}

#salut-calculator .sc-carpet-addr-edit__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#salut-calculator .sc-carpet-addr-save-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 650;
  background: var(--sc-primary);
  color: #ffffff;
  border: 0;
  border-radius: var(--sc-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

#salut-calculator .sc-carpet-addr-save-btn:hover {
  background: var(--sc-primary-dark);
}

#salut-calculator .sc-carpet-addr-cancel-btn {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: var(--sc-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

#salut-calculator .sc-carpet-addr-cancel-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Контактные данные и выпадающий блок
   -------------------------------------------------------------------------- */
#salut-calculator .sc-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

#salut-calculator .sc-details {
  margin-top: 20px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-md);
  background: #fbfcfe;
  overflow: hidden;
}

#salut-calculator .sc-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: #333333;
  user-select: none;
  transition: background 0.15s ease;
}

#salut-calculator .sc-details summary:hover {
  background: var(--sc-primary-soft);
  color: var(--sc-primary);
}

#salut-calculator .sc-details summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#salut-calculator .sc-details summary svg {
  width: 17px;
  height: 17px;
  color: var(--sc-primary);
}

#salut-calculator .sc-details summary > span > svg {
  fill: none !important;
  stroke: currentColor !important;
}

#salut-calculator .sc-details__chevron {
  fill: currentColor !important;
  stroke: none !important;
  transition: transform 0.2s ease;
}

#salut-calculator .sc-details[open] .sc-details__chevron {
  transform: rotate(180deg);
}

#salut-calculator .sc-details__body {
  padding: 18px;
  border-top: 1px solid var(--sc-line);
  background: #ffffff;
  display: grid;
  gap: 16px;
}

/* Выбор ЭДО и СНО */
#salut-calculator .sc-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

#salut-calculator .sc-choice-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

#salut-calculator .sc-choice-group legend {
  width: 100%;
  margin-bottom: 4px;
}

#salut-calculator .sc-choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

#salut-calculator .sc-choice-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sc-primary);
  cursor: pointer;
}

#salut-calculator .sc-choice-radios {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 28px;
}

#salut-calculator .sc-choice-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

/* Кнопка ЭДО в шапке калькулятора */
#salut-calculator .sc-edo-btn {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 40, 100, 0.04);
  cursor: pointer;
  text-decoration: none !important;
  color: #1e293b;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: left;
  user-select: none;
  box-sizing: border-box;
}

#salut-calculator .sc-edo-btn:hover {
  background: #ffffff;
  border-color: #1d6fc4;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(29, 111, 196, 0.12);
  transform: translateY(-1px);
}

#salut-calculator .sc-edo-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 40, 100, 0.08);
}

#salut-calculator .sc-edo-btn__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#salut-calculator .sc-edo-btn:hover .sc-edo-btn__icon {
  background: #dbeafe;
  color: #1e40af;
}

#salut-calculator .sc-edo-btn__icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

#salut-calculator .sc-edo-btn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s ease;
}

#salut-calculator .sc-edo-btn:hover .sc-edo-btn__text {
  color: #1d4ed8;
}

#salut-calculator .sc-edo-btn__text span {
  white-space: nowrap;
}

@media (max-width: 991px) {
  #salut-calculator .sc-edo-btn {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }
}


/* Загрузка файла реквизитов */
#salut-calculator .sc-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1.5px dashed #b8c6e8;
  border-radius: var(--sc-radius-md);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

#salut-calculator .sc-file:hover {
  border-color: var(--sc-primary);
  background: var(--sc-primary-soft);
}

#salut-calculator .sc-file__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

#salut-calculator .sc-file__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #ffffff;
  color: var(--sc-primary);
  border: 1px solid var(--sc-line);
}

#salut-calculator .sc-file__icon svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor !important;
}

#salut-calculator .sc-file__text {
  min-width: 0;
  flex: 1 1 auto;
}

#salut-calculator .sc-file strong,
#salut-calculator .sc-file-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

#salut-calculator .sc-file small,
#salut-calculator .sc-file-hint {
  display: block;
  font-size: 12px;
  color: var(--sc-light-muted);
  margin-top: 2px;
  line-height: 1.4;
}

#salut-calculator .sc-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  font-size: 13px;
  font-weight: 650;
  color: var(--sc-primary);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

#salut-calculator .sc-file:hover .sc-file__button {
  background: var(--sc-primary);
  color: #ffffff;
  border-color: var(--sc-primary);
}

#salut-calculator .sc-file__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#salut-calculator .sc-file--attached {
  border: 1.5px solid #93c5fd;
  background: #f0f7ff;
}

#salut-calculator .sc-file--attached:hover {
  border-color: var(--sc-primary);
  background: #eaf3ff;
}

#salut-calculator .sc-file--attached .sc-file__icon {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

#salut-calculator .sc-file__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--sc-radius-sm);
  font-size: 13px;
  font-weight: 650;
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

#salut-calculator .sc-file__remove:hover {
  background: #fecaca;
  border-color: #fca5a5;
  color: #b91c1c;
}

#salut-calculator .sc-file__remove svg {
  width: 13px;
  height: 13px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2;
}

/* Ошибки валидации полей */
#salut-calculator .sc-control.sc-control--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  background: #fffafa;
}

#salut-calculator .sc-control.sc-control--error input {
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Боковая колонка с итогом (Summary Sidebar)
   -------------------------------------------------------------------------- */
#salut-calculator .sc-summary {
  position: sticky;
  top: 24px;
  background: #ffffff;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow);
  padding: 26px;
}

#salut-calculator .sc-summary__speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--sc-primary);
  background: var(--sc-primary-soft);
  border: 1px solid rgba(37, 37, 207, 0.16);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 12px;
  line-height: 1;
}

#salut-calculator .sc-summary__speed-badge svg {
  width: 13px;
  height: 13px;
  fill: none !important;
  stroke: currentColor !important;
}

#salut-calculator .sc-summary__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sc-light-muted);
  margin-bottom: 6px;
}

#salut-calculator .sc-summary__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

#salut-calculator .sc-summary__price strong {
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1;
  color: var(--sc-primary);
  letter-spacing: -0.02em;
}

#salut-calculator .sc-summary__price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-light-muted);
}

#salut-calculator .sc-summary__vat {
  display: none !important;
}

#salut-calculator .sc-summary__divider {
  height: 1px;
  background: var(--sc-line-light);
  margin: 18px 0;
}

#salut-calculator .sc-summary__list {
  display: grid;
  gap: 12px;
}

#salut-calculator .sc-summary__item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: #2c3442;
  font-weight: 500;
}

#salut-calculator .sc-check-badge {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(34, 197, 94, 0.25);
}

#salut-calculator .sc-check-badge svg {
  width: 11px;
  height: 11px;
  display: block;
}

#salut-calculator .sc-summary__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

#salut-calculator .sc-summary__phone:hover {
  background: var(--sc-primary-soft);
  border-color: rgba(37, 37, 207, 0.3);
  transform: translateY(-1px);
}

#salut-calculator .sc-summary__phone-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2525cf);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(37, 37, 207, 0.25);
}

#salut-calculator .sc-summary__phone-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

#salut-calculator .sc-summary__phone-info {
  display: flex;
  flex-direction: column;
}

#salut-calculator .sc-summary__phone-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sc-light-muted);
  line-height: 1.2;
}

#salut-calculator .sc-summary__phone-number {
  font-size: 16px;
  font-weight: 750;
  color: var(--sc-primary-dark);
  line-height: 1.3;
}

/* Капча антиспам */
#salut-calculator .sc-captcha {
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  padding: 10px 12px;
}

#salut-calculator .sc-captcha__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

#salut-calculator .sc-captcha__label em {
  color: #ef4444;
  font-style: normal;
}

#salut-calculator .sc-captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--sc-line);
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

#salut-calculator .sc-captcha__refresh:hover {
  color: var(--sc-primary);
  border-color: var(--sc-primary);
  transform: rotate(45deg);
}

#salut-calculator .sc-captcha__refresh svg {
  width: 14px;
  height: 14px;
}

#salut-calculator .sc-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#salut-calculator .sc-captcha__question {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--sc-radius-sm);
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1px;
  user-select: none;
}

#salut-calculator .sc-captcha__control {
  flex: 0 0 96px;
  width: 96px;
  margin: 0;
}

#salut-calculator .sc-captcha__control input {
  height: 42px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 0 8px;
}

#salut-calculator .sc-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #555555;
  cursor: pointer;
}

#salut-calculator .sc-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#salut-calculator .sc-consent__box {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--sc-line);
  border-radius: 4px;
  background: transparent;
  transition: all 0.15s ease;
}

#salut-calculator .sc-consent__box svg {
  width: 13px;
  height: 13px;
  color: var(--sc-primary);
  fill: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#salut-calculator .sc-consent:has(input:checked) .sc-consent__box,
#salut-calculator .sc-consent input:checked ~ .sc-consent__box {
  background: transparent;
  border-color: var(--sc-primary);
}

#salut-calculator .sc-consent:has(input:checked) .sc-consent__box svg,
#salut-calculator .sc-consent input:checked ~ .sc-consent__box svg {
  opacity: 1;
  color: var(--sc-primary);
  fill: currentColor;
}

#salut-calculator .sc-consent a {
  color: var(--sc-primary);
  text-decoration: underline;
}

#salut-calculator .sc-consent a:hover {
  text-decoration: none;
}

#salut-calculator .sc-summary__caption {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--sc-light-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Адаптивность (Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 1260px) {
  #salut-calculator .sc__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #salut-calculator .sc-summary {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  #salut-calculator .sc-summary__top,
  #salut-calculator .sc-summary__list {
    align-self: center;
  }

  #salut-calculator .sc-summary__divider:first-of-type {
    display: none;
  }

  #salut-calculator .sc-summary__divider:nth-of-type(2),
  #salut-calculator .sc-consent,
  #salut-calculator .sc-btn--primary,
  #salut-calculator .sc-summary__caption,
  #salut-calculator .sc-summary__phone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .calculator-page-wrapper {
    padding-bottom: 40px;
  }

  #salut-calculator .sc__hero {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  #salut-calculator .sc__hero-copy {
    flex: 0 0 auto;
    width: 100%;
  }

  #salut-calculator .sc__hero-aside {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #salut-calculator .sc__hero-note,
  #salut-calculator .sc-edo-btn {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #salut-calculator .sc-card {
    padding: 18px 16px;
    border-radius: var(--sc-radius-md);
  }

  #salut-calculator .sc-card__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #salut-calculator .sc-card__desc {
    text-align: left;
    white-space: normal;
  }

  #salut-calculator .sc-summary {
    display: block;
  }

  #salut-calculator .sc-summary__divider:first-of-type {
    display: block;
  }

  #salut-calculator .sc-summary__divider:nth-of-type(2),
  #salut-calculator .sc-consent,
  #salut-calculator .sc-btn--primary,
  #salut-calculator .sc-summary__caption,
  #salut-calculator .sc-summary__phone {
    grid-column: auto;
  }

  #salut-calculator .sc-grid--3,
  #salut-calculator .sc-grid--2 {
    grid-template-columns: 1fr;
  }

  #salut-calculator .sc-carpets__labels {
    display: none;
  }

  #salut-calculator .sc-carpet-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  #salut-calculator .sc-row-field--size,
  #salut-calculator .sc-row-field--frequency,
  #salut-calculator .sc-row-field--total {
    grid-column: 1 / -1;
  }

  #salut-calculator .sc-carpet-row__head {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sc-line-light);
  }

  #salut-calculator .sc-carpet-row__number {
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-primary);
  }

  #salut-calculator .sc-mobile-label,
  #salut-calculator .sc-row-field .sc-mobile-label,
  #salut-calculator .sc-carpet-row .sc-mobile-label {
    display: block !important;
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 650;
    color: var(--sc-light-muted);
  }

  #salut-calculator .sc-row-field--frequency,
  #salut-calculator .sc-row-field--total {
    grid-column: 1 / -1;
  }

  #salut-calculator .sc-row-field--remove {
    display: none;
  }

  #salut-calculator .sc-remove-row--desktop {
    display: none;
  }

  #salut-calculator .sc-line-total {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius-sm);
  }

  #salut-calculator .sc-line-total .sc-mobile-label {
    margin: 0 !important;
  }

  #salut-calculator .sc-line-total small {
    display: none;
  }

  #salut-calculator .sc-file {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 16px 14px;
  }

  #salut-calculator .sc-file__left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  #salut-calculator .sc-file__icon {
    margin: 0 auto;
  }

  #salut-calculator .sc-file__text {
    text-align: center;
    width: 100%;
  }

  #salut-calculator .sc-file strong,
  #salut-calculator .sc-file-title {
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
  }

  #salut-calculator .sc-file small,
  #salut-calculator .sc-file-hint {
    font-size: 12px;
    white-space: normal;
  }

  #salut-calculator .sc-file__actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  #salut-calculator .sc-file__button {
    display: flex !important;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    box-sizing: border-box;
  }

  #salut-calculator .sc-file__remove {
    width: 100% !important;
    justify-content: center;
    padding: 10px 16px !important;
    box-sizing: border-box;
  }

  #salut-calculator .sc-file__remove span {
    display: inline !important;
  }

  #salut-calculator .sc-carpet-addr-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  #salut-calculator .sc-carpet-addr-bar__main {
    width: 100%;
  }

  #salut-calculator .sc-carpet-addr-bar__head {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  #salut-calculator .sc-carpet-addr-bar__val {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    padding-left: 20px;
  }

  #salut-calculator .sc-carpet-addr-bar__actions {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
  }

  #salut-calculator .sc-carpet-addr-btn {
    white-space: nowrap !important;
    height: 28px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  #salut-calculator .sc-carpet-addr-edit {
    flex-direction: column;
    align-items: stretch;
  }

  #salut-calculator .sc-carpet-addr-edit__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  #salut-calculator .sc-card {
    padding: 16px 14px;
  }

  #salut-calculator .sc-carpet-row {
    grid-template-columns: 1fr;
  }

  #salut-calculator .sc-summary {
    padding: 20px 16px;
  }

  #salut-calculator .sc-summary__price strong {
    font-size: 30px;
  }
}
