/*Fonts*/
@font-face{
	src: url('../fonts/Mariupol-Regular.otf') format('opentype');
	font-family: 'Mariupol';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face{
	src: url('../fonts/Mariupol-Medium.otf') format('opentype');
	font-family: 'Mariupol';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}
@font-face{
	src: url('../fonts/Mariupol-Bold.otf') format('opentype');
	font-family: 'Mariupol';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}
@font-face{
	src: url('../fonts/Unbounded-Regular.ttf') format('truetype');
	font-family: 'Unbounded';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face{
	src: url('../fonts/Unbounded-SemiBold.ttf') format('truetype');
	font-family: 'Unbounded';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

/*General*/
:root{
	--header-height: 4rem;
	--c-white: #FFF;
	--c-black: #1A1A1A;
	--c-beige: #EDE2D5;
	--c-orange: #E4390A;
	--c-light-beige: #F8F3ED;
	--с-grey-olive: #ABA59D;
	--c-purple: #6941C6;
	--tr-dur: .35s;
}
::selection{
	color: var(--c-orange);
	background-color: var(--c-white);
}
*, :after, :before{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
*{
	margin: 0;
	padding: 0;
}
html, body{
	height: 100%;
}
html{
	scroll-behavior: smooth;
}
body{
	position: relative;
	min-width: 20rem;
	color: var(--c-black);
	font-family: 'Mariupol';
	font-style: normal;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	background-color: var(--c-light-beige);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
ul{
	list-style: none;
}
img{
	display: block;
	max-width: 100%;
	height: auto;
}
a{
	display: inline-block;
	color: inherit;
	text-decoration: none;
}
button{
	all: unset;
}
svg{
	fill: var(--c-black);
}

/*Wrapper*/
.main-wrapper{
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.main-content{
	flex-grow: 1;
}
.container{
	width: 100%;
	padding: 0 1rem;
	margin: 0 auto;
}
@media(min-width: 36rem){
	.container{
		max-width: 33.75rem;
	}
}
@media(min-width: 48rem){
	.container{
		max-width: 45rem;
	}
}
@media(min-width: 62rem){
	.container{
		max-width: 60rem;
	}
}
@media(min-width: 75rem){
	.container{
		max-width: 71.25rem;
	}
}
@media(min-width: 87.5rem){
	.container{
		max-width: 84.5rem;
	}
}

/*Flex Classes*/
.d-none{
	display: none;
}
.d-flex{
	display: flex;
}
.justify-center{
	justify-content: center;
}

/*Colors*/
.c-orange{
	color: var(--c-orange);
}
.c-purple{
	color: var(--c-purple);
}
.с-grey-olive{
	color: var(--с-grey-olive);
}

/*Text styles*/
.text-center{
	text-align: center;
}
h1,
.title-1{
	font-family: 'Unbounded';
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
}
h2,
.title-2{
	font-family: 'Unbounded';
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.5;
}
h3,
.title-3{
	font-family: 'Unbounded';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}
.text-block li+li{
	margin-top: 1rem;
}
.text-block h3 + *,
.text-block h4 + *,
.text-block h5 + *,
.text-block h6 + *{
	margin-top: 1.25rem;
}
.text-block p + p,
.text-block * + h2,
.text-block h2 + *,
.text-block * + h3,
.text-block * + h4,
.text-block * + h5,
.text-block * + h6,
.text-block * + ul,
.text-block * + ol,
.text-block ul + *,
.text-block ol + *,
.text-block * + blockquote,
.text-block blockquote + *{
	margin-top: 1.5rem;
}
.text-block strong,
.text-block b{
	font-weight: 500;
}
.text-block a{
	color: var(--c-orange);
}
.text-block ul li::before{
	content: '';
	display: inline-block;
	width: 0.5rem;
	min-width: 0.5rem;
	height: 0.5rem;
	background-color: var(--c-orange);
	border-radius: 50%;
	margin-top: 0.5rem;
	margin-right: 1rem;
}
.text-block blockquote{
	font-family: 'Unbounded';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}
.text-block blockquote::before{
	content: url('../img/quote.svg');
	display: flex;
	width: auto;
	height: 1.5rem;
	margin-bottom: 2rem;
}
.text-block img{
	margin: auto;
	border-radius: 1.5rem;
}
.small-text{
	font-size: 0.75rem;
	line-height: 1;
}
.fw-600{
	font-weight: 600;
}

/*Paddings & Margins*/
.mt-8{
	margin-top: 0.5rem;
}
.mt-12{
	margin-top: 0.75rem;
}
.mt-16{
	margin-top: 1rem;
}
.mt-24{
	margin-top: 1.5rem;
}
.mt-32{
	margin-top: 2rem;
}
.mt-48{
	margin-top: 3rem;
}
.mt-64{
	margin-top: 4rem;
}
.mb-160{
	margin-bottom: 10rem;
}
.my-160{
	margin: 10rem 0;
}

/*Img*/
.img-cover{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/*Btns*/
.btn{
	font-family: 'Unbounded';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	width: 100%;
	padding: 1rem 1.875rem;
	background-color: var(--c-white);
	border-radius: 3rem;
}

/*Socials*/
.socials{
	display: flex;
	align-items: center;
	gap: 2rem;
}
.social{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 3rem;
	height: 3rem;
	background-color: var(--c-white);
	border-radius: 50%;
}
.social svg{
	width: auto;
	height: 1rem;
}

/*overflow*/
.open-burger{
	overflow: hidden;
}

/*Animation*/
.svg-hover svg{
	transition: fill var(--tr-dur);
}
.svg-hover:active svg{
	fill: var(--c-orange);
}
.svg-stroke-hover svg{
	stroke: var(--c-black);
	transition: stroke var(--tr-dur);
}
.svg-stroke-hover:active svg{
	stroke: var(--c-orange);
}
.c-orange-hover,
.header ul li a,
.btn{
	transition: color var(--tr-dur);
}
.c-orange-hover:active,
.header ul li:active a,
.btn:active{
	color: var(--c-orange);
}
.img-scale-hover{
	transition: transform var(--tr-dur);
}
.img-scale-hover:active{
	transform: scale(1.1);
}

/*Header*/
.header-main{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0;
}
.header-logo{
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
}
.header-burger{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.375rem;
	width: 3rem;
	height: 3rem;
	background-color: var(--c-beige);
	border-radius: 0.5rem;
}
.header-burger span{
	display: block;
	width: 1.5rem;
	height: 0.125rem;
	background-color: var(--c-black);
	border-radius: 0.125rem;
	transition-property: transform, opacity;
	transition-duration: .35s;
}
.header-burger.open span{
	position: absolute;
}
.header-burger.open span:nth-child(1){
	transform: rotate(45deg);
}
.header-burger.open span:nth-child(2){
	opacity: 0;
}
.header-burger.open span:nth-child(3){
	transform: rotate(-45deg);
}
.mobile-menu{
	position: absolute;
	right: 100%;
	width: 100%;
	height: calc(100dvh - var(--header-height));
	background-color: var(--c-beige);
	z-index: 5;
	transition: right .5s;
}
.mobile-menu.open{
	right: 0;
}
.mobile-menu .container{
	height: 100%;
}
.mobile-menu-wrap{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 4rem;
	height: 100%;
	padding: 2rem 0 3rem;
	overflow-y: auto;
}
.mobile-menu-main{
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}
.mobile-menu-main ul+ul,
.mobile-menu-main li+li{
	margin-top: 2.5rem;
}

/*Search*/
.search-form{
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}
.search-form input{
	color: var(--c-black);
	font-family: 'Mariupol';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	padding: 1rem;
	width: 100%;
	background-color: var(--c-light-beige);
	border: none;
	border-radius: 1.5rem;
	appearance: none;
	outline: none;
}
.search-form input::placeholder{
	color: var(--с-grey-olive);
}
.search-form-btn{
	position: absolute;
	display: flex;
	right: 1rem;
	z-index: 2;
}
.search-page .search-form{
	max-width: 40rem;
	margin: auto;
}
.search-page .search-form input{
	font-size: 1.125rem;
	padding: 1.25rem 1.5rem;
	background-color: var(--c-white);
	border-radius: 4rem;
}
.search-page .search-form-btn{
	right: 1.5rem;
}

/*Post*/
.post-grid{
	display: grid;
	gap: 3rem;
}
.post-img{
	width: 100%;
	aspect-ratio: 1.4;
	border-radius: 0.75rem;
	overflow: hidden;
}
.post-info{
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.post-category{
	padding: 0.5rem;
	background-color: var(--c-beige);
	border-radius: 1.5rem;
}
.post-category.purple{
	color: var(--c-white);
	background-color: var(--c-purple);
}

/*Selected Posts*/
.selected-posts-grid{
	display: grid;
	gap: 3rem;
}
.selected-big-post .post-img{
	width: 100%;
	aspect-ratio: 1.7;
	border-radius: 0.75rem;
}
.selected-big-post .post-excerpt{
	 display: -webkit-box;
    -webkit-line-clamp: 3; /* Кількість рядків */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.selected-posts-list{
	display: grid;
	gap: 1.5rem;
}
.selected-small-post{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	align-items: start;
}
.selected-small-post .post-img{
	width: 100%;
	aspect-ratio: 1;
	grid-column: span 1;
	border-radius: 0.75rem;
}
.selected-small-post .post-text{
	grid-column: span 3;
}
.selected-small-post .post-category{
	padding: 0.3rem 0.5rem;
}

/*Footer*/
.footer{
	padding: 1.5rem 0;
	background-color: var(--c-beige);
}
.footer-wrap{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}
.footer-socials a{
	background-color: var(--c-light-beige);
}
.footer-btn{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	background-color: var(--c-light-beige);
}

/*Breadcrumbs*/
.breadcrumbs-section{
	margin: 0.75rem 0 2rem;
}
.breadcrumbs > span{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}
.breadcrumbs .breadcrumb_last{
	color: var(--с-grey-olive);
}

/* Pagination */
.nav-links{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	max-width: 40rem;
	padding: 0.875rem;
	margin: 4rem auto 0;
	background-color: var(--c-white);
	border-radius: 0.75rem;
}
.nav-links .page-numbers{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2rem;
	height: 2rem;
	background-color: transparent;
	border-radius: 50%;
	transition: background-color .35s;
}
.nav-links .page-numbers.current,
.nav-links a.page-numbers:not(.prev, .next):active{
	background-color: var(--c-light-beige);
}
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next{
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: auto;
}
.nav-links .page-numbers svg{
	width: 1rem;
	height: 0.5rem;
	fill: none;
}

/*About*/
.about-block{
	display: grid;
	gap: 1.75rem;
}
.about-photo img{
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
}
.about-subtitle{
	display: block;
	color: var(--c-orange);
	font-family: 'Unbounded';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
}

/*Books*/
.books-grid{
	display: grid;
	gap: 3rem;
}
.book-img{
	overflow: hidden;
}
.book-img img{
	width: 80%;
	height: auto;
	margin: auto;
	border-radius: 0.5rem;
}
.book-info{
	padding: 1rem;
	background-color: var(--c-white);
	border-radius: 0.75rem;
}
.book-btn{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-family: 'Unbounded';
	font-size: 1rem;
	line-height: 1;
	width: 100%;
	padding: 0.75rem;
	background-color: var(--c-light-beige);
	border-radius: 3rem;
}

/*Creator*/
.footer-creator{
	color: var(--с-grey-olive);
	display: inline-flex;
	align-items: center;
	line-height: 1;
	text-align: center;
	margin: auto;
	width: 100%;
	justify-content: center;
	margin-top: 15px;
	font-size: 14px;
}
.footer-creator img{
	flex: 0 0 auto;
	margin-left: 0.375rem;
}

/*Media*/
@media(min-width: 48rem){
	.btn{
		width: auto;
	}
	.post-grid{
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem 1.5rem;
	}
	.about-block{
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
	.about-text{
		grid-column: span 2;
	}
	.books-grid{
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem 1.5rem;
	}
}
@media(min-width: 62rem){
	.btn:not(.footer-btn){
		font-size: 1.125rem;
		padding: 1.375rem 1.875rem;
	}
	.d-lg-none{
		display: none;
	}
	.d-lg-block{
		display: block;
	}
	.d-lg-flex{
		display: flex;
	}
	.text-block h2 + *,
	.text-block * + h3{
		margin-top: 2rem;
	}
	.text-block * + h2{
		margin-top: 3rem;
	}
	.text-block blockquote{
		font-size: 1.25rem;
	}
	.text-lg-left{
		text-align: left;
	}
	.text-lg-right{
		text-align: right;
	}
	.mt-lg-20{
		margin-top: 1.25rem;
	}
	.mt-lg-24{
		margin-top: 1.5rem;
	}
	.mt-lg-48{
		margin-top: 3rem;
	}
	.mt-lg-64{
		margin-top: 4rem;
	}
	h1,
	.title-1{
		font-size: 2.5rem;
	}
	h2,
	.title-2{
		font-size: 1.75rem;
	}
	h3,
	.title-3{
		font-size: 1.25rem;
	}
	.small-text{
		font-size: 0.875rem;
	}
	.svg-hover:hover svg{
		fill: var(--c-orange);
	}
	.svg-stroke-hover:hover svg{
		stroke: var(--c-orange);
	}
	.c-orange-hover:hover,
	.header ul li:hover a,
	.btn:hover{
		color: var(--c-orange);
	}
	.img-scale-hover:hover{
		transform: scale(1.1);
	}
	.nav-links a.page-numbers:not(.prev, .next):hover{
		background-color: var(--c-light-beige);
	}
	.header-main{
		padding: 0.75rem 0;
	}
	.header-main-info{
		display: flex;
		align-items: center;
		gap: 2rem;
	}
	.header-submenu{
		display: flex;
		align-items: center;
		gap: 1.5rem;
	}
	.header-search{
		display: flex;
		justify-content: center;
		align-items: center;
		width: 3rem;
		height: 3rem;
		background-color: var(--c-beige);
		border-radius: 50%;
	}
	.header-menu{
		font-size: 1.125rem;
		line-height: 1;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1.5rem;
		background-color: var(--c-beige);
		border-radius: 0.5rem;
	}
	.post-grid{
		grid-template-columns: repeat(3, 1fr);
	}
	.selected-posts-grid{
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
	.selected-small-post{
		grid-template-columns: repeat(3, 1fr);
	}
	.selected-small-post .post-text{
		grid-column: span 2;
	}
	.footer-wrap{
		flex-direction: row;
		justify-content: space-between;
	}
	.breadcrumbs-section{
		margin: 1.5rem 0 3rem;
	}
	.breadcrumbs > span{
		justify-content: flex-start;
	}
	.books-grid{
		grid-template-columns: repeat(3, 1fr);
	}
	.book-img img{
		width: 100%;
	}
	.book-info .title-3{
		font-size: 1rem;
	}
	.book-btn{
		display: inline-flex;
		gap: 0;
		width: auto;
		padding: 0.75rem;
		transition: all .5s;
	}
	.book-btn span{
		display: block;
		width: 0;
		opacity: 0;
		visibility: hidden;
		white-space: nowrap;
		transition-property: width, visibility, opacity;
		transition-duration: .5s;
	}
	.book-btn:hover{
		padding: 0.75rem 2rem;
	}
	.book-btn:hover span{
		width: 6rem;
		visibility: visible;
		opacity: 1;
	}
	.search-form-btn{
		cursor: pointer;
	}
	.footer-creator{
		line-height: 2;
	}
}
@media(min-width: 75rem){
	.about-block{
		grid-template-columns: repeat(12, 1fr);
	}
	.about-photo{
		grid-column: span 4;
	}
	.about-text{
		grid-column: 6 / span 7;
	}
	.books-grid{
		grid-template-columns: repeat(4, 1fr);
	}
}
@media(min-width: 87.5rem){
	.mt-xxl-24{
		margin-top: 1.5rem;
	}
	.selected-small-post{
		align-items: center;
	}
}