/*
Theme Name: Katovais v2.0.0
Theme URI:
Description:
Version: 2.0.0
Author: Катовайс Михаил
Author URI: https://t.me/katovais
*/
html,
body {
	font-size: clamp(18px, calc(50% + 2vw), 22px);
}
body {
	display: flex;
	flex-direction: column;
	margin: 0px;
	padding: 0px;
	font-family: 'Onest', sans-serif;
	font-weight: 400;
	color: #fff;
	background-color: #000;
	min-height: 100dvh;
	letter-spacing: 0.02em;
	font-feature-settings:
		'pnum' on,
		'lnum' on;
}
*,
*::before,
*::after {
	box-sizing: border-box;
	overflow-wrap: break-word;
}
a {
	text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}
input,
textarea,
a {
	outline: none;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
button {
	outline: none;
	border: none;
	font-family: 'Onest', sans-serif;
	cursor: pointer;
}
::-webkit-input-placeholder {
	font-weight: 400;
	color: #959595;
}
::-moz-placeholder {
	font-weight: 400;
	color: #959595;
}
:-moz-placeholder {
	font-weight: 400;
	color: #959595;
}
:-ms-input-placeholder {
	font-weight: 400;
	color: #959595;
}
[data-fancybox] {
	cursor: zoom-in;
	overflow: hidden;
}
main {
	display: flex;
	flex-direction: column;
	width: 100%;
	flex: 1 0 auto;
}
.content {
	flex: 1 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
}
.container {
	margin: 0 auto;
	width: clamp(200px, 100%, 1920px);
	padding: 0 40px;
}

/* Хэдер */
.header {
	position: fixed;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 10px 15px;
	z-index: 5;
}

.logo {
	display: block;
	width: 25px;
	height: 25px;
	padding: 10px;
	transition: 0.1s;
	background-color: #fff;
	mask: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2080_40)'%3E%3Cpath d='M12.2419 18.9482C15.9457 18.9482 18.9483 15.9456 18.9483 12.2418C18.9483 8.5379 15.9457 5.53532 12.2419 5.53532C8.53798 5.53532 5.5354 8.5379 5.5354 12.2418C5.5354 15.9456 8.53798 18.9482 12.2419 18.9482Z' stroke='white' stroke-width='2'/%3E%3Cpath d='M12.2419 23.2065C18.2974 23.2065 23.2064 18.2975 23.2064 12.2419C23.2064 6.1864 18.2974 1.27742 12.2419 1.27742C6.18633 1.27742 1.27734 6.1864 1.27734 12.2419C1.27734 18.2975 6.18633 23.2065 12.2419 23.2065Z' stroke='white' stroke-width='2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2080_40'%3E%3Crect width='25' height='25' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
	mask-size: 25px 25px;
	mask-position: center;
	mask-repeat: no-repeat;
}

.logo:hover {
	background-color: #96e4e4;
}

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

.menu li {
	display: inline-block;
	float: left;
}

.menu li a {
	display: block;
	padding: 6px 16px 10px 16px;
	transition: 0.1s;
	color: #fff;
	font-size: 20px;
	font-weight: 400;
	font-family: 'Onest', sans-serif;
}

.menu li a:hover {
	color: #96e4e4;
}

.menu li.active a:hover {
	color: #00b77d;
}

.menu-category-count {
	vertical-align: super;
	font-size: 18px;
}

.header-right-link {
	color: #fff;
	text-align: center;
}

.header-right-link:hover {
	color: #96e4e4;
}

/* Хедер категории */

.header.header-category .logo,
.header.header-category .mobile-menu-button {
	background-color: #000;
}

.header.header-category .logo:hover {
	background-color: #888;
}

.header.header-category .menu li a,
.header.header-category .header-right-link {
	color: #000;
}

.header.header-category .menu li a:hover,
.header.header-category .header-right-link:hover {
	color: #888;
}

.header-category .menu li.active a {
	color: #48b0a1;
}

/* Хедер после пролистывания */

.header_scroll_down {
	padding: 0;
	height: 0;
}

.header_scroll_down .menu li a {
	padding: 2px 10px 6px 10px;
}

.header.header_scroll_down .logo,
.header.header_scroll_down .mobile-menu-button {
	width: 22px;
	height: 22px;
	mask-size: 22px;
	background-color: #fff;
}
.header.header_scroll_down .logo:hover,
.header.header_scroll_down .mobile-menu-button:hover {
	background-color: #b2ffff;
}

.header-category.header_scroll_down .menu li a,
.header-category.header_scroll_down .header-right-link {
	color: #fff;
}

.header-category.header_scroll_down .menu li a:hover,
.header-category.header_scroll_down .header-right-link:hover {
	color: #b2ffff;
}

.header_scroll_down.header-category .menu li.active a {
	color: #b9f8ff;
}

