/**
 * Theme Name: Дочерняя тема Small Business
 * Template: small-business
 *
 * Не обязательные параметры:
 * Theme URI: https://smartmotoprokat.ru/
 * Description: Дочерняя тема для темы twentyfifteen
 * Author: Kama
 * Author URI: httpы://t.me/ruazanovdeni
 * Version: 1.0
 */

/* импортируем стили родительской темы */
@import url("../small-business/style.css");
.uni-grid-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px;
}

.uni-grid-header {
	margin-bottom: 48px;
}

.uni-grid-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 12px 0;
}

.uni-grid-description {
	font-size: 1.125rem;
	color: #64748b;
	max-width: 600px;
}

/* Сетка: 4 в ряд на экранах от 1200px */
.uni-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 768px) {
	.uni-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.uni-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* Карточка */
.uni-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.uni-card:hover {
	border-color: #cbd5e1;
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.uni-card__image-wrap {
	display: flex;
	padding: 10px;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.uni-card__image-wrap img {
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.uni-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	color: #cbd5e1;
	font-size: 2rem;
	font-weight: 700;
}

.uni-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	color: #0f172a;
	padding: 3px 10px;
	border-radius: 9999px;
}

.uni-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.uni-card__title {
	/* font-size: 1.25rem; */
	font-weight: 600;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.uni-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.uni-card__children {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
}

.uni-card__children ul {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
}

.uni-card__children li {
	margin-bottom: 4px;
	font-size: 0.875rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uni-card__children a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.uni-card__children a:hover {
	color: #2563eb;
}

.uni-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 1.3rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.uni-card__link svg {
	transition: transform 0.2s ease;
}

.uni-card:hover .uni-card__link svg {
	transform: translateX(4px);
}

/*

*/

/* Шапка архива */
.moto-archive-header {
	margin-bottom: 32px;
	padding: 0;
}

.moto-archive-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: -0.02em;
}

.moto-archive-desc {
	font-size: 1rem;
	color: #64748b;
}

/* Сетка карточек мотоциклов */
.moto-posts-grid {
	display: grid;
	/* Учитывает сайдбар: по умолчанию 3 карточки в ряд */
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* Если страница без сайдбара — расширяем до 4 в ряд */
body:not(.has-sidebar) .moto-posts-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.moto-posts-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 560px) {
	.moto-posts-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Карточка записи мотоцикла */
.moto-post-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	margin-bottom: 0 !important; /* Сброс стандартных отступов постов темы */
}

.moto-post-card:hover {
	border-color: #cbd5e1;
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.moto-post-card__image-wrap {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #f1f5f9;
	overflow: hidden;
}

.moto-post-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.moto-post-card:hover .moto-post-card__image-wrap img {
	transform: scale(1.05);
}

.moto-post-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	color: #cbd5e1;
	font-size: 2rem;
	font-weight: 700;
}

.moto-post-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.7rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	color: #0f172a;
	padding: 3px 8px;
	border-radius: 9999px;
}

.moto-post-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}

.moto-post-card__title {
	/* font-size: 1.1rem; */
	font-weight: 600;
	margin: 0 0 6px 0;
	line-height: 1.35;
}

.moto-post-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.moto-post-card__price {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0284c7;
	margin-bottom: 12px;
}

.moto-post-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 12px;
}

.moto-post-card__specs span:not(:last-child)::after {
	content: "•";
	margin-left: 6px;
	color: #cbd5e1;
}

.moto-post-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	/* font-size: 0.85rem; */
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.moto-post-card__link svg {
	transition: transform 0.2s ease;
}

.moto-post-card:hover .moto-post-card__link svg {
	transform: translateX(4px);
}

/* АРХИВЫ маотоциклы */

.moto-post-card__meta {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.moto-post-card__meta-items {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.moto-post-card__meta-item {
	border: 1px solid #957100;
	padding: 3px 7px;
	border-radius: 5px;
	font-size: 16px;
	align-self: flex-start;
}

/* .moto-post-card__meta-item:not(:last-child) {
	border-right: 1px solid #957100;
	padding-right: 15px;
} */
.moto-post-card__meta-price {
	font-weight: 500;
}

.moto-post-card__meta-price span {
	font-size: 16px;
}

.moto-post-card__link:link,
.moto-post-card__link:visited {
	align-items: center;
	justify-content: center;
	background-color: #957100;
	color: #fff;
	padding: 10px 20px;
	text-align: center;
	border-radius: 15px;
}

.moto-post-card__link:hover {
	background-color: #000;
}

/* КАРТОЧКА МОТОЦИКЛА */
.moto-card {
	max-width: 1200px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

@media (max-width: 768.98px) {
	.moto-card {
		display: grid;
		grid-template-columns: 1fr;
	}
}

.moto-card__image {
}

.moto-post-card__meta-price {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	margin-bottom: 10px;
}
