/**
 * Prices page — Figma node 842:13570 «Цены».
 */

.prices {
	background: var(--dr-hug-bg);
	font-family: var(--dr-hug-font-family);
	padding: 0 0 100px;
	color: var(--dr-hug-black);
}

.prices__inner {
	max-width: var(--dr-hug-content-width);
	margin: 0 auto;
	padding: 0 var(--dr-hug-content-gutter);
}

.prices__section {
	display: flex;
	flex-direction: column;
	gap: 42px;
}

.prices__title {
	margin: 0;
	font-size: var(--dr-hug-font-size-xxl);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.3;
	color: var(--dr-hug-black);
}

.prices__filters {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.prices__filter {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 49px;
	padding: 12px 16px;
	background: var(--dr-hug-white);
	border: 2px solid var(--dr-hug-grey-light);
	border-radius: 12px;
	box-sizing: border-box;
}

input.prices__filter-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font-family: inherit;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-black);
	outline: none;
	box-shadow: none;
	appearance: none;
}

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

.prices__filter-input::placeholder {
	color: var(--dr-hug-grey);
	opacity: 1;
}

.prices__filter-input::-webkit-search-decoration,
.prices__filter-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.prices__filter-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* Custom select — Figma 889:5843 */
.prices-select {
	position: relative;
	min-width: 0;
}

.prices-select__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	width: 100%;
	min-height: 49px;
	padding: 12px 16px;
	border: 2px solid var(--dr-hug-grey-light);
	border-radius: 12px;
	background: var(--dr-hug-white);
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}

.prices-select__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.prices-select__icons {
	position: relative;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.prices-select__chevron {
	display: block;
	width: 24px;
	height: 24px;
	position: absolute;
	inset: 0;
	transition: transform 0.2s ease, opacity 0.15s ease;
}

.prices-select__chevron--active {
	opacity: 0;
}

.prices-select__trigger:hover .prices-select__label,
.prices-select.is-open .prices-select__label {
	color: var(--dr-hug-pink);
}

.prices-select__trigger:hover .prices-select__chevron--default,
.prices-select.is-open .prices-select__chevron--default {
	opacity: 0;
}

.prices-select__trigger:hover .prices-select__chevron--active,
.prices-select.is-open .prices-select__chevron--active {
	opacity: 1;
}

.prices-select.is-open .prices-select__chevron {
	transform: rotate(180deg);
}

.prices-select__menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: var(--dr-hug-white);
	border-radius: 4px;
	box-shadow: 0 0 8px rgba(41, 12, 15, 0.08);
	max-height: 320px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	pointer-events: none;
	transition:
		opacity 0.22s ease,
		visibility 0.22s ease,
		transform 0.22s ease;
}

.prices-select__menu[hidden] {
	display: block !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
}

.prices-select.is-open .prices-select__menu,
.prices-select.is-open .prices-select__menu[hidden] {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.prices-select__option {
	padding: 4px 12px;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
	cursor: pointer;
}

.prices-select__option:hover,
.prices-select__option.is-active {
	background: var(--dr-hug-pink-bg);
}

.prices-select__option.is-selected {
	color: var(--dr-hug-pink);
}

.prices__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.prices__empty {
	margin: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	color: var(--dr-hug-grey);
}

.prices__empty.is-hidden,
.prices-accordion.is-hidden,
.prices-table__row.is-hidden {
	display: none !important;
}

.prices-accordion {
	background: var(--dr-hug-white);
	border-radius: 24px;
	padding: 24px;
	box-sizing: border-box;
}

.prices-accordion__summary {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	list-style: none;
}

.prices-accordion__summary::-webkit-details-marker,
.prices-accordion__summary::marker {
	display: none;
	content: '';
}

.prices-accordion__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 28px;
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-accordion__toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.prices-accordion__icon {
	display: block;
	width: 32px;
	height: 32px;
	position: absolute;
	inset: 0;
	transition: opacity 0.15s ease;
}

.prices-accordion__icon--active {
	opacity: 0;
}

.prices-accordion[open] .prices-accordion__toggle {
	transform: rotate(180deg);
}

.prices-accordion[open] .prices-accordion__icon--default {
	opacity: 0;
}

.prices-accordion[open] .prices-accordion__icon--active {
	opacity: 1;
}

.prices-accordion__body {
	overflow: hidden;
	margin-top: 0;
	opacity: 0;
	height: 0;
}

.prices-accordion[open] .prices-accordion__body {
	opacity: 1;
	height: auto;
	margin-top: 24px;
}

.prices-accordion__body-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.prices-notice {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 12px;
	background: var(--dr-hug-bg);
	box-sizing: border-box;
}

.prices-notice__icon {
	display: block;
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 12px;
	object-fit: contain;
}

.prices-notice--calendar .prices-notice__icon,
.prices-notice--pets .prices-notice__icon {
	border-radius: 0;
}

.prices-notice__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.prices-notice__title {
	margin: 0;
	font-size: var(--dr-hug-font-size-md);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
	overflow-wrap: break-word;
}

.prices-notice__text {
	margin: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-grey);
	overflow-wrap: break-word;
}

