.ys-pdp {
	box-sizing: border-box;
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	color: #324945;
}

.ys-pdp *,
.ys-pdp *::before,
.ys-pdp *::after {
	box-sizing: border-box;
}

.ys-pdp h1 {
	margin: 0 0 8px;
	font-size: 2rem;
	line-height: 1.2;
	color: #324945;
}

.ys-pdp-intro {
	margin: 0 0 24px;
	max-width: 42rem;
	color: #657d80;
}

.ys-pdp-form {
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid #d7e3e4;
	border-radius: 16px;
	background: #fff;
}

.ys-pdp-search-field {
	margin-bottom: 16px;
}

.ys-pdp-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
	align-items: end;
}

.ys-pdp label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #324945;
}

.ys-pdp input[type="search"],
.ys-pdp select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #b7c9cb;
	border-radius: 10px;
	background: #fff;
	color: #324945;
	font: inherit;
	font-size: 1rem;
}

.ys-pdp input[type="search"]:focus,
.ys-pdp select:focus,
.ys-pdp button:focus-visible,
.ys-pdp a:focus-visible,
.ys-pdp .simplefavorite-button:focus-visible {
	outline: 2px solid #009ab2;
	outline-offset: 2px;
}

.ys-pdp .ys-pdp-submit,
.ys-pdp [type="submit"].ys-pdp-submit {
	appearance: none;
	margin-top: 16px;
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 8px;
	background: #009ab2;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ys-pdp .ys-pdp-submit:hover {
	background: #007a92;
}

.ys-pdp-submit-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.ys-pdp-submit-row .ys-pdp-submit {
	margin-top: 16px;
}

.ys-pdp .ys-pdp-submit.is-busy,
.ys-pdp .ys-pdp-submit:disabled {
	background: #8cb8c1;
	cursor: default;
}

.ys-pdp-search-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0;
	color: #657d80;
	font-size: 0.95rem;
}

.ys-pdp-search-status[hidden] {
	display: none;
}

.ys-pdp-search-figure {
	display: block;
	height: 48px;
	width: auto;
	flex-shrink: 0;
	animation: ys-pdp-breathe 1.8s ease-in-out infinite;
}

@keyframes ys-pdp-breathe {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.75;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ys-pdp-search-figure {
		animation: none;
		opacity: 1;
	}
}

.ys-pdp-section {
	margin: 8px 0 16px;
	font-size: 1.35rem;
	line-height: 1.3;
}

.ys-pdp-courses {
	margin-bottom: 36px;
}

.ys-pdp-count {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.ys-pdp-note,
.ys-pdp-empty {
	margin: 0 0 20px;
	color: #657d80;
}

.ys-pdp-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ys-pdp-results > li {
	min-width: 0;
}

.ys-pdp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #e3ecec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgb(50 73 69 / 6%);
}

.ys-pdp-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ys-pdp-card-link .ys-pdp-card-title {
	padding: 16px 16px 0;
}

.ys-pdp-card-link:hover .ys-pdp-card-title {
	color: #009ab2;
}

.ys-pdp-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 5;
	object-fit: cover;
	background: #eef4f4;
}

.ys-pdp-course-card .ys-pdp-thumb {
	aspect-ratio: 823 / 552;
}

.ys-pdp-card-body {
	padding: 8px 16px 8px;
}

.ys-pdp-meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 8px;
	color: #657d80;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ys-pdp-level {
	color: #009ab2;
}

.ys-pdp-level-beginner {
	color: #ffa9aa;
}

.ys-pdp-level-intermediate {
	color: #ff7263;
}

.ys-pdp-level-advanced {
	color: #009ab2;
}

.ys-pdp-completed {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border: 1px solid #d7e3e4;
	border-radius: 6px;
	background: #eef4f4;
	color: #3e5552;
	font-weight: 600;
}

.ys-pdp-completed-mark {
	font-weight: 400;
	color: #657d80;
}

.ys-pdp-card-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	line-height: 1.35;
	color: #324945;
}

.ys-pdp-excerpt {
	margin: 0 0 12px;
	color: #3e5552;
	font-size: 0.95rem;
	line-height: 1.45;
}

.ys-pdp-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ys-pdp-labels li {
	padding: 4px 8px;
	border-radius: 999px;
	background: #e7f5f7;
	color: #324945;
	font-size: 0.75rem;
	line-height: 1.3;
}

