/* Calculator */
.colon, .base_side, .base_center {
    box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.4);
}
.parapet_side, .parapet_center {
    box-shadow: 0px -4px 30px 0px rgba(0, 0, 0, 0.5);
}
.colon {
    position: relative;
    overflow: hidden;
    outline: 3px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0px 50px 25px 11px rgba(0, 0, 0, 0.4);
}
.scene {
    position: relative;
    width: 100%;
    background: #eee;
    overflow: hidden;
    /* margin-top: 30px; */
}
.scene * {
    box-sizing: content-box;
    font-size: 0;
}
.brick-row {
    position: relative;
    display: flex;
}
.brick-row .brick {
    position: relative;
    flex-shrink: 0;
}
.brick-row--default .brick {
    background-image: unset !important;
    background: #aaa;
}
@keyframes color {
    0% {
        background-color: #444;
    }
    50% {
        background-color: #777;
    }
    100% {
        background-color: #444;
    }
}
.brick-row--process .brick {
    animation-name: color;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    background-color: #222;
    background-image: unset !important;
}
.colons {
    position: relative;
    display: flex;
    min-height: 100px;
    margin: 0 auto;
    justify-content: space-between;
    z-index: 5;
}
.parapet-polukgrug::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.4) 25%, transparent 80%);
}
.colon-polukgrug::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    margin-top: -50px;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, .8) inset;
    -moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, .8) inset;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, .8) inset;
}
.colon-kaplya::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -moz-linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 11%, rgba(0,0,0,0.7) 18%, rgba(8,120,136,0) 25%, rgba(5,86,172,0) 75%, rgba(0,0,0,0.7) 82%, rgba(0,212,255,0) 89%, rgba(0,0,0,0.6) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 11%, rgba(0,0,0,0.7) 18%, rgba(8,120,136,0) 25%, rgba(5,86,172,0) 75%, rgba(0,0,0,0.7) 82%, rgba(0,212,255,0) 89%, rgba(0,0,0,0.6) 100%);
    background: linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 11%, rgba(0,0,0,0.7) 18%, rgba(8,120,136,0) 25%, rgba(5,86,172,0) 75%, rgba(0,0,0,0.7) 82%, rgba(0,212,255,0) 89%, rgba(0,0,0,0.6) 100%);
}
.colon-kaplya-2::after {
    background: -moz-linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 7%, rgba(0,0,0,0.7) 14%, rgba(8,120,136,0) 21%, rgba(5,86,172,0) 79%, rgba(0,0,0,0.7) 86%, rgba(0,212,255,0) 93%, rgba(0,0,0,0.6) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 7%, rgba(0,0,0,0.7) 14%, rgba(8,120,136,0) 21%, rgba(5,86,172,0) 79%, rgba(0,0,0,0.7) 86%, rgba(0,212,255,0) 93%, rgba(0,0,0,0.6) 100%);
    background: linear-gradient(90deg, rgba(0,0,0,0.5942577714679622) 0%, rgba(9,9,121,0) 7%, rgba(0,0,0,0.7) 14%, rgba(8,120,136,0) 21%, rgba(5,86,172,0) 79%, rgba(0,0,0,0.7) 86%, rgba(0,212,255,0) 93%, rgba(0,0,0,0.6) 100%);
}
.colons-img canvas {
    width: 100% !important;
    height: 100% !important;
}
.base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}
.base > *, .parapet > * {
    border-top: 3px solid #fff;
}
.sector_side, .sector_center {
    position: absolute;
    bottom: 0;
}
.sector_left {
    left: 0;
}
.sector_right {
    right: 0;
}
.parapet {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 4;
}
.fence {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}
.fence-whitespace {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 6;
}
.fence-whitespace_side, .fence-whitespace_center {
    top: 0;
    bottom: unset;
    background: #eee;
}
.no-shadow, .colons.no-shadow > .colon {
    box-shadow: unset !important;
}