.prices-notice__button,
.prices-notice__button:link,
.prices-notice__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	flex-shrink: 0;
	padding: 12px 16px;
	border: 2px solid var(--dr-hug-pink);
	border-radius: 12px;
	background: var(--dr-hug-white);
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-pink);
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: opacity 0.2s ease;
}

.prices-notice__button:hover,
.prices-notice__button:focus {
	color: var(--dr-hug-pink);
	text-decoration: none;
	opacity: 0.85;
}

.prices-table {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.25fr);
	border: 2px solid var(--dr-hug-grey-light);
	border-radius: 12px;
	overflow: hidden;
	background: var(--dr-hug-white);
}

.prices-table__row {
	display: contents;
}

.prices-table__cell {
	display: flex;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 2px solid var(--dr-hug-grey-light);
	box-sizing: border-box;
	min-width: 0;
}

.prices-table__row:last-child .prices-table__cell,
.prices-table__row--group:last-child .prices-table__cell--group {
	border-bottom: 0;
}

.prices-table__row--head .prices-table__cell {
	background: var(--dr-hug-pink-bg);
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-grey);
}

.prices-table__cell--price {
	justify-content: flex-end;
	text-align: right;
	gap: 10px;
	flex-wrap: wrap;
}

.prices-table__row--group .prices-table__cell--group {
	grid-column: 1 / -1;
	background: var(--dr-hug-pink-bg);
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-grey);
}

.prices-table__cell--name {
	flex-wrap: wrap;
	gap: 8px;
}

.prices-table__service {
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-table__promo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 24px;
	padding: 0 12px;
	border: 0;
	border-radius: 24px;
	background: var(--dr-hug-pink-bg);
	font-family: inherit;
	font-size: var(--dr-hug-font-size-xs);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1;
	color: var(--dr-hug-pink);
	white-space: nowrap;
	cursor: pointer;
}

.prices-table__promo:hover,
.prices-table__promo:focus-visible {
	opacity: 0.9;
	outline: none;
}

.prices-table__promo span {
	display: block;
	line-height: 1;
	/* Muller Bold sits optically high in the em-box */
	transform: translateY(1px);
}

