/* Благодарственные письма: хаб /about/letters/, страница письма и блок в каталоге аренды */

.tl-lead {
	max-width: 820px;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(0, 0, 0, .7);
}

/* Фильтр */
.tl-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 28px;
}
.tl-nav > .tl-chip {
	align-self: flex-start;
}
.tl-nav__group,
.tl-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.tl-nav__label {
	font-size: 14px;
	color: rgba(0, 0, 0, .55);
	margin-right: 4px;
}
.tl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #e3e3e5;
	border-radius: 16px;
	background: #fff;
	color: #303039;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.tl-chip span {
	color: rgba(0, 0, 0, .45);
	font-size: 12px;
}
.tl-chip:hover {
	border-color: #ffdd55;
}
.tl-chip.is-active {
	background: #ffdd55;
	border-color: #ffdd55;
}

/* Сетка карточек */
.tl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}
.tl-card {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	box-shadow: 0 0 13px rgba(0, 0, 0, .07);
	background: #fff;
	overflow: hidden;
}
.tl-card__scan {
	display: block;
	padding: 18px 18px 0;
	background: #f4f4f5;
	height: 240px;
	overflow: hidden;
}
.tl-card__scan img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.tl-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 16px 18px 18px;
}
.tl-card__company {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.tl-card__logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
}
.tl-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
	text-decoration: none;
}
.tl-card__meta {
	font-size: 13px;
	color: rgba(0, 0, 0, .55);
	margin-bottom: 10px;
}
.tl-card__quote {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(0, 0, 0, .75);
	margin: 0 0 12px;
}
.tl-card__more {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	color: #303039;
}

.tl-grid--compact .tl-card__scan {
	height: 180px;
}

/* Блок в каталоге */
.tl-block {
	margin: 40px 0;
}
.tl-block__all,
.tl-backlink a {
	font-weight: 700;
	color: #303039;
}
.tl-backlink {
	margin: 10px 0 30px;
}

/* Страница письма */
.tl-letter__top {
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}
.tl-figure {
	margin: 0;
}
.tl-figure__zoom {
	display: block;
	padding: 20px;
	border-radius: 10px;
	background: #f4f4f5;
	cursor: zoom-in;
}
.tl-figure__img,
.tl-figure__zoom img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.tl-figure__caption {
	margin-top: 12px;
	font-size: 14px;
	color: rgba(0, 0, 0, .65);
}
.tl-figure__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
/* .btn-small сайта рассчитан на line-height: 0 у .btn и во flex прижимает текст к верху. */
.tl-figure__actions .btn {
	height: auto;
	line-height: 1.2;
	align-items: center;
	padding: 9px 14px;
}

.tl-partner,
.tl-object {
	padding: 22px 24px;
	border-radius: 10px;
	box-shadow: 0 0 13px rgba(0, 0, 0, .07);
	background: #fff;
	margin-bottom: 20px;
}
.tl-partner__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}
.tl-partner__head:last-child {
	margin-bottom: 0;
}
.tl-partner__logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
	flex-shrink: 0;
}
.tl-partner__name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
.tl-props {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 18px;
	margin: 0;
	font-size: 15px;
}
.tl-props dt {
	color: rgba(0, 0, 0, .55);
}
.tl-props dd {
	margin: 0;
	word-break: break-word;
}
.tl-h3 {
	font-size: 18px;
	margin: 0 0 10px;
}
.tl-object__name {
	font-weight: 700;
	margin: 0 0 8px;
}
.tl-object__tasks {
	margin: 0;
	line-height: 1.6;
}

.tl-text {
	max-width: 860px;
	margin-bottom: 40px;
}

/* Ответственный инженер */
.tl-curator {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	max-width: 860px;
	padding: 22px 24px;
	border-left: 4px solid #ffdd55;
	border-radius: 10px;
	background: #f4f4f5;
	margin-bottom: 40px;
}
.tl-curator__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.tl-curator__label {
	font-size: 13px;
	color: rgba(0, 0, 0, .55);
}
.tl-curator__name {
	font-size: 18px;
	font-weight: 700;
}
.tl-curator__position {
	font-size: 14px;
	color: rgba(0, 0, 0, .7);
	margin-bottom: 8px;
}
.tl-curator__comment {
	margin: 0 0 10px;
	line-height: 1.6;
}
.tl-curator__badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 6px;
	background: #e3f4e5;
	color: #1d6b2a;
	font-size: 13px;
	font-weight: 700;
}

/* Витрина техники */
.tl-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}
.tl-product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 0 13px rgba(0, 0, 0, .07);
	background: #fff;
}
.tl-product__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 170px;
	margin-bottom: 12px;
}
.tl-product__photo img {
	max-width: 100%;
	max-height: 100%;
}
.tl-product__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #ffdd55;
	font-size: 12px;
	font-weight: 700;
}
.tl-product__name {
	font-weight: 700;
	line-height: 1.3;
	color: #000;
	margin-bottom: 6px;
}
.tl-product__price {
	font-size: 15px;
	margin-bottom: 12px;
}
/* У .btn сайта фиксированная высота под одну строку, а надпись здесь в две. */
.tl-product__order {
	margin-top: auto;
	height: auto;
	min-height: 40px;
	padding: 8px 10px;
	white-space: normal;
	line-height: 1.2;
	text-align: center;
	justify-content: center;
}

@media (max-width: 860px) {
	.tl-letter__top {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.tl-figure {
		max-width: 460px;
	}
}

@media (max-width: 540px) {
	.tl-grid {
		grid-template-columns: 1fr;
	}
	.tl-curator {
		flex-direction: column;
		gap: 14px;
	}
	.tl-props {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.tl-props dd {
		margin-bottom: 8px;
	}
	.tl-partner,
	.tl-object,
	.tl-curator {
		padding: 18px;
	}
}
