/* 
	Created on : 11 авг. 2025 г., 8:55:32
	Author     : weberst
*/

:root {
	--templates-count: 3;
	--templates-gap: 20px;
	--sidebar-width: 250px;
	--category-active-bg: #e4e8f4;
	--category-hover-border: #acacac;
	--border-color: #dedede;
	--gap: 30px;
}

/* Общая разметка */
.template-layout {
	display: flex;
	gap: var(--gap);
	margin: 1.5rem 0;
	align-items: flex-start;
}

.template-main-content,
.template-content {
	flex: 1;
	min-width: 0;
}

/* Стили сайдбара */
.template-sidebar {
	flex: 0 0 var(--sidebar-width);
	position: sticky;
	top: 20px;
}

.template-sidebar__section {
	margin-bottom: 30px;
}

.template-sidebar__title {
	font-size: 1.125rem;
	margin: 0 0 1rem 0;
	color: #333;
}

/* Поиск в сайдбаре */
.template-search {
	margin-bottom: 1.5rem;
}

.template-search .input-group {
	display: flex;
}

.template-search .form-control {
	flex: 1;
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 4px 0 0 4px;
}

.template-search .btn-secondary {
	padding: 0.5rem 1rem;
	background: #f0f0f0;
	border: 1px solid var(--border-color);
	border-left: none;
	border-radius: 0 4px 4px 0;
}

/* Вертикальное меню категорий */
.template-categories {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #ffffff;
	border-radius: 4px;
	overflow: hidden;
}

.template-categories__item a {
	display: block;
	padding: 0.5rem 1rem;
	color: #424242;
	font-weight: 300;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s;
}

.template-categories__item:not(.active) a:hover {
	background: #f5f5f5;
	color: #000;
}

.template-categories__item.active a {
	background: var(--category-active-bg);
	color: #000;
}

/* Сетка шаблонов */
.templates-grid {
	display: grid;
	grid-template-columns: repeat(var(--templates-count), 1fr);
	gap: var(--templates-gap);
}

.templates-card {
	/*background: #fff;*/
	/*border: 1px solid var(--border-color);*/
	/*border-radius: 5px;*/
	overflow: hidden;
	/*box-shadow: rgba(33, 35, 38, 0.1) 0 10px 10px -9px;*/
}

.templates-card__image {
	position: relative;
	display: block;
	height: 350px;
	overflow: hidden;
	/*border-bottom: 1px solid var(--border-color);*/
	border: 1px solid var(--border-color);
}

.templates-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.templates-card__image:hover img {
	transform: scale(1.02);
}

.templates-card__content {
	padding: 20px 0;
}

.templates-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
}

.templates-card__price {
	font-size: 14px;
	color: #555;
	margin: 0.875rem 0;
}
.templates-card__descr {
	font-size: 14px;
	color: #555;
	margin: 0.875rem 0;
}

.templates-card__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.templates-notfound {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	color: #666;
}

/* Основной контент шаблона */
h1 {
	margin: 0 auto 3rem;
}

.template_description,
.content-wrapper {
	margin: 0 auto;
}

.preview {
	max-width: 640px;
	margin: 0 auto 20px;
	position: relative;
}

.preview .desktop {
	background: #fff;
	width: 100%;
	height: 700px;
	overflow: hidden;
	border: solid 1px #e4e8f4;
	border-top: solid 25px #e4e8f4;
	position: relative;
	border-radius: 5px;
}

.preview .desktop img {
	max-width: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.preview .desktop img {
	transform: translateY(0);
	will-change: transform;
}
.preview .desktop:hover {
	cursor: ns-resize;
}
@media (prefers-reduced-motion: reduce) {
  .preview .desktop img {
		transition: none !important;
	}
}

.buttons {
	margin: 0 auto 40px;
	max-width: 80%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/*.buttons .btn {
	display: block;
	padding: 9px 20px;
	margin-bottom: 20px;
	font-size: 15px;
	text-transform: uppercase;
	text-align: center;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s;
}

.buttons .btn.fill {
	background: var(--btn-danger-color);
	border: 1px solid var(--btn-danger-color);
	color: #fff;
}

.buttons .btn:not(.fill) {
	border: 1px solid var(--btn-danger-color);
	color: var(--btn-danger-color);
	background: none;
}*/

.template_description ul {
	padding-bottom: 20px;
	padding-left: 0;
	list-style: none;
}

.template_description ul li {
	padding-left: 18px;
	margin-bottom: 5px;
	position: relative;
}

.template_description ul li::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	left: 0;
	top: 8px;
	background: #ff593a;
	border-radius: 50%;
}

.preview_wrap p {
	text-align: center;
	font-style: italic;
	color: #777777;
	margin-bottom: 20px;
}

/* Блок с опциями */
.template_options {
	margin-top: 10px;
	margin-bottom: 30px;
	padding: 10px 30px;
	border: solid 1px #e4e8f4;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.features-list {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 65%;
	padding: 0;
	margin: 0;
}

.feature-item {
	width: 48%;
	list-style: none;
	padding-left: 0;
	position: relative;
	padding-left: 30px;
	line-height: 2;
}

.feature-item:before {
	display: block;
	content: '';
	border-bottom: solid 1px #ff3100;
	width: 20px;
	position: absolute;
	height: 1px;
	left: 0;
	top: 15px;
}

.feature-item span {
	font-size: 16px;
	font-weight: 500;
}

/* Get started block */
#get_start {
	background-color: #fff;
	background-image: linear-gradient(315deg, #fff 0%, #d7e1ec 74%);
}

#get_start .inner {
	padding: 100px 0;
	color: var(--main-title-color-dark);
	text-align: center;
}

#get_start .inner .h2 {
	font-weight: 600;
	font-size: 2rem;
}

#get_start .inner p {
	color: var(--main-descr-color);
	font-size: 1.25rem;
}

/* Адаптация */
@media (max-width: 1000px) {
	:root {
		--templates-count: 2;
	}
}

@media (max-width: 800px) {
	.template-layout {
		flex-direction: column;
	}

	.template-sidebar {
		width: 100%;
		position: static;
		margin-bottom: 1.5rem;
	}

	.preview_wrap .preview,
	.preview_wrap .buttons {
		width: 100%;
	}

	h1,
	.template_description,
	.content-wrapper {
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	:root {
		--templates-count: 1;
		--sidebar-width: 100%;
	}
}

@media (max-width: 600px) {
	.features-list {
		flex-direction: column;
	}
}

@media (max-width: 400px) {
	.buttons .btn {
		width: 100%;
	}

	.feature-item {
		width: 100%;
	}
}