.d-flex {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.grecaptcha-badge {
	display: none !important;
}


.calc-top {
	margin-top: 60px;
	margin-bottom: 43px;
}

.calc-top h1 {
	font-style: normal;
	font-weight: bold;
	font-size: 30px;
	line-height: 130%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #1C1B17;
	margin-top: 0;
	margin-bottom: 0; 
}

.calc-top .skidka {
	align-items: center;
}

.calc-top .skidka p {
	margin-bottom: 0;
	font-style: normal;
	font-weight: 300;
	font-size: 20px;
	line-height: 140%;
	color: #8E8E8E;
	margin-left: 17px;
}

.calc-top .skidka p span {
	font-weight: normal;
	color: #E31E24;
}

.calc-main {
	background: #FFFFFF;
	box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	padding: 50px 45px 80px;
}

.calc-main .tabs-top {
	width: 100%;
	border-bottom: 5px solid #F4F4F4;
	margin-bottom: 66px;
}

.calc-main .tabs-top .tab {
	width: 130px;
	cursor: pointer;
}

.calc-main .tabs-top .tab .name {
	font-style: normal;
	font-weight: bold;
	font-size: 16px;
	line-height: 130%;
	color: #000000;
	padding: 15px 0;
	margin-bottom: 0;
	position: relative;
	height: 40px; 
}

.calc-main .tabs-top .tab .name:before {
	content:'';
	width: 100%;
	height: 5px;
	background: #E31E24;
	position: absolute;
	left: 0;
	bottom: -5px;
	display: block;
	transform: scale(0);
}

.calc-main .tabs-top .tab.active .name,
.calc-main .tabs-top .tab:hover .name {
	color: #E31E24;
	transition: 0.5s;
}

.calc-main .tabs-top .tab.active .name:before,
.calc-main .tabs-top .tab:hover .name:before {
	transform: scale(1);
	transition: 0.5s;
}

.calc-main .wrapper {
	margin: 0;
	padding: 0;
}

.calc-main .wrapper .left-block {
	max-width: 382px;
	width: 100%;
}

.calc-main .wrapper .right-block {
	max-width: 605px;
	width: 100%;
}

.calc-main .wrapper .left-block .image {
	margin-bottom: 40px;
}

.calc-main .wrapper .left-block .description {
	display: none;
}

.calc-main .wrapper .left-block .description.active {
	display: block;
	margin-bottom: 40px;
} 

.calc-main .wrapper .left-block .description p {
	font-style: normal;
	font-weight: normal;
	font-size: 14px;
	line-height: 150%;
	color: #5E5E5E;
	margin-bottom: 12px;
}

.calc-main .wrapper .left-block .description p strong {
	font-weight: bold;
}

.calc-main .wrapper .left-block .description p.name {
	font-weight: bold;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #5E5E5E;
	margin-bottom: 15px;
}

.calc-main .wrapper .left-block .description .desc,
.calc-main .wrapper .left-block .image {
	display: none;
}

.calc-main .wrapper .left-block .description .desc.active,
.calc-main .wrapper .left-block .image.active {
	display: block;
}

.calc-main .wrapper .left-block .discount {
	border: 5px solid #F4F4F4;
	box-sizing: border-box;
	padding: 37px 29px;
	align-items: center;
	justify-content: flex-start;
}

.calc-main .wrapper .left-block .discount p {
	max-width: 235px;
	display: block;
	margin-bottom: 0;
	font-weight: 300;
	font-size: 20px;
	line-height: 140%;
	color: #8E8E8E;
	margin-left: 29px;
}

.calc-main .wrapper .left-block .discount p span {
	font-weight: normal;
	color: #E31E24;
	display: block;
}

.calc-main .items-outer.big {
    margin: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}


.quantity-block {
  margin: auto;
  font-size: 20px;
}
.quantity-arrow-minus,
.quantity-arrow-plus {
  cursor: pointer;
  font-size: 20px;
  padding: 5px 12px;
  width: 40px;
  box-sizing: border-box;
  border-radius: 4px;
  outline: none;
}
.quantity-num {
  font-size: 20px;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none;
}

.form-item label {
	display: block;
	font-style: normal;
	font-weight: normal;
	font-size: 16px;
	line-height: 140%;
	color: #1C1B17;
	margin-bottom: 9px;
}

.form-item input[type="color"] {
	width: 140px;
}

.row.d-flex.row-three {
	justify-content: flex-start;
}

.row.d-flex.row-three .form-item {
	width: 140px;
	margin-right: 23px;
	position: relative;
}

.row.d-flex.row-three-justify .form-item {
	width: 32%;
}

.row.d-flex.row-three .form-item i.fas.fa-times {
    position: absolute;
    right: -34px;
    top: 49px;
	cursor: pointer;
}

.row.d-flex.row-three .form-item input {
	max-width: 140px;
}

.quantity-block {
	border: 1px solid #c4c4c4;
	box-sizing: border-box;
	height: 55px;
}
.quantity-block .quantity-num {
	height: 55px;
    border: 0;
	display: block;
    padding: 0 10px;
	color: #1f1f1f;
    transition: all .3s ease;
    box-sizing: border-box;
    font-size: 15px;
	width: 39px;
    background: none;
}

.quantity-block > span {
	display: block;
	height: 55px;
	line-height: 47px;
    width: 38px;
    text-align: center;
}

.row-two .form-item {
	width: 48%;
}

.checkboxes label {
	display: flex;
	width: 32%;
	margin-bottom: 26px;
}

.checkboxes label.disabled {
	opacity: 0.7;
}

.checkboxes label p span {
	color: #E31E24;
	display: block;
}

.checkboxes label p span u {
	text-decoration: none;
}

.result {
	background: #F4F4F4; 
	padding: 29px 34px;
	box-sizing: border-box;
	margin-bottom: 48px;
}

.result .sum {
	width: 124px;
}

.result .discount {
	position: relative;
}

.result .discount:before {
	content: '';
    width: 2px;
    height: 84%;
    display: block;
    position: absolute;
    top: 12%;
    left: -10px;
    background: #E31E24;
}

.result .label {
	font-style: normal;
	font-weight: bold;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #5E5E5E;
	margin-bottom: 4px;
}

.result .price,
.term .term-val {
	font-style: normal;
	font-weight: bold;
	font-size: 16px;
	line-height: 130%;
	color: #000000;
}

.result .discount .price {
	color: #E31E24;
}

.result .price>span {
    font-size: inherit;
    font-weight: inherit;
}

.jq-selectbox__dropdown {
    position: absolute;
    background: #fff;
    top: 54px !important;
    width: 100% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    left: 0;
}

.jq-selectbox__select-text {
	height: 55px;
    line-height: 52px;
}

.jq-selectbox__trigger {
	position: absolute;
    width: 12px;
    height: 6px;
    top: 24px;
    right: 0;
	background: url(../images/calc/arrow-select.svg) top center no-repeat;
}

.wrapper .jq-selectbox li, .wrapper .jq-select-multiple li {
	white-space: normal;
}

.form-block.addition {
    margin-top: 30px;
}


.wrapper .tab {
	display: none;
}

.wrapper .tab.active {
	display: flex;
}

.row.d-flex.row-four .form-item {
	width: 140px;
}

.form-item.hide {
    display: none;
}

input.store {
    max-width: 100%;
    border: 0;
    box-sizing: border-box;
    padding: 0 10px;
}

/* success form */

.wrapper.success .tab {
	display: none;
	
}

.wrapper.success .top.d-flex {
    align-items: center;
	margin-bottom: 88px;
}

.wrapper.success .top.d-flex p.left {
	max-width: 40%;
	margin-bottom: 0;
	display: flex;
	align-items: center;
}

.wrapper.success .top.d-flex p.left span {
	display: block;
	font-style: normal;
	font-weight: bold;
	font-size: 26px;
	line-height: 140%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #1C1B17;
	margin-left: 46px;
	max-width: 362px;
	
}


.wrapper.success .top.d-flex p.right {
	margin-bottom: 0;
	padding-left: 24px;
	font-style: normal;
	font-weight: 300;
	font-size: 20px;
	line-height: 150%;
	color: #1C1B17;
	position: relative;
	max-width: 49%;
    text-align: left;
}

.wrapper.success .top.d-flex p.right:before {
	content: '';
	width: 5px;
	height: 100%;
	background: #E31E24;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

.wrapper.success .bottom.d-flex {
	position: relative;
}

.wrapper.success .bottom.d-flex .presentation {
	background: #F4F4F4;
	max-width: 566px;
	max-height: 395px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 84px 45px;
}

.wrapper.success .bottom.d-flex .presentation > p {
	display: block;
	font-style: normal;
	font-weight: 300;
	font-size: 24px;
	line-height: 150%;
	color: #1C1B17;
	margin-bottom: 50px;
}

.presentation-bl.d-flex {
    justify-content: flex-start;
    align-items: center;
}

.presentation-bl .cell.file {
	font-style: normal;
	font-weight: bold;
	font-size: 14px;
	line-height: 150%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #A3A3A3;
	margin-left: 34px;
}

.success .bottom img.presentation-book {
    position: absolute;
    right: -33px;
    bottom: -80px;
}

.discount-culc {
	display: none;
}

@media (max-width: 1199px) {
	.success .bottom img.presentation-book {
		display: none;
	}
	.calc-main .tabs-top .tab {
		width: 14%;
	}
	.calc-main .wrapper .right-block {
		max-width: 65%;
	}
	.calc-main .wrapper .left-block {
		max-width: 32%;
	}
}

@media (max-width: 991px) {
	
	.wrapper.success .top.d-flex p.left {
		max-width: 100%;
		margin-bottom: 38px;
	}
	.wrapper.success .top.d-flex p.right {
		max-width: 100%;
	}
	.page-id-461 .wrap > .container {
		padding: 0;
	}
	.calc-top {
		padding: 0 15px;
	}
	.calc-main {
		padding: 38px 0 80px;
	}
	.calc-main .tabs-top .tab {
		width: 130px;
		display: inline;
	}
	.calc-main .tabs-top .tab {
		width: 130px;
		display: inline-block;
		white-space: initial;
		margin-left: 12px;
		vertical-align: top;
	}
	.calc-main .tabs-top {
		border-bottom: 0;
		margin-bottom: 0;
		width: calc(100% + 50px);
		display: block;
		position: relative;
	}
	.overflow {
		width: 100%;
		display: block;
		overflow-x: auto;
		border-bottom: 5px solid #F4F4F4;
	}
	.nowrap {
		width: 100%;
		white-space: nowrap;
		position: relative;
		margin-bottom: 40px;
	}
	.calc-main .wrapper .left-block {
		max-width: 100%;
		padding: 0 15px;
	}
	.calc-main .wrapper .right-block {
		max-width: 100%;
		padding: 0 15px;
		margin-top: 40px;
	}
}

@media (max-width: 450px) {
	.wrapper.success .top.d-flex p.left span {
		font-size: 16px;
		margin-left: 15px;
	}
	.wrapper.success .top.d-flex p.right {
		font-size: 16px;
	}
	.wrapper.success .top.d-flex {
		margin-bottom: 38px;
	}
	.wrapper.success .bottom.d-flex .presentation {
		padding: 10px;
	}
	.wrapper.success .bottom.d-flex .presentation > p {
		font-size: 16px;
	}
	.presentation-bl.d-flex a.form-button {
		padding: 0 10px;
		text-align: center;
	}
	.presentation-bl.d-flex a.form-button span {
		font-size: 12px;
	}
	.presentation-bl.d-flex {
		justify-content: center;
	}
	.calc-top h1 {
		font-size: 22px;
		line-height: 130%;
		margin-bottom: 20px;
	}
	.calc-top {
		margin-top: 50px;
		margin-bottom: 30px;
	}
	.calc-top .skidka p {
		font-size: 18px;
		width: 183px;
	}
	.calc-main .tabs-top .tab .name {
		font-size: 13px;
		height: 33px;
	}
	.calc-main .tabs-top .tab {
		width: 100px;
		height: 173px;
		overflow: hidden;
	}
	.calc-main {
		padding: 21px 0 80px;
	}
	.calc-main .wrapper .left-block .discount p {
		font-size: 16px;
		margin-left: 16px;
	}
	.calc-main .wrapper .left-block .discount {
		padding: 26px 20px; 
	}
	.page-id-461 .form-field {
		height: 55px;
	}
	.row-two .form-item {
		width: 100%;
	}
	.checkboxes label {
		display: flex;
		width: 100%;
		margin-bottom: 25px;
	}
	.form-title {
		margin: 0 0 24px;
	}
	.form-block.addition {
		margin-top: 20px;
	}
	.result {
		padding: 35px 20px;
		box-sizing: border-box;
		margin-bottom: 44px;
	}
	.result .sum,
	.result .discount,
	.result .profit,
	.result .term {
		width: 50%;
	}
	.result .profit,
	.result .term {
		margin-top: 20px;
	}
	.row.d-flex.row-three {
		margin-bottom: 20px;
	}
	.jq-selectbox__select-text {
		max-width: 320px;
	}
	.row.d-flex.row-three-justify .form-item {
		width: 100%;
	}
}