/* ==========================================================================
   Home page: hero, learning paths, materials, instructor call
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: 40px var(--space); }
.hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}
@media (min-width: 1000px) {
	.hero__grid { grid-template-columns: 7fr 5fr; gap: 0; }
	.hero__intro { padding-right: 48px; }
	.hero__pick { padding-left: 32px; border-left: 1px solid var(--rule); }
}

.hero__title {
	margin: 4px 0 24px;
	font-size: clamp(48px, 7.4vw, 88px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.025em;
}
.hero__title em { color: var(--red); font-weight: 500; }

.hero__lead {
	max-width: 620px;
	margin-bottom: 32px;
	font-family: var(--serif);
	font-size: clamp(19px, 2.2vw, 22px);
	line-height: 1.4;
	color: var(--gray-dark);
}

.search-box {
	display: flex;
	max-width: 620px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
}
.search-box__input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
}
.search-box__btn { border-radius: 0; flex: none; }

.hero__facts {
	margin: 16px 0 0;
	color: var(--gray);
	font-size: 14px;
}

.hero__pick-media {
	position: relative;
	display: block;
	margin-bottom: 16px;
}
.hero__pick-title {
	margin-bottom: 10px;
	font-size: clamp(26px, 3vw, 32px);
	line-height: 1.12;
}
.hero__pick-title a { text-decoration: none; }
.hero__pick-title a:hover { text-decoration: underline; }

.buy-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}
.buy-row .price { font-size: 20px; }

/* --- Learning paths (price-table rows) ------------------------------------ */

.paths {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
}
.path {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px 32px;
	padding-block: 28px;
	border-bottom: 1px solid var(--rule);
}
@media (min-width: 1000px) {
	.path {
		grid-template-columns: 72px minmax(0, 4fr) minmax(0, 4fr) minmax(200px, 2fr);
		align-items: start;
	}
}
.path--chosen { background: var(--white); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
@media (min-width: 1000px) {
	.path--chosen { margin-inline: -20px; padding-inline: 20px; }
}

.path__num {
	font-family: var(--serif);
	font-style: italic;
	font-size: 44px;
	line-height: 1;
	color: var(--red);
}
.path__title { margin-bottom: 8px; font-size: 30px; }
.path__title a { text-decoration: none; }
.path__desc { margin: 0; color: var(--gray-dark); }

.path__courses-head {
	margin-bottom: 6px;
	font-stretch: 75%;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.path__courses ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}
.path__courses li { padding-block: 4px; border-bottom: 1px solid var(--rule); }
.path__courses li:last-child { border-bottom: 0; }
.path__courses a { text-decoration: none; }
.path__courses a:hover { text-decoration: underline; }

.path__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
@media (min-width: 1000px) {
	.path__buy { flex-direction: column; align-items: flex-end; text-align: right; }
}
.path__buy .price { font-size: 24px; }

/* --- Materials ------------------------------------------------------------ */

.materials {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px 0;
}
@media (min-width: 600px) { .materials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .materials { grid-template-columns: repeat(4, 1fr); } }

.material {
	display: flex;
	flex-direction: column;
	padding-inline: 0;
}
@media (min-width: 600px) {
	.material { padding-inline: 20px; border-left: 1px solid var(--rule); }
}
.material__media { margin-bottom: 14px; }
.material__title { margin-bottom: 8px; font-size: 24px; }
.material__title a { text-decoration: none; }
.material__desc { color: var(--gray-dark); font-size: 15px; }
.material__from {
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	color: var(--gray);
	font-size: 14px;
}
.material__from .price { color: var(--ink); font-size: 17px; }

/* --- For instructors ------------------------------------------------------ */

.teach {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: end;
}
@media (min-width: 900px) { .teach { grid-template-columns: 3fr 2fr; gap: 64px; } }
.teach__title {
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1;
	color: var(--white);
}
.teach__title em { color: var(--red-on-dark); font-weight: 500; }
.teach__side p { color: var(--on-dark); font-size: 17px; }

/* --- Figures strip -------------------------------------------------------- */

.figures { border-block: 1px solid var(--rule); }
.figures__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 800px) { .figures__list { grid-template-columns: repeat(4, 1fr); } }
.figures__item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 20px 16px 20px 0;
}
@media (min-width: 800px) {
	.figures__item + .figures__item { padding-left: 24px; border-left: 1px solid var(--rule); }
}
.figures__num {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.figures__text { color: var(--gray-dark); font-size: 15px; }

/* --- Instructors ---------------------------------------------------------- */

.teachers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 800px) { .teachers { grid-template-columns: repeat(4, 1fr); } }
.teacher { display: flex; flex-direction: column; min-width: 0; }
.teacher__link { display: block; text-decoration: none; }
.teacher__photo {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--ph);
}
.teacher__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.3s ease;
}
.teacher__link:hover .teacher__img,
.teacher__link:focus-visible .teacher__img { filter: none; }
.teacher__name {
	display: block;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.15;
}
.teacher__link:hover .teacher__name { text-decoration: underline; }
.teacher__job { margin-top: 4px; color: var(--red); font-size: 14px; font-weight: 600; }
.teacher__course { margin-top: 4px; color: var(--gray); font-size: 14px; }