.header_scroll_down.header-category .menu li.active a:hover {
	color: #b2ffff;
}

.header_scroll_down .header-right-link,
.header_scroll_down .menu li a {
	font-size: 16px;
}

.header_scroll_down .header-right-link,
.header.header_scroll_down .left-side {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px) saturate(180%);
	border-radius: 50px;
	margin: 5px 5px -60px 5px;
	padding: 6px 24px;
	min-height: 48px;
	gap: 10px;
}

.header .left-side {
	display: flex;
	align-items: center;
	gap: 23px;
}

.header .mobile-menu-button {
	display: none;
	width: 25px;
	height: 25px;
	padding: 6px;
	border: 0;
	background-color: #fff;
	mask: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='3' width='25' height='2' rx='1' fill='white'/%3E%3Crect y='12' width='25' height='2' rx='1' fill='white'/%3E%3Crect y='20' width='25' height='2' rx='1' fill='white'/%3E%3C/svg%3E%0A");
	mask-size: 25px 25px;
	mask-position: center;
	mask-repeat: no-repeat;
}

.modal {
	position: fixed;
	overflow-y: auto;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	z-index: 1000;
	padding: 20px;
}

.modal-bg {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	background: rgba(75, 132, 111, 0.2);
	backdrop-filter: blur(15px);
	z-index: 1001;
}

.modal-content {
	margin: auto;
	position: relative;
	z-index: 1002;
	background-color: #fff;
	box-shadow: 0 0 60px #959595;
	color: #000;
	padding: 20px;
	border-radius: 12px;
	max-width: 650px;
	min-width: 280px;
}

.modal-window-mobile-menu-row {
	margin-bottom: 15px;
}

.mobile-logo-container .logo {
	margin-top: -3px;
}

.modal-close {
	position: absolute;
	right: 15px;
	top: 14px;
	width: 35px;
	height: 35px;
	box-sizing: border-box;
	padding: 13px;
	border-radius: 50px;
	cursor: pointer;
	border: 0;
	background-color: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 60px #959595;
	transition: 0.1s;
}

.modal-close:hover {
	box-shadow: 0px 0 11px 3px rgba(186, 255, 255, 0.7) inset;
	border: 1px solid #a8ffe3;
}
.modal-close:hover::before,
.modal-close:hover::after {
	background: #c9fffa;
}

.modal-close::before {
	content: '';
	border-radius: 50px;
	display: block;
	position: absolute;
	width: 2px;
	height: 16px;
	background: #e8e8e8;
	transform: rotate(45deg);
	top: 9px;
	left: 15px;
}

.modal-close::after {
	content: '';
	display: block;
	position: absolute;
	width: 2px;
	height: 16px;
	border-radius: 50px;
	background: #e8e8e8;
	transform: rotate(135deg);
	top: 9px;
	left: 15px;
}

.modal-window-mobile-menu {
	flex-direction: column;
	margin: auto;
	gap: 10px;
	border-radius: 20px;
	min-width: 280px;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	width: auto;
}

.mobile-menu-button:hover {
	background-color: #96e4e4;
}

.mobile-menu-main .menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.mobile-menu-main .menu li {
	display: block;
	float: left;
	width: 100%;
}

.mobile-menu-main .menu li a {
	background-color: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	border-radius: 12px;
	padding: 10px 26px;
	width: 100%;
	font-size: 18px;
}

.mobile-menu-main .menu li.active a {
	text-shadow: none;
	background-color: rgba(28, 46, 46, 0.4);
	border: 1px solid rgba(40, 255, 244, 0.1);
	color: #c9fffa;
	box-shadow: 0px -3px 31px -10px rgba(132, 255, 255, 0.7) inset;
}

.mobile-menu-main .menu li a:hover {
	color: #a8ffe3;
	box-shadow: 0px 0 31px 3px rgba(186, 255, 255, 0.7) inset;
	border: 1px solid #a8ffe3;
}

.mobile-menu-main .menu li .menu-category-count {
	vertical-align: middle;
}