.step {
    display: none;
}
.step__title {
    margin-bottom: 15px;
}
.block-hidden {
    display: none;
}
.colors-selector {
    margin-top: 15px;
}
.calculator_selector {
    display: flex;
}
.calculator_selector__item {
    margin-right: 20px;
}
.calculator_selector__item input {
    display: none;
}
.calculator_selector__item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 130px;
    padding: 10px;
    font-weight: normal;
    font-size: 13px;
}
.calculator_selector__item label img {
    max-width: 100%;
    margin-bottom: 10px;
}
.calculator_selector__item input:checked + label {
    color: #74281D;
    background-image: url(/static/icons/check.png);
    background-repeat: no-repeat;
    background-position-x: 85%;
    background-position-y: 65%;
}
.colontypes__item input:checked + label {
    background-image: none;
}
.colontypes__item input:checked + label > span::after {
    content: '';
    position: absolute;
    margin-left: 5px;
    width: 14px;
    height: 15px;
    background-image: url(/static/icons/check.png);
}
.calculator_selector__item input:disabled + label {
    /*opacity: .5;*/
    cursor: auto;
}

.bricktypes__item span {
    line-height: 1.2;
}
.bricktypes__item img {
    height: 50px;
}
.colontypes__item img {
    height: 80px;
}
@keyframes outline {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: #BDECB6;
    }
    100% {
        background-color: transparent;
    }
}
.bricktypes__item .blinking + label {
    animation-name: outline;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

.calculator__section {
    margin-bottom: 20px;
    outline: 1px solid transparent;
    transition: .5s;
}
.error-border-js {
    padding: 10px;
    outline: 1px solid red;
}
.calculator__section--flex {
    display: flex;
}
.calculator__section--flex .calculator__section {
    margin-right: 30px;
}
.calculator__section__title {
    font-size: 16px;
    font-weight: bold;
}
.calculator__result .result-row {
    width: 100%;
}
.calculator__result .ajax-loader {
    max-width: 50px;
}
.calculator-add-to-cart {
    min-width: 180px;
}
.calculator-add-to-cart .loader-1 {
    display: none;
}
.calculator-add-to-cart.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.calculator-add-to-cart.loading {
    background: #ffffff !important;
    color: #6c757d !important;
}
.calculator-add-to-cart.loading .loader-1 {
    display: block;
    margin-left: 10px;
}

.step__title {
    font-size: 24px;
    text-align: center;
    font-family: DINPro Bold;
}
.calculator__section input[type="number"] {
    width: 150px;
}
.input_desc {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.yes-no-radiogroup {
    display: flex;
    justify-content: center;
}
.yes-no-radiogroup__item {
    margin-right: 40px;
    font-size: 17px;
}
.yes-no-radiogroup__item label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}
.yes-no-radiogroup__item input {
    display: none;
}
.yes-no-radiogroup__item input:checked + label > .checkmark {
    background-image: url(/static/icons/check.png);
    background-repeat: no-repeat;
    background-position: center;
}
.yes-no-radiogroup__item .checkmark {
    display: block;
    margin-right: 7px;
    width: 22px;
    height: 22px;
    border: 1px solid #333;
}

.thickness {
    margin-top: 15px;
}
.thickness_item:not(:last-child) {
    margin-bottom: 10px;
}
.thickness_item img {
    max-width: 170px;
    margin: 0 20px;
}
.thickness_item label {
    font-weight: normal;
    cursor: pointer;
}

.calculator__result table,
.calculator__result th,
.calculator__result td {
    border-collapse: collapse;
}
.calculator__result td,
.calculator__result th {
    padding: 7px;
}
.calculator__result .align-right {
    text-align: right;
}
.calculator__result th {
    font-weight: bold;
}
/* Loader 1 */
.loader-1 {
    height: 32px;
    width: 32px;
    -webkit-animation: loader-1-1 4.8s linear infinite;
    animation: loader-1-1 4.8s linear infinite;
}
@-webkit-keyframes loader-1-1 {
    0%   { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes loader-1-1 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-1 span {
    display: block;
    position: absolute;
    top: 0; left: 0;
    bottom: 0; right: 0;
    margin: auto;
    height: 28px;
    width: 28px;
    clip: rect(0, 28px, 28px, 14px);
    -webkit-animation: loader-1-2 1.2s linear infinite;
    animation: loader-1-2 1.2s linear infinite;
}
@-webkit-keyframes loader-1-2 {
    0%   { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(220deg); }
}
@keyframes loader-1-2 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(220deg); }
}
.loader-1 span::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    bottom: 0; right: 0;
    margin: auto;
    height: 28px;
    width: 28px;
    clip: rect(0, 28px, 28px, 14px);
    border: 3px solid #74281D;
    border-radius: 50%;
    -webkit-animation: loader-1-3 1.2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
    animation: loader-1-3 1.2s cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}
