.bs-page {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.12);
  padding: 18px 22px 24px;
  margin-bottom: 30px;
}
.bs-calc {
  max-width: 880px;
  margin: 12px 0 0;
}
.bs-intro {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.bs-hidden {
  display: none;
}
.bs-form {
  border-top: 1px solid #dde2e6;
  padding-top: 22px;
}
.bs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.bs-field {
  position: relative;
}
.bs-field-full {
  grid-column: 1 / -1;
}
.bs-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #282828;
  margin-bottom: 7px;
}
.bs-input,
.bs-select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 15px;
  color: #282828;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.bs-input:focus,
.bs-select:focus {
  outline: none;
  border-color: #0164C1;
  box-shadow: 0 0 0 3px rgba(1,100,193,0.16);
}
.bs-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23616161' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.bs-row {
  display: flex;
  gap: 12px;
}
.bs-row .bs-input,
.bs-row .bs-select {
  flex: 1;
  min-width: 0;
}
.bs-row .bs-subfield {
  flex: 1;
}
.bs-hint {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.bs-saw-size {
  margin-top: 9px;
  font-size: 14px;
  color: #282828;
}
.bs-saw-size b {
  font-weight: 600;
}
.bs-link {
  display: inline-block;
  background: none;
  border: none;
  color: #0164C1;
  cursor: pointer;
  padding: 8px 0 0;
  font-size: 13px;
}
.bs-link:hover {
  text-decoration: underline;
}
.bs-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 5px;
  z-index: 30;
  max-height: 290px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.bs-autocomplete:empty {
  display: none;
}
.bs-ac-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.bs-ac-item:last-child {
  border-bottom: none;
}
.bs-ac-item:hover {
  background: #f3f7fc;
}
.bs-ac-item small {
  color: #666;
}
.bs-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.bs-btn-reset {
  background: #fff;
  color: #616161;
  font-size: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bs-btn-reset:hover {
  background: #eee;
  border-color: #616161;
}
.bs-btn-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5890a;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.bs-btn-go:hover {
  background: #b36407;
}
.bs-btn-go:active {
  transform: translateY(1px);
}
.bs-results {
  margin-top: 28px;
}
.bs-loading {
  color: #666;
  padding: 14px 0;
}
.bs-why {
  background: #f4f9f4;
  border: 1px solid #d6e8d6;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.bs-why h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.bs-why ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: #444;
  line-height: 1.55;
}
.bs-ref-jump {
  color: #0164C1;
  text-decoration: underline;
  cursor: pointer;
}
.bs-reco {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: #468847;
  color: #fff;
  border-radius: 12px;
  font-size: 19px;
  line-height: 1.45;
}
.bs-reco b {
  font-weight: 700;
}
.bs-matches-title {
  margin: 0 0 16px;
  font-size: 18px;
}
.bs-group {
  margin-bottom: 28px;
}
.bs-role {
  font-weight: 700;
  font-size: 16px;
  color: #0164C1;
  margin-bottom: 12px;
}
.bs-role-note {
  font-weight: 400;
  font-size: 13px;
  color: #b36407;
}
.bs-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.bs-result {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
}
.bs-result .similar-container {
  width: 100%;
}
.bs-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  background: #468847;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 9px;
}
.bs-noresult,
.bs-error {
  background: #fff7e6;
  border: 1px solid #f0d28a;
  border-radius: 12px;
  padding: 18px 22px;
}
.bs-btn-order {
  display: inline-block;
  margin-top: 12px;
  background: #0164C1;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  cursor: pointer;
}
.bs-btn-order:hover {
  color: #fff;
  background: #014f98;
}
.bs-order .bs-order-h {
  margin: 0 0 6px;
  font-size: 19px;
  color: #444;
}
.bs-order .bs-order-sub {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
}
.bs-order .bs-input,
.bs-order .bs-select {
  margin-bottom: 4px;
}
.bs-order img {
  margin: 6px 0;
}
.bs-order-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.bs-order-specs th,
.bs-order-specs td {
  border: 1px solid #dde2e6;
  padding: 7px 11px;
  text-align: left;
  vertical-align: top;
}
.bs-order-specs th {
  width: 42%;
  background: #eee;
  font-weight: 600;
  color: #444;
}
.bs-order-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
}
.bs-order-consent {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  color: #616161;
}
.bs-req {
  color: #c0392b;
  font-weight: 700;
}
.bs-order-req-note {
  margin: 4px 0 14px;
  font-size: 12px;
  color: #616161;
}
.bs-order-result {
  margin-top: 12px;
  font-size: 15px;
}
.bs-order-result.bs-order-ok {
  color: #468847;
  font-weight: 600;
}
.bs-order-result.bs-order-err {
  color: #c0392b;
}
.bs-ref {
  margin-top: 28px;
  border-top: 1px solid #dde2e6;
  padding-top: 16px;
}
.bs-ref-toggle {
  background: none;
  border: none;
  color: #0164C1;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.bs-ref-toggle:hover {
  text-decoration: underline;
}
.bs-ref-arrow {
  display: inline-block;
  width: 14px;
}
.bs-ref-body {
  margin-top: 16px;
}
.bs-ref-block {
  margin-bottom: 28px;
}
.bs-ref-h {
  margin: 0 0 4px;
  font-size: 17px;
}
.bs-ref-sub {
  margin: 0 0 12px;
  color: #666;
  font-size: 13px;
}
.bs-ref-note {
  margin: 8px 0 0;
  color: #666;
  font-size: 12px;
}
.bs-ref-solid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.bs-ref-table {
  border-collapse: collapse;
  font-size: 13px;
}
.bs-ref-table th,
.bs-ref-table td {
  border: 1px solid #dde2e6;
  padding: 5px 11px;
  text-align: center;
}
.bs-ref-table thead th {
  background: #468847;
  color: #fff;
  font-weight: 600;
}
.bs-ref-table tbody th {
  background: #eef4ee;
  font-weight: 600;
}
.bs-ref-table tbody tr:nth-child(2n) {
  background: #f6faf6;
}
.bs-ref-solid .bs-ref-table {
  flex: 1;
  min-width: 210px;
}
.bs-ref-scroll {
  overflow-x: auto;
}
.bs-ref-tube {
  width: 100%;
  min-width: 720px;
}
.bs-embed {
  margin: 24px 0;
  padding: 20px 22px;
  background: #f9fafb;
  border: 1px solid #dde2e6;
  border-radius: 12px;
}
.bs-embed-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.bs-embed-sub {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
}
.bs-embed-link {
  margin: 14px 0 0;
}
.bs-embed-link a {
  color: #0164C1;
  font-weight: 600;
}
.bs-close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  line-height: 30px;
  text-align: center;
  font-size: 26px;
  color: #616161;
  background: #fff;
  border: 1px solid #dde2e6;
  border-radius: 50%;
  cursor: pointer;
}
.bs-close-x:hover {
  color: #282828;
  border-color: #616161;
}
.bs-back {
  margin-top: 18px;
}
.bs-modal-inner {
  max-height: 80vh;
  overflow-y: auto;
  padding: 4px 14px 14px 2px;
}
.bs-modal-title {
  margin: 0 0 14px;
  font-size: 19px;
  color: #444;
}
.bs-seo {
  margin-top: 30px;
  border-top: 1px solid #dde2e6;
  padding-top: 22px;
  color: #444;
  line-height: 1.6;
}
.bs-seo h2 {
  font-size: 18px;
  margin: 22px 0 8px;
  color: #444;
}
.bs-seo h2:first-child {
  margin-top: 0;
}
.bs-seo p {
  margin: 0 0 10px;
}
.bs-seo ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.bs-seo li {
  margin-bottom: 5px;
}
@media (max-width: 720px) {
  .bs-grid {
    grid-template-columns: 1fr;
  }
  .bs-row {
    flex-direction: column;
    gap: 14px;
  }
  .bs-result {
    width: 100%;
  }
}