.land {
	display: flex;
	width: 100%;
	height: 100dvh;
	background-image: url('./img/land.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

.land-content {
	margin: 180px 80px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 70px;
	max-width: 870px;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	text-wrap: balance;
}

.land-h1 {
	font-size: clamp(32px, calc(100% + 10vw), 143px);
	font-family: 'Wremena', serif;
	font-weight: 300;
	line-height: 100%;
}

.land-ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.land-button {
	display: flex;
	padding: 16px 32px;
	background-color: rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(10px);
	color: #fff;
	border-radius: 50px;
	border: 1px solid rgba(27, 51, 57, 0.34);
	transition: 0.1s;
	font-size: 20px;
}

.land-button:hover {
	border: 1px solid #c6e1e8;
	color: #c8ffff;
	background-color: rgba(59, 166, 146, 0.34);
}

.category-container {
	padding: 55px 0 0 0;
	min-height: 100dvh;
	background-color: #fbf8f7;
}

.category-grid {
	display: flex;
	flex-direction: column;
}

.category-portofolio-card {
	display: flex;
	flex-direction: column;
}

.category-portofolio-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(10px, calc(5px + 1vw), 25px);
	margin: auto 0 10px 0;
	padding: 5px;
}

.category-portofolio-card-tags > * {
	font-size: 17px;
	font-weight: 400;
	line-height: 100%;
	color: #000;
}

.category-portofolio-card-more-button {
	text-decoration: underline;
}

.category-portofolio-card-more-button:hover {
	color: #1ba174;
}

.category-portofolio-card-main-img {
	width: 100%;
	float: left;
	box-shadow: 0 40px 70px rgba(0, 0, 0, 0.05);
}

/* Основная грид-сетка */
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 4 колонки */
	margin: 0 auto;
	gap: calc(20px + 15dvw) 20px;
	padding: 30px;
}

/* Веб-проекты занимают все 4 колонки */
.category-portofolio-card--web {
	grid-column: span 3;
	width: 100%;
}

/* Логотипы занимают 1 колонку */
.category-portofolio-card--logo {
	grid-column: span 1;
}

/* Если пост имеет обе категории - можно задать особое поведение */
.category-portofolio-card--both {
	grid-column: span 2; /* или другое значение */
}

/* Стили для карточек веб-проектов */
.category-portofolio-card--web .category-portofolio-card-main-img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Стили для карточек логотипов */
.category-portofolio-card--logo .category-portofolio-card-main-img {
	width: 100%;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
}

/* Адаптивность */
@media (max-width: 992px) {
	.portfolio-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.category-portofolio-card--web {
		grid-column: span 3;
	}
}

@media (max-width: 768px) {
	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 15px;
	}

	.category-portofolio-card--web {
		grid-column: span 2;
	}
}

@media (max-width: 480px) {
	.portfolio-grid {
		grid-template-columns: 1fr;
	}

	.category-portofolio-card--web,
	.category-portofolio-card--logo {
		grid-column: span 1;
	}
}

/* Страница */

.page-container {
	display: flex;
	padding: 55px 0 0 0;
	min-height: 100dvh;
	background-color: #fbf8f7;
}

.single-post {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 auto 60px auto;
	max-width: 830px;
	width: 100%;
	padding: 20px;
	border-radius: 8px;
	color: #000;
}

.single-post .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 3px 20px;
	font-size: 18px;
	font-weight: 200;
}

.single-post .post-meta a {
	color: #000;
}

.single-post .post-meta a:hover {
	color: #999;
}

.right-side {
	margin-left: auto;
}

.post-title-container {
	margin: 35px 0 30px 0;
	position: relative;
}

.post-title {
	font-size: 43px;
	font-family: 'Wremena', serif;
	line-height: 110%;
	font-weight: 200;
}

.post-title-container .post-edit-link {
	color: #999;
	position: absolute;
	left: -37px;
	top: 8px;
}

.post-title-container .post-edit-link:hover {
	color: #000;
}

.post-content {
	font-size: 18px;
	font-weight: 200;
	line-height: 147%;
}

.post-content p:first-child {
	margin-top: 0;
}

.post-content h2,
.post-content h3 {
	margin-top: 60px;
}
.post-content h4,
.post-content h5,
.post-content h6 {
	margin-top: 40px;
}

.post-content h2 {
	font-size: 37px;
	font-family: 'Wremena', serif;
	line-height: 110%;
	font-weight: 200;
}

.post-content a {
	color: #999;
}

.post-content a:hover {
	color: #000;
}

.single-post__web {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	margin: 30px auto 60px auto;
	max-width: 1920px;
	width: 100%;
	border-radius: 8px;
	color: #000;
}

.single-post__web .post-title-container .post-edit-link {
	left: 10px;
	top: 8px;
}

.single-post__web .post-title-container,
.single-post__web .post-meta,
.single-post__web .post-content h2,
.single-post__web .post-content h3,
.single-post__web .post-content h4,
.single-post__web .post-content h5,
.single-post__web .post-content h6 {
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
	text-align: center;
	margin-bottom: 40px;
}

.single-post__web .post-title-container {
	margin-bottom: 0;
}

.single-post__web .single-post .post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	font-size: 18px;
	font-weight: 200;
}

.single-post__web .post-content picture,
.single-post__web .post-content img {
	width: 100%;
}

/* Категория Блог */

.category-blog-container {
	min-height: 100dvh;
	background-color: #fbf8f7;
	margin: 0 auto;
	width: clamp(200px, 100%, 1920px);
	padding: 68px 20px;
	color: #000;
}