@-webkit-keyframes loader-1-3 {
    0%   { -webkit-transform: rotate(-140deg); }
    50%  { -webkit-transform: rotate(-160deg); }
    100% { -webkit-transform: rotate(140deg); }
}
@keyframes loader-1-3 {
    0%   { transform: rotate(-140deg); }
    50%  { transform: rotate(-160deg); }
    100% { transform: rotate(140deg); }
}
.loader-1.table-loader {
    margin-left: auto;
    margin-right: auto;
}
.loader-1.table-loader,
.loader-1.table-loader span,
.loader-1.table-loader span::after {
    width: 40px;
    height: 40px;
}
.loader-1.table-loader span,
.loader-1.table-loader span::after {
    clip: rect(0, 40px, 40px, 20px);
}

.calculator-download {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}
.calculator-download .loader-1 {
    display: none;
    margin-left: 10px;
}
.calculator-download.loading {
    background: #fff !important;
    color: #6c757d !important;
}
.calculator-download.loading .loader-1 {
    display: block;
}

.calculator__actions .btn {
    margin-right: 3px;
}
.calculator__result__wrapper {
    margin-top: 30px;
}
.calculator__result__actions {
    margin-top: 25px;
}
.calculator__info {
    margin: 25px 0 40px;
    font-size: 15px;
}
.calculator__info.mb15 {
    margin-bottom: 15px !important;
}
.colon_selector:not(.colon_selector--rv) .bricktypes__item:nth-last-child(-n+3) {
    display: none;
}
.section_colon_types,
.section_colon_bricktypes,
.colon_selector--rv .colontypes__item:nth-last-child(-n+2),
.colon_selector--rv .bricktypes__item:nth-child(-n+3) {
    display: none;
}
.d-none {
    display: none !important;
}
.mt10 {
    margin-top: 10px;
}
.calculator__result a,
.calculator__info a {
    color: #333;
    text-decoration: underline;
}
.calculator__result a:hover,
.calculator__info a:hover {
    color: #74281D;
}
.ruler {
    display: none;
    position: absolute;
    width: calc(100% - 20px);
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    background: #000;
    height: 4px;
    z-index: 100;
    font-size: 20px;
}
.ruler::before, .ruler::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent black;
}
.ruler::before {
    left: -10px;
    transform: translateY(-50%) rotate(180deg);
}
.ruler::after {
    right: -10px;
}
.number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 10px;
    font-size: 15px;
    color: #000;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-wrap: nowrap;
    z-index: 100;
}
.colon .ruler,
.fence .sector_center .ruler,
.base .sector_center .ruler {
    display: block;
}
.base .sector_center .ruler .number {
    top: -10px;
}

.ruler-height {
    display: none;
    position: absolute;
    width: 4px;
    height: 100%;
    background: #000;
    top: 0;
    z-index: 99;
}
.colon .ruler-height,
.fence .sector_center .ruler-height,
.base .sector_center .ruler-height,
.parapet .sector_center .ruler-height {
    display: block;
}
.colon .ruler-height {
    left: 30%;
}
.fence .ruler-height,
.base .ruler-height,
.parapet .ruler-height {
    left: 10%;
}
.ruler-height::before, .ruler-height::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent black;
}
.parapet .ruler-height span,
.parapet .ruler-height::before,
.parapet .ruler-height::after,
.base .ruler-height span,
.base .ruler-height::before {
    display: none;
}
.ruler-height::before {
    top: -2px;
    transform: translateX(-30%) rotate(-90deg);
}
.ruler-height::after {
    transform: translateX(-30%) rotate(90deg);
    bottom: -2px;
}
.ruler-height .number {
    top: 20%;
    transform: translateX(-25%) rotate(90deg);
    left: 0;
}
.hidden-rulers .ruler,
.hidden-rulers .ruler-height {
    display: none !important;
}
