/* Страница «Расчёт материалов по проекту» (31.10.2026). Генератор — scripts/raschet-materialov.py.
   Форма загрузки проекта — на первом экране справа от текста (правило первого экрана: кнопка видна на 1366×768 и
   375×812). Отдельным файлом: политика сайта запрещает стили в разметке. */
.rm-hero .wrap { padding-top: 40px; padding-bottom: 48px; }
.rm-forma { flex: none; width: 380px; max-width: 100%; display: grid; gap: 10px; background: #1b1b21; border: 1px solid rgba(255,255,255,.12); padding: 20px; }
.rm-fajl { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 16px; border: 2px dashed rgba(255,255,255,.28);
  cursor: pointer; transition: border-color .15s, background .15s; }
.rm-fajl:hover, .rm-fajl.nad { border-color: #FF6A1A; background: rgba(255,106,26,.08); }
.rm-fajl.est { border-style: solid; border-color: #FF6A1A; }
.rm-fajl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rm-fajl-ic { flex: none; width: 44px; height: 54px; display: grid; place-items: center; background: #FF6A1A; color: #101014;
  font: 800 12px/1 'Manrope', sans-serif; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.rm-fajl-ic2 { font-size: 11px; line-height: 1.25; text-align: center; }
.rm-fajl-t { font: 500 14px/1.45 'Manrope', sans-serif; color: rgba(255,255,255,.75); min-width: 0; overflow-wrap: anywhere; }
.rm-fajl-t b { color: #fff; }
.rm-fajl-t small { font-size: 12.5px; color: rgba(255,255,255,.5); }
.rm-forma input[type="text"] { width: 100%; font: 500 16px/1.2 'Manrope', sans-serif; padding: 15px 14px; background: #101014; color: #fff;
  border: 1px solid rgba(255,255,255,.2); outline: none; }
.rm-forma input[type="text"]:focus { border-color: #FF6A1A; }
.rm-forma select { width: 100%; font: 500 16px/1.2 'Manrope', sans-serif; padding: 14px 12px; background: #101014; color: #fff;
  border: 1px solid rgba(255,255,255,.2); outline: none; }
.rm-forma select:focus { border-color: #FF6A1A; }
.rm-forma select:invalid { color: rgba(255,255,255,.55); }
.rm-knopka { width: 100%; text-align: center; font-size: 17px; padding: 19px 20px; border: 0; cursor: pointer; }
.rm-knopka[disabled] { opacity: .6; cursor: progress; }
.rm-itog { font: 600 14px/1.5 'Manrope', sans-serif; color: rgba(255,255,255,.75); }
.rm-itog.oshibka { color: #ff8a80; }
.rm-itog.gotovo { color: #7ee2a8; }
.rm-soglasie { font: 500 12px/1.5 'Manrope', sans-serif; color: rgba(255,255,255,.45); }
.rm-soglasie a { color: rgba(255,255,255,.65); }

/* Пример ведомости. Число с единицей не переносится: единица — своим столбцом, в числах нет пробела-разделителя. */
.rm-tabl { overflow-x: auto; margin-top: 8px; border: 1px solid rgba(16,16,20,.12); background: #fff; }
.rm-ved { width: 100%; border-collapse: collapse; min-width: 760px; font: 500 15px/1.4 'Manrope', sans-serif; color: #101014; }
.rm-ved th, .rm-ved td { padding: 10px 14px; border-bottom: 1px solid rgba(16,16,20,.08); text-align: left; vertical-align: top; }
.rm-ved thead th { font: 800 13px/1.3 'Manrope', sans-serif; color: rgba(16,16,20,.6); background: #f4f4f6; white-space: nowrap; }
.rm-ved .rm-razdel th { font: 800 15px/1.3 'Manrope', sans-serif; color: #101014; background: #fbf3ee; border-top: 2px solid #FF6A1A; }
.rm-ed { white-space: nowrap; color: rgba(16,16,20,.6); }
.rm-ch { white-space: nowrap; text-align: right !important; font-variant-numeric: tabular-nums; }
.rm-kup { font-weight: 800; }
.rm-zap { font-size: 13.5px; color: rgba(16,16,20,.65); }
.rm-list { font-size: 13.5px; color: #c94f0c; }

.rm-shagi { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .rm-hero .wrap { padding-top: 18px; padding-bottom: 28px; }
  .rm-hero .lead { display: none; }
  .rm-forma { width: 100%; padding: 14px; }
  .rm-fajl { padding: 12px; }
  .rm-fajl-ic { width: 36px; height: 44px; }
  .rm-shagi { grid-template-columns: 1fr; }
}
/* Телефон: строка ведомости — карточка. Сверху материал, ниже «купить» крупно, по проекту и запас, лист проекта. */
@media (max-width: 640px) {
  .rm-ved { min-width: 0; }
  .rm-ved thead { display: none; }
  .rm-ved tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; row-gap: 2px; padding: 10px 12px; border-bottom: 1px solid rgba(16,16,20,.08); }
  .rm-ved .rm-razdel { display: block; padding: 0; }
  .rm-ved .rm-razdel th { display: block; }
  .rm-ved td { padding: 0; border: 0; }
  .rm-ved .rm-mat { grid-column: 1 / -1; font-weight: 700; }
  .rm-ved .rm-kup { grid-column: 1; grid-row: 2; text-align: left !important; }
  .rm-ved .rm-ed { grid-column: 2; grid-row: 2; align-self: end; }
  .rm-ved .rm-po, .rm-ved .rm-zap { grid-column: 1 / -1; text-align: left !important; font-size: 13.5px; color: rgba(16,16,20,.65); }
  .rm-ved .rm-kup::before, .rm-ved .rm-po::before, .rm-ved .rm-zap::before { content: attr(data-z) ': '; font-weight: 500; color: rgba(16,16,20,.55); }
  .rm-ved .rm-list { grid-column: 1 / -1; }
}
