/* =========================================================
   Страница преподавателей (prep.html)
   ========================================================= */

.logo-link {
	display: block;
	line-height: 0;
}

.logo-link img {
	height: 50px;
	width: auto;
}

.nav-links a.is-active {
	color: #900000;
}

/* ---------- Вступление ---------- */

.prep-intro {
	width: 80%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 70px 0 10px;
}

.prep-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
	font-family: serif;
	font-size: 12px;
	letter-spacing: 1.6px;
	line-height: 1.5;
	text-transform: uppercase;
	color: #8d8477;
}

.prep-breadcrumbs a {
	color: #8d8477;
	text-decoration: none;
	transition: color 0.3s ease;
}

.prep-breadcrumbs a:hover {
	color: #900000;
}

.prep-breadcrumbs__sep {
	color: #c9c0b2;
}

.prep-intro__eyebrow {
	font-family: serif;
	font-size: 13px;
	letter-spacing: 3px;
	line-height: 1.5;
	text-transform: uppercase;
	color: #c9a96e;
}

.prep-intro__title {
	margin: 12px 0 18px;
	font-size: 56px;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.prep-intro__lead {
	max-width: 820px;
	margin: 0;
	font-family: serif;
	font-size: 19px;
	line-height: 1.7;
	color: #3d3d3d;
}

/* ---------- Карточка преподавателя ---------- */

.teacher {
	display: grid;
	grid-template-columns: 8fr 1fr 8fr;
	grid-template-areas: "photo gap body";
	align-items: start;
	width: 80%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 0 70px;
	border-top: 1px solid #ece7dd;
}

.teacher:first-of-type {
	border-top: none;
	padding-top: 46px;
}

.teacher__photo {
	grid-area: photo;
	height: 430px;
	background-color: #f5f2ec;
	background-position: center 20%;
	background-repeat: no-repeat;
	background-size: cover;
}

.teacher__gap {
	grid-area: gap;
	min-height: 1px;
}

.teacher__body {
	grid-area: body;
	padding-top: 6px;
}

.teacher__role {
	font-family: serif;
	font-size: 13px;
	letter-spacing: 2px;
	line-height: 1.55;
	text-transform: uppercase;
	color: #c9a96e;
}

.teacher__name {
	margin: 10px 0 18px;
	font-size: 44px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.teacher__lead {
	margin: 0 0 24px;
	font-family: serif;
	font-size: 17px;
	line-height: 1.7;
	color: #2f2f2f;
}

.teacher__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.teacher__fact {
	padding: 7px 12px;
	border: 1px solid #e5dbc9;
	background: #fbf8f2;
	font-family: serif;
	font-size: 13px;
	line-height: 1.4;
	color: #5b5243;
}

.teacher__subhead {
	display: inline-block;
	margin: 0 0 14px;
	padding-bottom: 5px;
	border-bottom: 1px solid #d1af78;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
}

.teacher__list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.teacher__list li {
	position: relative;
	padding: 0 0 10px 20px;
	font-family: serif;
	font-size: 15.5px;
	line-height: 1.65;
	color: #3c3c3c;
}

.teacher__list li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: #d1af78;
}

.teacher__extra {
	margin: 0 0 18px;
	font-family: serif;
	font-size: 15px;
	line-height: 1.7;
	color: #5a5a5a;
}

.teacher__education {
	margin: 0 0 26px;
	padding-left: 14px;
	border-left: 2px solid #e5dbc9;
	font-family: serif;
	font-size: 14.5px;
	line-height: 1.7;
	color: #6a6255;
}

.teacher--reverse {
	grid-template-areas: "body gap photo";
}

/* ---------- Запись на диагностику ---------- */

.prep-cta {
	margin-top: 10px;
	padding: 70px 30px;
	background: #111111;
	text-align: center;
}

.prep-cta__title {
	margin: 0 0 16px;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff;
}

.prep-cta__text {
	max-width: 640px;
	margin: 0 auto 28px;
	font-family: serif;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
}

.prep-cta .ubtn {
	padding: 14px 24px;
}

/* ---------- Планшеты и небольшие ноутбуки ---------- */

@media screen and (max-width: 1100px) {
	.prep-intro {
		width: 90%;
		padding-top: 50px;
	}

	.prep-intro__title {
		font-size: 44px;
	}

	.teacher {
		width: 90%;
		padding: 50px 0 56px;
	}

	.teacher__photo {
		height: 400px;
	}

	.teacher__role {
		font-size: 12px;
		letter-spacing: 1.5px;
	}

	.teacher__name {
		font-size: 38px;
	}

	.teacher__lead {
		font-size: 16px;
	}

	.prep-cta__title {
		font-size: 28px;
	}
}

/* ---------- Узкие экраны (вёрстка в одну колонку) ---------- */

@media screen and (max-width: 860px) {
	.teacher {
		display: block;
	}

	.teacher__photo {
		height: 380px;
		margin-bottom: 30px;
	}

	.teacher__name {
		font-size: 34px;
	}
}
