/*
 * Theme Name: Zero WP 3.0
 * Description: Ultra-minimal WordPress starter theme. Optimized for converting html-layouts to websites. Also is a good start for SPA, creating unique projects.
 * Theme URI:   https://github.com/solidcreature/zero_wp
 * Author:      Nikolay Mironov
 * Author URI:  http://wpfolio.ru
*/

body {
	font-family: var(--font-main);
}

.site-header {
	background-color: var(--c-accent);	
}

.site-header__inner {
	height: 120px;
	max-width: var(--content-width);
	margin: 0 auto;
	display: flex;
	box-sizing: border-box;
}

@media (max-width: 420px) {
	.site-header__inner {
		height: 80px;
	}	
}	

.site-header__column.col--left {
	width: 420px;
	padding: 0 40px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}	

@media (max-width: 420px) {
	.site-header__column.col--left {
		width: 100%;
		padding: 0 20px;
	}		
}


.site-header__column.col--right {
	flex-grow: 1;
}	

.site-header__logo {
	width: 172px;
	height: auto;
}



div {
  box-sizing: border-box;
}



.site-content {
  padding: 60px 0;	
  background: #f7f7f7;
  min-height: calc(100vh - 120px); 	
}  

@media (max-width: 420px) {
	.site-content {
	  padding: 20px 0 40px 0;	
	} 	
}	

.site-content__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
}

@media (max-width: 960px) {
	.site-content__inner {
	  flex-direction: column;
	}	
}

.site-content__sidebar {
	border-right: 1px solid #e4e4e4;
	width: 385px;
	padding: 0 40px;
	min-height: 300px;
	flex-shrink: 0;
}

@media (max-width: 960px) {
	.site-content__sidebar {
		border-right: 0;
		width: 100%;
		min-height: 0;
		margin-bottom: 60px;
	}	
}

@media (max-width: 420px) {
	.site-content__sidebar {
		padding: 0 20px;
	}	
}

.site-content__title  {
	font-size: 25px;
	font-weight: 500;
	margin: 0 0 0 0;
}
.site-content__title.has--border {
	padding-bottom: 15px;
	border-bottom: 1px solid #000;
	margin-bottom: 15px;
}

.site-content__title.in--downloads {
	text-align: center;
	margin-bottom: 40px;
}

.site-content__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-content__menu li {
	font-size: 18px;
	font-weight: 400;
	color: #9B9B9B;
	border-bottom: 1px solid #D9D9D9;
	padding: 15px 0 15px 0;
}	

.site-content__menu li:first-child {
	padding-top: 0;
}	

.site-content__main {
  flex-grow: 1;
  padding: 0 40px;
}

@media (max-width: 420px) {
	.site-content__main {
	  padding: 0 20px;
	}
}

.catalog-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fill, 340px);
}

@media (max-width: 640px) {
	.catalog-grid {
	  display: flex;
	  flex-direction: column;	
	  gap: 40px;
	}
}

@media (max-width: 320px) {
	.catalog-grid {
	  gap: 30px;
	}
}


.catalog-item {
	background: #fff;
	border-radius: 4px;
	padding: 0;
	box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);	
	height: 100%;
	overflow: hidden;
}

.catalog-item__link {
	text-decoration: none;
}

.catalog-item__inner {
  display: flex;
  flex-direction: column;
	height: 100%;	
}

.catalo-item__photo {
  height: 340px;
  background: #e6e6e6;
}

@media (max-width: 640px) {
	.catalo-item__photo {
	  width: 100%;	
	  height: auto;
	}	
}	

.catalog-item__visual {
	position: relative;
}

.catalog-item__id {
	position: absolute;
	background: var(--c-accent);
	transform-origin: 0 100%;
	transform: translate(0,-100%) rotate(90deg);
	padding: 6px 18px;
	top: 18px;
	left: 0;
	border-radius: 4px 4px 0 0;
	font-size: 10px;
	opacity: 0.15;
	transition: all 0.4s ease;	
}	

.catalog-item:hover .catalog-item__id {
	opacity: 1;
	transition: all 0.4s ease;
}	
	
.catalog-item__content {
	padding: 12px; 
	position: relative;	
	z-index: 1;	
	flex-grow: 1;
	padding-bottom: 40px;
}  

.catalog-item__title {
	font-size: 18px;
	color: #000;
	font-weight: 400;
	margin: 0 0 12px 0;
	padding: 0;
}  

.catalog-item__details {
	font-size: 13px;
	line-height: 1.4;
	color: #9B9B9B;
	font-weight: 400;
	margin: 0 0 12px 0;
	padding: 0;	
}