.ys-pdp-favorite {
	margin-top: auto;
	padding: 12px 16px 16px;
}

.ys-pdp-favorite .simplefavorite-button.preset {
	min-height: 44px;
	padding: 0.35em 0.9em 0.35em 1.75em;
	font-size: 0.8rem;
	line-height: 1.2;
	border-radius: 6px;
}

.ys-pdp-favorite .simplefavorite-button.preset i {
	font-size: 1em;
	left: 0.45em;
}

.ys-pdp-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 28px;
}

.ys-pdp-pages a,
.ys-pdp-pages .ys-pdp-page-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	text-decoration: none;
}

.ys-pdp-pages a {
	border: 1px solid #b7c9cb;
	color: #324945;
	background: #fff;
}

.ys-pdp-pages .ys-pdp-page-current {
	background: #009ab2;
	color: #fff;
}

.ys-pdp-course-block {
	margin-bottom: 36px;
}

.ys-pdp-courses {
	margin-bottom: 0;
}

.ys-pdp-course-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.ys-pdp-course-heading .ys-pdp-section {
	margin: 0;
}

.ys-pdp-course-controls {
	display: none;
	gap: 8px;
	flex-shrink: 0;
}

.ys-pdp.has-js .ys-pdp-course-controls {
	display: flex;
}

.ys-pdp-course-prev,
.ys-pdp-course-next {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid #b7c9cb;
	border-radius: 6px;
	background: #fff;
	color: #324945;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.ys-pdp-course-prev:hover,
.ys-pdp-course-next:hover {
	border-color: #009ab2;
	color: #009ab2;
}

.ys-pdp-course-prev:focus-visible,
.ys-pdp-course-next:focus-visible,
.ys-pdp-load-more:focus-visible {
	outline: 2px solid #009ab2;
	outline-offset: 2px;
}

.ys-pdp-course-prev:disabled,
.ys-pdp-course-next:disabled {
	opacity: 0.35;
	cursor: default;
	border-color: #d7e3e4;
	color: #657d80;
}

.ys-pdp-course-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ys-pdp.has-js .ys-pdp-courses li.ys-pdp-course-off {
	display: none;
}

.ys-pdp-load-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 24px 0 0;
}

.ys-pdp .ys-pdp-load-more,
.ys-pdp button.ys-pdp-load-more {
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 8px;
	background: #005870;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
}

.ys-pdp .ys-pdp-load-more:hover {
	background: #00485c;
}

.ys-pdp .ys-pdp-load-more:disabled {
	background: #7a9aa3;
	opacity: 1;
	cursor: default;
}

.ys-pdp-load-status {
	color: #657d80;
	font-size: 0.9rem;
}

.ys-pdp.has-js .ys-pdp-load-more ~ .ys-pdp-pages,
.ys-pdp.has-js .ys-pdp-load-wrap + .ys-pdp-pages {
	display: none;
}

.ys-pdp-browse {
	margin: 0;
	padding-top: 20px;
}

.ys-pdp-browse-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	margin: 0 0 20px;
	border-bottom: 1px solid #d7e3e4;
}

.ys-pdp-browse-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px 10px;
	margin-bottom: -1px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #657d80;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
}

.ys-pdp-browse-tab:hover {
	color: #009ab2;
}

.ys-pdp-browse-tab[aria-current="page"] {
	color: #009ab2;
	border-bottom-color: #009ab2;
	background: transparent;
}

.ys-pdp .ys-pdp-browse-tab:focus-visible {
	outline: 2px solid #009ab2 !important;
	outline-offset: 2px !important;
}

.ys-pdp-browse-load-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 20px 0 0;
}

.ys-pdp .ys-pdp-browse-load,
.ys-pdp button.ys-pdp-browse-load {
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 8px;
	background: #005870;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ys-pdp .ys-pdp-browse-load:hover {
	background: #00485c;
}

.ys-pdp .ys-pdp-browse-load:disabled {
	background: #7a9aa3;
	cursor: default;
}

.ys-pdp-browse-load-status {
	color: #657d80;
	font-size: 0.9rem;
}

.ys-pdp.has-js .ys-pdp-browse-load[hidden] {
	display: none;
}

@media (max-width: 800px) {
	.ys-pdp-filters,
	.ys-pdp-results {
		grid-template-columns: 1fr;
	}

	.ys-pdp {
		padding: 24px 16px 48px;
	}
}
