/* Вёрстка калькулятора. Комментарии на русском. */
:root {
	--text: #303030;
	--muted: #adadad;
	--line: #e2e2e2;
	--panel: #f0f0f0;
	--orange: #f47a11;
	--orange-600: #e86f09;
}

.fuel-calculator img,
.fuel-calculator svg {
	display: block;
}

.fuel-calculator .title-xl {
	margin-bottom: 24px;
}

.fuel-calculator {
	display: flex;
	flex-direction: column;
	margin-top: 55px;
	margin-bottom: 65px;
}

/* Две колонки: форма и панель экономии */
.fuel-calculator .fc-flex {
	display: flex;
	gap: 40px;
}

@media (max-width: 900px) {
	.fuel-calculator .fc-flex {
		flex-direction: column;
	}

	.fuel-calculator {
		margin-top: 30px;
		margin-bottom: 30px;
	}
}

.fuel-calculator .card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px;
}

.fuel-calculator .fc-form {
	width: 100%;
}

.fuel-calculator .fc-form .field {
	margin-bottom: 20px;
	position: relative;
}

.fuel-calculator .fc-input-wrap {
	position: relative;
}

.fuel-calculator .fc-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #303030;
}

.fuel-calculator .fc-input,
.fuel-calculator .fc-select {
	width: 100%;
	height: 43px;
	padding: 15px 0 8px;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid var(--line);
	background: transparent;
	font-size: 17px;
	outline: none;
}

/* Убрать стрелочки у input[type=number] */
.fuel-calculator .fc-input[type="number"]::-webkit-outer-spin-button,
.fuel-calculator .fc-input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.fuel-calculator .fc-input[type="number"] {
	-moz-appearance: textfield;
}
.fuel-calculator .fc-input::placeholder {
	color: #adadad;
}

/* Сброс нативной стрелки и базовая стилизация select как fallback */
.fuel-calculator .fc-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
}
.fuel-calculator select::-ms-expand {
	display: none;
} /* IE/Edge */

/* Кастомный выпадающий список */
.fuel-calculator .custom-select {
	position: relative;
}
.fuel-calculator .custom-select .cs-control {
	width: 100%;
	height: 43px;
	padding: 15px 0 8px; /* без левой паддинга и подчёркивание */
	border: none;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	text-align: left;
	font-size: 16px;
	color: var(--text);
	cursor: pointer;
}
.fuel-calculator .custom-select .cs-control:focus {
	outline: none;
	border-bottom-color: #d0d0d0;
}
.fuel-calculator .custom-select .cs-arrow {
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #b3b3b3;
	transition: transform 0.2s ease;
}
.fuel-calculator .custom-select.open .cs-arrow {
	transform: translateY(-50%) rotate(180deg);
}
.fuel-calculator .custom-select .cs-list {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	top: calc(100% - 1px);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	max-height: 240px;
	overflow: auto;
	padding: 6px 0;
	display: none;
}
.fuel-calculator .custom-select.open .cs-list {
	display: block;
}
.fuel-calculator .cs-option {
	padding: 10px 20px;
	font-size: 17px;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
}

.fuel-calculator .cs-option:focus {
	outline: none;
	background: #fff7ef;
}
.fuel-calculator .cs-option:hover,
.fuel-calculator .cs-option[aria-selected="true"].focus {
	background: #fef1e6; /* как в макете */
}

.fuel-calculator .custom-select .native-select {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}
.fuel-calculator .fc-input:focus,
.fuel-calculator .fc-select:focus {
	border-bottom-color: #d0d0d0;
}

.fuel-calculator .unit {
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	font-size: 14px;
	pointer-events: none;
	text-transform: uppercase;
}

.fuel-calculator .fc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	width: 100%;
	border: none;
	border-radius: 100px;
	background: var(--orange);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.fuel-calculator .fc-submit:hover {
	background: var(--orange-600);
}

/* Панель экономии */
.fuel-calculator .fc-savings {
	background: var(--panel);
	border-radius: 12px;
	padding: 30px;
	min-width: 459px;
}
.fuel-calculator .fc-savings h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
}
.fuel-calculator .fc-savings p {
	margin: 0 0 20px;
	color: #303030;
	font-weight: 500;
}
.fuel-calculator .fc-savings p a {
	color: #87b726;
	text-decoration: underline;
}
.fuel-calculator .fc-savings p a:hover {
	text-decoration: none;
}
.fuel-calculator .fc-savings a {
	color: #0a84ff;
	text-decoration: none;
}
.fuel-calculator .fc-savings a:hover {
	text-decoration: underline;
}

.fuel-calculator .savings-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 18px;
}
@media (max-width: 600px) {
	.fuel-calculator .savings-grid {
		grid-template-columns: 1fr;
	}

	.fuel-calculator .fc-savings {
		min-width: unset;
		width: 100%;
		padding: 15px;
	}
	.fuel-calculator .s-card {
		padding: 8px 10px;
	}
}

.fuel-calculator .s-card-note {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: start;
}

.fuel-calculator .s-card {
	background: #fff;
	border-radius: 6px;
	padding: 16px 20px;
	width: 100%;
	flex: 1;
	height: auto;

	display: flex;
	flex-direction: column;
}
.fuel-calculator .s-card .s-title {
	font-size: 15px;
	font-weight: 500;
	color: #303030;
	margin-bottom: 8px;
}
.fuel-calculator .s-card .s-value {
	font-size: 20px;
	font-weight: 600;
}

.fuel-calculator .s-value {
	margin-top: auto;
}

.fuel-calculator .s-card-note .note {
	color: #303030;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	gap: 4px;
	align-items: start;
	margin: 0;
}

.fuel-calculator .note-star {
	display: block;
}

/* Выделенная карточка с иконкой */
.fuel-calculator .s-card--highlight {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}
.fuel-calculator .s-card--highlight .s-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}
.fuel-calculator .s-card.wide {
	grid-column: 1 / -1;
}

/* Подписи под карточками */
.fuel-calculator .s-notes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 4px 0 8px;
}
@media (max-width: 600px) {
	.fuel-calculator .s-notes {
		grid-template-columns: 1fr;
	}
}

/* Результаты расчёта */
.fuel-calculator .results {
	margin-top: 24px;
}
.fuel-calculator .results h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
}

.fuel-calculator .r-grid {
	display: flex;
	gap: 20px;
}
@media (max-width: 760px) {
	.fuel-calculator .r-grid {
		flex-direction: column;
	}
}

.fuel-calculator .r-card {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	padding-right: 0;
	border-bottom: 1px solid var(--line);
}
.fuel-calculator .r-title {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 8px;
}
.fuel-calculator .r-value {
	font-weight: 600;
	font-size: 20px;
}

/* Иконки-эмодзи как плейсхолдеры */
.fuel-calculator .ico {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Пузырь-подсказка над полями */
.fuel-calculator .fc-tip {
	position: absolute;
	right: 0;
	top: -8px; /* появится над полем */
	transform: translateY(-100%);
	max-width: 213px;
	padding: 16px;
	font-size: 12px;
	color: var(--text);
	background: #f0f0f0;
	border-radius: 12px;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
	z-index: 30;
	display: none;
	text-align: center;
}
.fuel-calculator .fc-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -8px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #f3f3f4;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}
.fuel-calculator .fc-tip.show {
	display: block;
}
