.modal {
    display: none;
    max-width: 500px;
    width: 100%;
}

.modal__container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal__close:hover {
    color: #e30016;
}

.modal__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.modal__text {
    margin-bottom: 25px;
    color: #666;
}

.modal__form .form__line {
    margin-bottom: 20px;
}

.form__input__textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: none;
}

.form__input__textarea:focus {
    outline: none;
    border-color: #e30016;
}

.form__input__info.error {
    color: #e30016;
    font-size: 12px;
    margin-top: 5px;
}

/* ========================================
   ПОИСКОВИК (фиксированный в верхней части)
   ======================================== */

/* Обертка поисковика - фиксируется при скролле */
.pricelist__search-wrapper {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 15px 0 10px 0;
	background: #ffffff;
	margin-bottom: 10px;
	border-bottom: 1px solid #e8e8e8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Контейнер поиска */
.pricelist__search {
	position: relative;
}

/* Иконка поиска */
.pricelist__search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #999999;
	pointer-events: none;
	z-index: 2;
}

/* Поле ввода */
.pricelist__search__input {
	width: 100%;
	padding: 12px 45px 12px 48px;
	border: 2px solid #e8e8e8;
	border-radius: 10px;
	font-size: 16px;
	background: #f8f8f8;
	transition: all 0.3s ease;
	outline: none;
	color: #333333;
	height: 52px;
}

.pricelist__search__input:focus {
	border-color: #E30016;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(227, 0, 22, 0.1);
}

.pricelist__search__input::placeholder {
	color: #aaaaaa;
}

/* Кнопка очистки */
.pricelist__search__clear {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #999999;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	z-index: 2;
}

.pricelist__search__clear:hover {
	color: #333333;
}

/* Выпадающий список результатов */
.pricelist__search__results {
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	max-height: 300px;
	overflow-y: auto;
	display: none;
	z-index: 200;
	border: 1px solid #f0f0f0;
}

.pricelist__search__results.active {
	display: block;
}

/* Кастомизация скролла */
.pricelist__search__results::-webkit-scrollbar {
	width: 6px;
}

.pricelist__search__results::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 10px;
}

.pricelist__search__results::-webkit-scrollbar-thumb {
	background: #d0d0d0;
	border-radius: 10px;
}

.pricelist__search__results::-webkit-scrollbar-thumb:hover {
	background: #b0b0b0;
}

/* Элемент в результатах поиска */
.pricelist__search__results__item {
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.pricelist__search__results__item:last-child {
	border-bottom: none;
}

.pricelist__search__results__item:hover {
	background: #f5f5f5;
}

.pricelist__search__results__item__name {
	font-weight: 500;
	color: #333333;
	flex: 1;
}

.pricelist__search__results__item__section {
	font-size: 12px;
	color: #999999;
	white-space: nowrap;
}

.pricelist__search__results__item__price {
	font-weight: 600;
	color: #E30016;
	font-size: 14px;
	white-space: nowrap;
}

/* Сообщение "Ничего не найдено" */
.pricelist__search__results .no-results {
	padding: 20px 16px;
	text-align: center;
	color: #999999;
	font-size: 14px;
}

/* ========================================
   ПОДСВЕТКА НАЙДЕННОГО ТЕКСТА
   ======================================== */

.pricelist__prices__title .highlight {
	background: #ffeb3b;
	padding: 0 2px;
	border-radius: 2px;
	font-weight: 500;
}

/* ========================================
   АНИМАЦИЯ ПРИ ПРОКРУТКЕ К ЭЛЕМЕНТУ
   ======================================== */

.pricelist__list__item.highlight-item {
	animation: highlightPulse 1.5s ease;
	border-radius: 8px;
}

@keyframes highlightPulse {
	0%, 100% {
		background: transparent;
	}
	30% {
		background: rgba(227, 0, 22, 0.08);
	}
	70% {
		background: rgba(227, 0, 22, 0.05);
	}
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

/* Планшеты и маленькие экраны */
@media (max-width: 991px) {
	.pricelist__search-wrapper {
		padding: 12px 0 8px 0;
	}
	
	.pricelist__search__input {
		padding: 10px 40px 10px 44px;
		font-size: 15px;
		height: 48px;
	}
	
	.pricelist__search__results {
		max-height: 250px;
	}
	
	.pricelist__search__results__item {
		padding: 10px 14px;
		flex-wrap: wrap;
	}
	
	.pricelist__search__results__item__section {
		font-size: 11px;
	}
	
	.pricelist__search__results__item__price {
		font-size: 13px;
	}
}

/* Мобильные телефоны */
@media (max-width: 576px) {
	.pricelist__search-wrapper {
		padding: 10px 0 6px 0;
		margin-bottom: 6px;
	}
	
	.pricelist__search__input {
		padding: 8px 36px 8px 40px;
		font-size: 14px;
		height: 44px;
		border-radius: 8px;
	}
	
	.pricelist__search__icon {
		left: 12px;
	}
	
	.pricelist__search__icon svg {
		width: 18px;
		height: 18px;
	}
	
	.pricelist__search__clear {
		right: 12px;
	}
	
	.pricelist__search__results {
		max-height: 200px;
		border-radius: 8px;
	}
	
	.pricelist__search__results__item {
		padding: 8px 12px;
		flex-wrap: wrap;
		gap: 4px;
	}
	
	.pricelist__search__results__item__name {
		font-size: 14px;
		width: 100%;
	}
	
	.pricelist__search__results__item__section {
		font-size: 11px;
	}
	
	.pricelist__search__results__item__price {
		font-size: 13px;
	}
	
	.pricelist__search__results .no-results {
		padding: 16px 12px;
		font-size: 13px;
	}
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ (опционально)
   ======================================== */

/* Анимация появления результатов */
.pricelist__search__results.active {
	animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Стиль для активной кнопки "Записаться" (уже в корзине) */
.pricelist__prices__btn.active {
	background: #E30016;
	color: #ffffff;
	border-color: #E30016;
}

.pricelist__prices__btn.active:hover {
	background: #c40013;
	border-color: #c40013;
}

/* Тень для обертки при скролле */
.pricelist__search-wrapper.scrolled {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Стиль для иконки удаления в корзине */
.pricelist__cart__footer__list__delete {
	background: none;
	border: none;
	color: #999999;
	cursor: pointer;
	padding: 4px;
	transition: color 0.3s ease;
}

.pricelist__cart__footer__list__delete:hover {
	color: #E30016;
}