/* ----------------------------------------------------------- */
/* ЧТО ПРИГОТОВИТЬ: подбор рецептов по продуктам                */
/* ----------------------------------------------------------- */

.fr .ei,
.frh .ei{
	vertical-align: -.1em;
	font-style: normal;
}

.fr .ei-l,
.frh .ei-l{
	margin-right: .4em;
}

.fr-panel{
	background: #f6f8f5;
	border-radius: 16px;
	padding: 20px;
}

.fr-label{
	display: block;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
}

/* Поле с выбранными продуктами */

.fr-box{
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 2px solid #e3e8e1;
	border-radius: 14px;
	padding: 8px 10px;
	cursor: text;
	transition: border-color .15s;
}

.fr-box:focus-within{
	border-color: var(--primary-color);
}

.fr-chips{
	display: contents;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fr-chip{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--primary-color);
	color: #fff;
	border-radius: 999px;
	padding: 5px 6px 5px 12px;
	font-size: 15px;
	font-weight: 500;
}

.fr-chip-x{
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.fr-input{
	flex: 1;
	min-width: 160px;
	border: 0;
	outline: 0;
	font-size: 17px;
	padding: 6px 4px;
	background: transparent;
}

.fr-box .fr-input:focus{
	outline: none;
	box-shadow: none;
	border: 0;
}

.fr-suggest{
	position: absolute;
	left: -2px;
	right: -2px;
	top: calc(100% + 6px);
	z-index: 50;
	list-style: none;
	margin: 0;
	padding: 6px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.fr-suggest[hidden]{
	display: none;
}

.fr-suggest-item{
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
}

.fr-suggest-item:hover,
.fr-suggest-item.is-active{
	background: #eef6ee;
}

/* Быстрый выбор */

.fr-quick,
.fr-tags{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fr-quick{
	margin-top: 16px;
}

.fr-quick[hidden],
.fr-groups[hidden]{
	display: none;
}

.fr-tag{
	border: 1px solid #dfe5dc;
	background: #fff;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 15px;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}

.fr-tag:hover{
	border-color: var(--primary-color);
}

.fr-tag.is-on{
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.fr-more{
	margin-top: 12px;
	border: 0;
	background: none;
	padding: 4px 0;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}

.fr-groups{
	margin-top: 8px;
}

.fr-group{
	margin-top: 14px;
}

.fr-group-title{
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #8a8f88;
	font-weight: 600;
	margin-bottom: 8px;
}

.fr-pantry{
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 15px;
	color: #555;
	cursor: pointer;
}

.fr-pantry input{
	width: 20px;
	height: 20px;
	flex: none;
	accent-color: var(--primary-color);
}

/* Выдача */

.fr-results{
	margin-top: 28px;
	min-height: 160px;
	transition: opacity .2s;
}

.fr-results.is-loading{
	opacity: .45;
	pointer-events: none;
}

.fr-empty{
	text-align: center;
	color: #8a8f88;
	padding: 40px 16px;
}

.fr-empty .ti{
	font-size: 48px;
	display: block;
	margin-bottom: 8px;
}

.fr-head{
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
}

.fr-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.fr-card{
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	transition: transform .15s, box-shadow .15s;
}

.fr-card:hover{
	color: inherit;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.fr-pic{
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f1f1f1;
}

.fr-pic img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fr-time{
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 13px;
	border-radius: 999px;
	padding: 3px 10px;
}

.fr-body{
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.fr-title{
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
}

.fr-have{
	font-size: 14px;
	color: #2e7d32;
}

.fr-status{
	margin-top: auto;
	font-size: 14px;
	line-height: 1.4;
	background: #fff4e5;
	color: #8a4b00;
	border-radius: 8px;
	padding: 8px 10px;
}

.fr-status.is-ready{
	background: #e8f5e9;
	color: #2e7d32;
	font-weight: 600;
}

.fr-about{
	margin-top: 48px;
	max-width: 760px;
	color: #555;
}

.fr-about h2{
	font-size: 22px;
	font-weight: 700;
}

.fr-about h3{
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 6px;
}

/* H1 страницы подбора — тот же размер, что у заголовков других страниц (h3) */
.page-title h1.uk-heading-line{
	font-size: 1.5rem;
	line-height: 1.4;
}

h2.fr-head{
	margin-top: 0;
}

.fr-combos{
	margin-top: 48px;
}

.fr-combos h2{
	font-size: 22px;
	font-weight: 700;
}

.fr-combos ul{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fr-combos a{
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f3f3f3;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: background .15s;
}

.fr-combos a:hover{
	background: #e6e6e6;
	color: #111;
	text-decoration: none;
}

@media (max-width: 640px){
	/* На посадочной набор уже выбран — быстрые кнопки прячем, чтобы рецепты были на первом экране */
	.fr[data-products] .fr-quick{
		display: none;
	}
	.fr-combos-pre{
		display: none;
	}
	.fr-combos a{
		padding: 6px 12px;
	}
	.fr-panel{
		padding: 16px;
		margin: 0 -4px;
	}
	.fr-label{
		font-size: 18px;
	}
	.fr-grid{
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Блок на главной */

.frh .ei-r{
	margin-left: .4em;
}

.frh{
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px 24px;
	padding: 24px;
	border-radius: 18px;
	background: linear-gradient(135deg, #eef7ec 0%, #f8fbf3 100%);
	border: 1px solid #d8ead4;
}

.frh-title{
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.frh-title .ti{
	color: var(--primary-color);
}

.frh-sub{
	margin: 4px 0 0;
	color: #6b7268;
}

.frh-tags{
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.frh-tag{
	cursor: pointer;
}

.frh-tag input{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.frh-tag span{
	display: inline-block;
	background: #fff;
	border: 1px solid #d5e6d2;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 15px;
	transition: background .15s, border-color .15s, color .15s;
}

.frh-tag input:checked + span{
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.frh-tag input:focus-visible + span{
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.frh-go{
	grid-column: 2;
	grid-row: 1;
	border: 0;
	border-radius: 999px;
	background: var(--primary-color);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	padding: 12px 22px;
	cursor: pointer;
	white-space: nowrap;
}

@media (max-width: 640px){
	.frh{
		grid-template-columns: 1fr;
		padding: 18px;
	}
	.frh-title{
		font-size: 19px;
	}
	.frh-go{
		grid-column: 1;
		grid-row: auto;
		width: 100%;
	}
}

