/**
 * Tangutech function cards.
 */

.ttf {
	--ttf-label: #9b2c2c;
	--ttf-title: #9b2c2c;
	--ttf-subtitle: #5c534c;
	--ttf-upper: #3a3a3a;
	--ttf-accent: #c6a15b;
	--ttf-card: #ffffff;
	--ttf-card-line: #efe8df;
	--ttf-item-title: #9b2c2c;
	--ttf-item-text: #3f3f46;
	--ttf-badge: #f6efe6;
	--ttf-badge-text: #a67c52;
	--ttf-downer: #f2f7f1;
	--ttf-downer-text: #4b5563;
	--ttf-downer-line: #3d8c4e;
	--ttf-cols: 2;
	color: var(--ttf-item-text);
}

.ttf-head {
	margin: 0 0 22px;
}

.ttf-label,
.ttf-title,
.ttf-subtitle,
.ttf-upper,
.ttf-card-text,
.ttf-downer {
	margin: 0;
}

.ttf-label {
	margin-bottom: 8px;
	color: var(--ttf-label);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ttf-title {
	color: var(--ttf-title);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
}

.ttf-subtitle {
	margin-top: 8px;
	color: var(--ttf-subtitle);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.ttf-upper {
	margin-top: 10px;
	color: var(--ttf-upper);
	font-size: 16px;
	line-height: 1.5;
}

.ttf-accent {
	width: 64px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--ttf-accent);
}

.ttf-align-left {
	text-align: left;
}

.ttf-align-left .ttf-accent {
	margin-right: auto;
	margin-left: 0;
}

.ttf-align-center {
	text-align: center;
}

.ttf-align-center .ttf-accent {
	margin-right: auto;
	margin-left: auto;
}

.ttf-align-right {
	text-align: right;
}

.ttf-align-right .ttf-accent {
	margin-right: 0;
	margin-left: auto;
}

.ttf-grid {
	display: grid;
	grid-template-columns: repeat(var(--ttf-cols, 2), minmax(0, 1fr));
	gap: 16px;
}

.ttf-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 18px;
	background: var(--ttf-card);
	border: 1px solid var(--ttf-card-line);
	border-radius: 16px;
	text-align: left;
}

.ttf-num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--ttf-badge);
	color: var(--ttf-badge-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.ttf-card-text {
	color: var(--ttf-item-text);
	font-size: 15px;
	line-height: 1.55;
}

.ttf-card-title {
	color: var(--ttf-item-title);
	font-weight: 700;
}

.ttf-hover .ttf-card {
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ttf-hover .ttf-card:hover {
	border-color: #e4d8c8;
	box-shadow: 0 8px 20px rgba(60, 40, 20, 0.06);
}

.ttf-downer {
	margin-top: 18px;
	padding: 16px 18px;
	background: var(--ttf-downer);
	border-left: 4px solid var(--ttf-downer-line);
	border-radius: 8px;
	color: var(--ttf-downer-text);
	font-size: 14px;
	line-height: 1.55;
	text-align: left;
}

@media (prefers-reduced-motion: reduce) {
	.ttf-hover .ttf-card {
		transition: none;
	}
}
