:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body.modal-open { overflow: hidden; }
button { cursor: pointer; }
.selection-table-input { position: relative; }
.selection-table-input input[type="number"],
.selection-table-input input[type="text"],
.selection-table-input input[type="tel"] { width: 100%; box-sizing: border-box; }
.field-error { display: none; margin-top: 7px; color: #d62d2d; font-size: 13px; }
.is-invalid .field-error { display: block; }
.is-invalid input { border-color: #d62d2d !important; }
.columns-grid { display: grid; gap: 10px; }
.columns-grid label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.loader { display: none; align-items: center; justify-content: center; min-height: 160px; }
.loader img { width: 64px; height: 64px; }
.product-row[hidden] { display: none !important; }
.regeneration-box { margin: 0 0 24px; padding: 20px; border-radius: 8px; background: #f4f8fb; }
.regeneration-box h4 { margin: 0 0 10px; }
.formula-res { margin-bottom: 8px; color: #4b4b4b; }
.formula-itog { font-size: 24px; }
.not-found { display: none; margin: 0 0 20px; padding: 16px 18px; border-radius: 6px; background: #fff4e5; }
.contact-section { padding: 40px 0 70px; }
.contact-form { display: none; max-width: 720px; margin-top: 24px; padding: 28px; border-radius: 10px; background: #f5f7f9; }
.contact-form.is-open { display: block; }
.contact-form .form-control { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 7px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfd7df; border-radius: 4px; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); }
.modal { display: none; position: fixed; z-index: 1001; top: 50%; left: 50%; width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -50%); box-sizing: border-box; padding: 34px; background: #fff; border-radius: 10px; }
.modal-title { font-size: 28px; font-weight: 700; }
.modal-comment { margin: 12px 0 20px; }
.modal .form-control { margin-bottom: 15px; }
.modal .form-control label { display: block; margin-bottom: 7px; }
.modal .form-control input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cfd7df; border-radius: 4px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: transparent; }
.modal-close::before, .modal-close::after { content: ''; position: absolute; left: 16px; top: 5px; width: 2px; height: 24px; background: #333; }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-thanks { text-align: center; }
.modal-thanks img { width: 72px; }
.scroll-top { border: 0; }
.private-policy { margin: 18px 0; font-size: 14px; }
@media (max-width: 991px) {
  .features-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
  .result-row { display: block; }
  .result-image { margin-bottom: 24px; }
  .table-wrap { overflow-x: auto; }
  .result-table, .table-footer { min-width: 760px; }
}
@media (max-width: 640px) {
  .features-list { grid-template-columns: 1fr; }
  .selection-table-row { grid-template-columns: 1fr !important; }
  .selection-table-header { display: none !important; }
  .selection-table-cell { width: auto !important; }
  .header-wrapper { flex-wrap: wrap; gap: 12px; }
  .partner { display: none; }
  .modal { padding: 28px 20px; }
}

.modal .form-control select { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cfd7df; border-radius: 4px; background: #fff; }

.contact-section,
.footer-policy {
  display: none;
}

.selection-table-input {
    width: 100%;
}
/* Поля калькулятора занимают всю ширину правой колонки. */
.selection-table-input {
  width: 100%;
}
.selection-table-input input[type="number"],
.selection-table-input input[type="text"],
.selection-table-input input[type="tel"] {
  width: 100%;
  text-align: left;
}

/* Колонны используют ту же понятную radio-индикацию, что и остальные переключатели. */
.columns-grid {
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
}
.columns-grid .selection-table-radio {
  width: 100%;
  margin: 0;
}
.columns-grid .selection-table-radio label {
  display: flex;
  width: 100%;
  min-height: 24px;
  align-items: center;
  padding-left: 32px;
  gap: 0;
  text-align: left;
}
.columns-grid .selection-table-radio input[type="radio"]:checked + label {
  color: var(--theme-color-primary);
  font-weight: 600;
}

.installation-block {
  margin-top: 28px;
}
.installation-block h4 {
  margin: 0 0 12px;
  font-size: 20px;
}
.installation-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.installation-table th,
.installation-table td {
  padding: 12px 14px;
  border: 1px solid #e8e9ee;
  text-align: left;
  vertical-align: top;
}
.installation-table th {
  background: #f4f8fb;
  font-weight: 600;
}
.installation-table th:last-child,
.installation-table td:last-child {
  width: 150px;
  white-space: nowrap;
  text-align: right;
}
.installation-notice {
  margin-bottom: 14px;
  line-height: 1.55;
}
.result-warning {
  margin-top: 10px;
}
