/* Позиционирование ==============================================================*/
.body-wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.no-scroll {
	overflow: hidden;
}

.main-index-container {
	flex: 1;
}

/* Основная обёртка ==============================================================*/
.product-wrapper {
	max-width: 1440px;
	margin: 0 auto;
	padding: 95px 20px 40px 20px;
}

.product-header-wrapper {
	width: 100%;
	z-index: 49;
	position: fixed;
	background-color: #1a1a1a;
	padding: 95px 0 25px 0;
}

.product-header {
	display: flex;
	justify-content: space-between;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

.product__title {
	text-align: end;
	order: 2;
	/* font-size: 1.5rem; */
}

.back-button {
	padding: 5px 15px;
	font-size: 12px;
	color: white;
	background-color: #d4003f;
	border: none;
	border-radius: 5px;
	transition: 0.3s ease-in-out;
	cursor: pointer;
	order: 1;
}

.back-button:hover {
	background-color: #a3002e;
}

.back-button i {
	margin-right: 2px;
	font-size: 12px;
}

@media (max-width: 771px) {
	.product-header-wrapper {
		padding: 95px 0 0 0;
	}
	.back-button {
		padding: 8px 15px;
	}
	.product__title {
		margin: 15px 0 0 0;
		padding-bottom: 0px;
		text-align: start;
	}
	.product-header {
		display: flex;
		flex-direction: column;
		padding-bottom: 23px;
	}
}

.product-container {
	padding-top: 55px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

/* Калькулятор ==============================================================*/

.calculator {
	background-color: #2a2a2a;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	padding: 20px;
	max-width: 800px;
	margin: 2rem auto;
}

.calculator__title {
	text-align: center;
	margin-bottom: 15px;
	/* font-size: 1.5rem; */
}

.calculator__text {
	margin-bottom: 15px;
}

.calculator__buttons {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
}

.calculator__button {
	background-color: #d4003f;
	color: white;
	border: none;
	padding: 5px 15px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	flex: 1;
	margin: 0 10px 0 0;
}

.calculator__button.active {
  background-color: white;
  color:#d4003f;
  border: 2px solid #d4003f; 
}

.calculator__button:not(.active) {
  background-color: #d4003f;
}

.calculator__button:hover {
	background-color: #a3002b;	
	color: white;
}

.calculator__button.active:hover {
    background-color: white;
	color:  #d4003f;
}

.calculator__container {
	display: flex;
	flex-direction: column;
}

.calculator__input-group {
	margin-bottom: 10px;
}

.calculator__label {
	margin-bottom: 0.5rem;
	font-size: 16px;
	display: block;
	font-weight: bold;
}

.calculator__input {
	width: 100%;
	margin-bottom: 10px;
	padding: 0.8rem;
	border: 1px solid #d4003f;
	border-radius: 5px;
	background-color: #1a1a1a;
	color: white;
	font-size: 1rem;
	outline: none;
	transition: border 0.3s ease;
}

.calculator__input:focus {
	border-color: #ffffff;
}

.calculator__calculate-button {
	background-color: #d4003f;
	color: white;
	border: none;
	padding: 15px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	font-size: 18px;
}

/* .calculator__calculate-button:hover {
	background-color: #a3002b;
} */

.calculator__result {
	margin-top: 20px;
	text-align: center;
}

.hidden {
	display: none;
}

@media (max-width: 771px) {
	.calculator__title {
		text-align: start;
		margin-bottom: 15px;
		font-size: 1.25rem;
	}

	.calculator__buttons {
		display: flex;
		flex-direction: column;
		margin-bottom: 10px;
	}

	.calculator__button {
		padding: 10px 15px;
		margin: 0 0 15px 0;
	}
}

.calculator__input {
	color: white; 
}

.calculator__input option:first-child {
	color: gray; 
}

.calculator__input option {
	color: white; 
}

.calculator__input.selected {
	color: gray;
}

.calculator__input option[value=''] {
	color: gray;
}

.custom-placeholder::placeholder {
	color: white;
}