.category-title-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 25px;
}

.category-title {
	font-size: 37px;
	font-family: 'Wremena', serif;
	line-height: 110%;
	font-weight: 200;
}

.child-categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	align-items: flex-end;
	margin-bottom: 3px;
}

.child-categories-list a {
	color: #000;
	font-size: 16px;
}

.child-categories-list a:hover {
	color: #888;
}

.child-category-item-count {
	margin-left: -3px;
	vertical-align: super;
	font-size: 15px;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(calc(200px + 9dvw), 100%), 1fr));
	grid-template-rows: repeat(auto-fill, minmax(230px, 1fr));
	gap: 40px 25px;
	margin-top: 10px;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.post-card-img-wrapper--link {
	display: flex;
	width: 100%;
}

.post-card-img-wrapper--link img {
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	object-position: center center;
	border-radius: 8px;
	float: left;
}

.post-card-img-wrapper--link:hover img {
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: brightness(85%);
}

.post-card__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.post-card__title a {
	display: block;
	font-size: 25px;
	font-family: 'Wremena', serif;
	line-height: 116%;
	font-weight: 200;
	color: #000;
}

.post-card__title a:hover {
	color: #888;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	color: #000;
	font-weight: 200;
	font-size: 15px;
}

.post-card__meta a {
	color: #000;
}

.post-card__meta a:hover {
	color: #888;
}

.post-card__meta .post-card__date {
	margin-left: auto;
}

.pagination {
	display: flex;
	gap: 5px;
	margin: 20px 0;
	font-family: 'Wremena', serif;
}
.pagination > * {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 38px;
	height: 38px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 200;
	font-size: 20px;
	color: #000;
	border-radius: 6px;
}
.pagination > *.current,
.pagination > *.current:hover {
	background-color: #ddd;
	cursor: default;
}
.pagination > *:hover {
	color: #888;
}

.pagination > *.next {
	transform: rotate(-90deg);
	background-color: #000;
	mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.0533 8L10 11.0904L6.94 8L6 8.95142L10 13L14 8.95142L13.0533 8Z' fill='black'/%3E%3C/svg%3E%0A");
	mask-size: 18px;
	mask-position: center;
	mask-repeat: no-repeat;
}

.pagination > *.prev {
	transform: rotate(90deg);
	background-color: #000;
	mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.0533 8L10 11.0904L6.94 8L6 8.95142L10 13L14 8.95142L13.0533 8Z' fill='black'/%3E%3C/svg%3E%0A");
	mask-size: 18px;
	mask-position: center;
	mask-repeat: no-repeat;
}

.pagination > *.next:hover,
.pagination > *.prev:hover {
	background-color: #888;
}

.portfolio-pagination {
	justify-content: center;
}

.not-found {
	display: flex;
	width: 100%;
	height: 100dvh;
	background-image: url('./img/404.png');
	background-repeat: no-repeat;
	background-size: cover;
}

.not-found .land-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: auto;
}

.footer {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 17px;
	padding-top: 20px;
	padding-bottom: 20px;
	flex: 0 0 auto;
	background-color: #d7f4f1;
	color: #63807c;
}

.copyright {
	margin: auto;
	text-align: center;
}

@media (max-width: 1250px) {
	.land {
		background-position: center;
	}
	.land-content {
		margin: calc(5vw + 100px) calc(3vw + 20px);
		gap: calc(5vw + 15px);
	}
}

@media (max-width: 888px) {
	.header-main-menu {
		display: none;
	}
	.header .logo {
		display: none;
	}
	.header .mobile-menu-button {
		display: flex;
	}
	.land {
		background-position: center;
	}
	.land-content {
		padding: 40px 20px;
	}
	.land-ul {
		gap: 15px;
	}
	.post-content {
		font-size: 17px;
	}
	.post-title {
		font-size: 34px;
		line-height: 102%;
	}
	.post-content h2 {
		font-size: 27px;
		line-height: 102%;
	}
	.single-post {
		padding: 10px;
	}
}

@media (max-width: 678px) {
	.land-content {
		margin: 30px auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@font-face {
	font-family: 'Wremena';
	src:
		url('./fonts/Wremena Light.woff') format('woff'),
		url('./fonts/Wremena Light.otf');
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: 'Wremena';
	src:
		url('./fonts/Wremena Regular.woff') format('woff'),
		url('./fonts/Wremena Regular.otf');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Onest';
	src:
		url('./fonts/Onest-Regular.woff2') format('woff2'),
		url('./fonts/Onest-Regular.ttf');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Onest';
	src:
		url('./fonts/Onest-ExtraLight.woff2') format('woff2'),
		url('./fonts/Onest-ExtraLight.ttf');
	font-weight: 200;
	font-style: normal;
}