.prices-table__promo img {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.prices-table__price {
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
	white-space: nowrap;
}

.prices-table__price--sale {
	color: var(--dr-hug-pink);
}

.prices-table__price--old {
	font-size: var(--dr-hug-font-size-xs);
	line-height: 1.2;
	color: var(--dr-hug-grey);
	text-decoration: line-through;
}

.prices-table__price--dual {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.prices-table__price-sep {
	color: #dadce0;
}

@media (max-width: 899px) {
	.prices__filters {
		grid-template-columns: 1fr;
	}

	.prices-accordion__title {
		font-size: var(--dr-hug-font-size-lg);
	}

	.prices-notice {
		flex-wrap: wrap;
	}

	.prices-notice__content {
		flex: 1 1 calc(100% - 96px);
	}

	.prices-notice__button {
		flex: 1 0 100%;
		width: 100%;
	}

	.prices-table {
		grid-template-columns: 1fr;
	}

	.prices-table__cell--price {
		justify-content: flex-start;
		border-top: 0;
		padding-top: 0;
	}

	.prices-table__row--head .prices-table__cell--price {
		display: none;
	}

	.prices-table__row--item .prices-table__cell--name {
		border-bottom: 0;
	}
}

@media (max-width: 767px) {
	.prices {
		padding-bottom: 64px;
	}

	.prices__section {
		gap: 24px;
	}

	.prices__title {
		font-size: 20px;
	}

	.prices-accordion {
		padding: 16px;
		border-radius: 16px;
	}

	.prices-accordion__title {
		font-size: 20px;
	}

	.prices-table__cell {
		padding: 12px 16px;
	}

	.prices-table__cell--name {
		flex-wrap: wrap;
		gap: 8px;
	}

	.prices-table__promo {
		white-space: normal;
	}

	.prices-table__price,
	.prices-table__price--dual {
		white-space: normal;
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.prices-select__label {
		font-size: 16px;
	}

	.prices-select__option {
		font-size: 16px;
		white-space: normal;
	}
}

/* Promo modal — Figma 950:23299 */

html.prices-promo-modal-open {
	overflow: hidden;
}

.prices-promo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
}

.prices-promo-modal[hidden] {
	display: none;
}

.prices-promo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(67, 72, 85, 0.48);
}

.prices-promo-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(600px, 100%);
	max-height: calc(100vh - 48px);
	overflow: visible;
	border-radius: 24px;
	background: var(--dr-hug-white);
	box-shadow: 0 16px 48px rgba(41, 12, 15, 0.16);
}

.prices-promo-modal__panel {
	display: flex;
	flex-direction: column;
	max-height: inherit;
	overflow: auto;
	border-radius: 24px;
	background: var(--dr-hug-white);
}

.prices-promo-modal__close {
	position: absolute;
	top: -26px;
	right: -26px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 52px;
	background: var(--dr-hug-white);
	box-shadow: 0 0 4px rgba(41, 12, 15, 0.08);
	cursor: pointer;
}

.prices-promo-modal__close img {
	display: block;
	width: 32px;
	height: 32px;
}

.prices-promo-modal__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 10px;
	overflow: hidden;
	border-radius: 24px 24px 0 0;
	background: linear-gradient(180deg, var(--dr-hug-pink-light) 0%, var(--dr-hug-white) 77%);
}

.prices-promo-modal__hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.prices-promo-modal__wave {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: auto;
}

.prices-promo-modal__hero-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 250px;
	object-fit: contain;
}

.prices-promo-modal__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 8px 32px 32px;
}

.prices-promo-modal__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.prices-promo-modal__title {
	margin: 0;
	font-size: 28px;
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-promo-modal__description {
	margin: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-promo-modal__includes {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prices-promo-modal__includes-title {
	margin: 0;
	font-size: var(--dr-hug-font-size-md);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-promo-modal__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prices-promo-modal__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.prices-promo-modal__bullet {
	display: block;
	width: 10px;
	height: 25px;
	flex-shrink: 0;
}

.prices-promo-modal__item-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-black);
}

.prices-promo-modal__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.prices-promo-modal__price {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--dr-hug-pink);
	color: var(--dr-hug-white);
	font-family: inherit;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.prices-promo-modal__price:hover,
.prices-promo-modal__price:focus-visible {
	opacity: 0.92;
}

.prices-promo-modal__note {
	margin: 0;
	font-size: var(--dr-hug-font-size-sm);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-grey);
	text-align: center;
}

@media (max-width: 700px) {
	.prices-promo-modal {
		padding: 24px 16px 16px;
		align-items: flex-end;
	}

	.prices-promo-modal__close {
		top: 8px;
		right: 8px;
	}

	.prices-promo-modal__body {
		padding: 8px 20px 24px;
	}

	.prices-promo-modal__title {
		font-size: 20px;
	}

	.prices-promo-modal__hero-image {
		height: 180px;
	}
}