.catalog-item__footer {
	position: absolute;
	z-index: 10;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 12px;
	opacity: 0.6;
}
.catalog-item__footer-social.is--vk {
	color: var(--c-accent);
	background-image: url(img/vk-card-icon.png);
	background-size: 16px auto;
	background-repeat: no-repeat;
	background-position: left center;
	padding: 0 12px 0 20px;
	font-size: 10px;
	display: inline-flex;
	justify-content: flex-start;
	align-items: center;
	color: #9B9B9B;
	min-width: 30px;	
	flex-grow: 1;
	height: 18px;
}

.catalog-item__footer-social.is--vk:before {
	display: inline;
	content: 'Оформление группы VK';
}	

.catalog-item__footer-downloads {
	background-image: url(img/downloads-card-icon.png);
	background-size: 16px auto;
	background-repeat: no-repeat;
	background-position: left center;
	padding: 0 12px 0 18px;
	font-size: 10px;
	color: #9B9B9B;
	display: block;
	min-width: 30px;
}	

.catalog-item__footer-views {
	background-image: url(img/eye-card-icon.png);
	background-size: 16px auto;
	background-repeat: no-repeat;
	background-position: left center;
	padding: 0 12px 0 20px;
	font-size: 10px;
	color: #9B9B9B;	
	display: block;	
	min-width: 30px;	
}




.template-single {
	
}

.template-single__header {
	text-align: center;
	font-size: 0;
	background: #000;
	position: relative;	
	overflow: hidden;
}

.template-single__overlay {
	position: absolute;
	top: -20px;
	left: -20;
	width: calc(100% + 40px);
	height: calc(100% + 40px);
	background-size: cover;
	filter: blur(12px);

	z-index: 1;
	opacity: 0.2;
}	

.template-single__preview {
	width: var(--content-width);
	height: auto;
	position: relative;
	z-index: 10;
}




.single-content {
  padding: 60px 0;	
  background: #f7f7f7;	
}

.single-content__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;	
  flex-direction: column;	
}



.vkheader-preview {
	width: 911px;
	height: 452px;
	position: relative;
	margin: 0 auto 40px auto;
	border-radius: 12px;
	box-shadow: 0 0 12px 0 rgba(0,0,0, 0.2);
}

@media (max-width: 1380px) {
	.vkheader-preview {
		width: 100%;
		height: auto;
		padding-top: 45.2%;
	}	
}


@media (max-width: 420px) {
	.vkheader-preview {
		border-radius: 6px;
	}	
}

.vkheader-preview__holder {
	height: 310px;
	background-size: 100% auto;
	background-position: left bottom;
	border-radius: 12px 12px 0 0;
}	

@media (max-width: 1380px) {
	.vkheader-preview__holder {
		position: absolute;
		top: 0;
		left: 0;
		height: 66%;
		z-index: 0;
		width: 100%;
	}	
}


@media (max-width: 42px) {
	.vkheader-preview__holder {
		border-radius: 6px 6px 0 0;
	}	
}

.vkheader-preview__plashka {
	position:absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: auto;
}

.single-card {
	width: 911px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 12px 0 rgba(0,0,0, 0.2);
	font-size: 0;
}

@media (max-width: 1380px) {
	.single-card {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.single-card {
		border-radius: 6px;
	}	
}	

.single-template__title {
	font-size: 25px;
	font-weight: 500;
	margin: 0 0 0 0;
	padding-bottom: 15px;
	border-bottom: 1px solid #000;
	margin-bottom: 15px;	
}

.single-template__description {
	color: #9B9B9B;
	font-size: 16px;
	margin-bottom: 30px;
}

.single-template__params {
	color: #000;
	font-size: 16px;
	line-height: 1.45;
	margin-bottom: 20px;	
	padding-bottom: 15px;
	border-bottom: 1px solid #000;
	margin-bottom: 30px;		
}

.single-template__button {
	height: 52px;
	border-radius: 4px;
	background-color: var(--c-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	text-decoration: none;
	font-weight: 500;
}

.single-template__small {
	font-size: 11px;
	font-weight: 400;
}

.single-template__meta {
	display: flex;
	margin: 0 0 30px 0;
}

.single-template__meta-downloads {
	background-image: url(img/downloads-card-icon.png);
	background-size: 16px auto;
	background-repeat: no-repeat;
	background-position: left center;
	padding: 0 12px 0 18px;
	font-size: 10px;
	color: #000;
	display: block;
	min-width: 30px;
}	

.single-template__meta-views {
	background-image: url(img/eye-card-icon.png);
	background-size: 16px auto;
	background-repeat: no-repeat;
	background-position: left center;
	padding: 0 12px 0 20px;
	font-size: 10px;
	color: #000;	
	display: block;	
	min-width: 30px;	
}

.single-template__download {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	max-width: 420px;
	height: 64px;
	margin: 20px auto;
	background: #000;
	color: var(--c-accent);
	text-decoration: none;
	font-weight: 700;
	border-radius: 4px;
	transition: all 0.4s ease;	
}

.single-template__download:hover {
	color: white;	
	transform:scale(1.1);
	transition: all 0.4s ease;
	
}	
