input,
textarea,
select {
  font: inherit;
  font-size: 14px !important;
}

.cm-crs-page {
  --crs-red: #ee3c41;
  --crs-line: rgba(41, 41, 41, 0.1);
}

.cm-crs-page .cm-hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cm-crs-page .cm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 36%, rgba(255, 255, 255, 0.3) 64%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.cm-crs-page .cm-hero .container {
  position: relative;
  z-index: 1;
}

.cm-crs-layout {
  display: block;
}

.cm-crs-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 40px 42px;
}

.cm-crs-main h2 {
  margin: 0 0 18px;
  color: var(--crs-red);
  font-size: 24px;
  line-height: 1.25;
}

.cm-crs-main p {
  font-size: 16px;
  line-height: 1.55;
}

.cm-crs-form {
  margin-top: 24px;
}

.cm-crs-form h3 {
  margin: 34px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--crs-line);
  text-align: center;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
}

.cm-crs-form h4 {
  margin: 28px 0 18px;
  text-align: center;
  font-size: 20px;
}

.cm-crs-form .form-block {
  padding: 0;
}

.cm-crs-form .form-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 22px;
}

.cm-crs-form .control-label {
  padding: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 100;
}

.cm-crs-form .input-group-sm,
.cm-crs-form .row-fluid {
  min-width: 0;
}

.cm-crs-form select,
.cm-crs-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--crs-line);
  border-radius: 8px;
  background: #fff;
  color: var(--text, #292929);
  font-size: 15px;
}

.cm-crs-form .row-fluid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cm-crs-form .row-fluid .col-sm-2,
.cm-crs-form .row-fluid .col-sm-4,
.cm-crs-form .col-sm-2,
.cm-crs-form .col-sm-4,
.cm-crs-form .col-sm-6,
.cm-crs-form .col-md-12 {
  width: auto;
  float: none;
  padding: 0;
}

.cm-crs-form .row-fluid .sm-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.2;
}

.cm-crs-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  vertical-align: middle;
  accent-color: var(--crs-red);
}

.cm-crs-form .ck-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 12px 8px 0;
  padding: 0 14px;
  border: 1px solid var(--crs-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cm-crs-form .ck-button span {
  font-size: 16px;
}

.cm-crs-form .row-fluid .ck-button.sm-label {
  display: block;
  min-height: 0;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.cm-crs-form .radio-sm {
  display: inline-block;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 700;
}

.cm-crs-form a {
  color: var(--crs-red);
}

.cm-crs-form .hidden,
.cm-crs-page .hidden {
  display: none !important;
}

.cm-crs-page .rem {
  padding: 14px 16px;
  border: 1px dashed rgba(41, 41, 41, 0.22);
  border-radius: 8px;
  color: rgba(41, 41, 41, 0.72);
  background: rgba(255, 255, 255, 0.62);
}

.cm-crs-page .find-error {
  margin-top: 18px;
}

.cm-crs-page .btn-calc,
.cm-crs-page #send-error-btm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--crs-red);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#out-points {
  position: fixed;
  top: 0;
  right: max(18px, calc((100vw - 1280px) / 2));
  width: 380px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--crs-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  z-index: 10000;
}

#out-points .container,
#out-points .row,
#out-points .col-md-12 {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#out-points .col-md-12 {
  padding-left: 12px;
}

#out-points .close-btn {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 26px;
  background: #fff;
}

#out-points .close-btn .cls {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 22px;
  height: 22px;
  color: #292929;
  font-size: 0;
  cursor: pointer;
}

#out-points .close-btn .cls::before {
  content: "x";
  font-size: 22px;
  line-height: 22px;
  font-weight: 700;
}

#all-points {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 28px 12px;
  font-size: 13px;
  line-height: 1.26;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

#all-points>.col-md-12:not(.fin-res) {
  padding-left: 8px;
  padding-right: 8px;
}

#all-points .crs-result-intro {
  order: -4;
  margin: 15px 0 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--crs-line);
  color: rgba(41, 41, 41, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

#all-points .logo {
  order: -3;
  margin: 0 -28px 0;
  padding: 18px 28px 12px;
  border-bottom: 1px solid var(--crs-line);
}

#all-points .logo strong,
#all-points .logo span {
  display: block;
}

#all-points .logo strong {
  color: var(--crs-red);
  font-size: 20px;
  line-height: 1;
}

#all-points .logo span {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
}

#all-points .first-div {
  margin-top: 14px;
}

#all-points h4 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
}

#all-points h5 {
  margin: 0;
  font-size: 14px;
}

#all-points .res {
  margin: 5px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--crs-line);
  color: var(--crs-red);
}

#all-points .max-score {
  position: absolute;
  right: 22px;
  margin-top: -30px;
  color: rgba(41, 41, 41, 0.12);
  font-size: 48px;
  line-height: 0.9;
  text-align: center;
  pointer-events: none;
}

#all-points .max-score-text {
  display: block;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 40px;
}

#all-points .fin-res {
  margin: 10px -28px 0;
  padding: 9px 14px;
  background: var(--crs-red);
  color: #fff;
  text-align: center;
}

#all-points #fresult {
  order: -2;
  margin-top: 0;
}

#all-points #fresult-btm {
  display: block;
}

#prnt-div {
  padding: 0 20px 14px !important;
  overflow: hidden;
  margin: 15px 20px 10px 0 !important;
}

#prnt-div .btn-calc {
  width: 42px;
  min-height: 42px;
  margin-left: 10px;
  padding: 0;
  border-radius: 8px;
  float: right;
  font-size: 0;
  line-height: 1;
}

#calc-reset-btn::before {
  content: "\21bb";
  font-size: 22px;
  line-height: 1;
}

#calc-print-btn::before {
  content: "\2399";
  font-size: 20px;
  line-height: 1;
}

#prnt-div .btn-calc i {
  display: none;
}

@media (max-width: 900px) {
  .cm-crs-shell {
    padding-top: 0;
  }

  .cm-crs-main {
    max-width: none;
    margin: 0;
    padding: 28px 22px 34px;
  }

  #out-points {
    position: sticky;
    top: var(--mobile-header-height, 0px);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 320px;
    margin-bottom: 16px;
    overflow-y: hidden;
    overflow-x: hidden;
    border-radius: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 10000;
  }

  #out-points .close-btn,
  #prnt-div {
    display: none;
  }

  #all-points {
    max-height: 320px;
    padding-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #all-points #fresult {
    display: none;
  }

  #all-points #fresult-btm {
    position: sticky;
    bottom: 0;
    display: block;
    z-index: 3;
    margin-top: 10px;
    margin-bottom: 15px
  }

  .cm-crs-form .form-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cm-crs-form .row-fluid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cm-crs-shell {
    padding-top: 0;
  }

  #out-points {
    max-height: 300px;
  }

  #all-points {
    max-height: 300px;
  }

  .cm-crs-form .row-fluid {
    grid-template-columns: 1fr;
  }
}