/*
Theme Name: Ecom Theme
Author: Webrarium
Author URI: http://webrarium.com
Description: Ecom тема для WordPress
Version: 1.0
*/

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
img {
	max-width: 100%;
	height: auto;
}
:root {
	--container: 1300px;
	--primary-color: #ff0000;
	--text-color: #171717;
	--text-color-gray: #747474;
	--bg: #ffffff;
	--container-padding: 20px;
	--card-bg: #f8f8f8;
	--violet-600: #982983;
	--black-0: #a2a2a2;
}
@font-face {
	font-family: "icon";
	src: url("../woff2/icon.woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-italic.ttf") format("truetype");
	font-weight: 400;
	font-style: italic;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-medium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-mediumitalic.ttf") format("truetype");
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-semibold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-semibolditalic.ttf") format("truetype");
	font-weight: 600;
	font-style: italic;
}
@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "IBMPlexSerif";
	src: url("../ttf/ibmplexserif-bolditalic.ttf") format("truetype");
	font-weight: 700;
	font-style: italic;
}

@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-italic.ttf") format("truetype");
	font-weight: 400;
	font-style: italic;
}
@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-medium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-mediumitalic.ttf") format("truetype");
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-semibold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
}
@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-semibolditalic.ttf") format("truetype");
	font-weight: 600;
	font-style: italic;
}
@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "IBMPlexSans";
	src: url("../ttf/ibmplexsans-bolditalic.ttf") format("truetype");
	font-weight: 700;
	font-style: italic;
}

body {
	background-color: var(--bg);
	font-family: "IBMPlexSans";
	font-size: 1rem;
	line-height: 1.25;
	color: var(--text-color);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
section {
	padding: 2rem 0;
}
strong {
	font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "IBMPlexSerif";
	color: var(--text-color);
	font-weight: 500;
}
h1 {
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: 1.5rem;
}
h2 {
	font-size: 2rem;
	margin-bottom: 1.2rem;
}
h3 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
h4 {
	font-size: 1.15rem;
	margin-bottom: 0.75rem;
}
p:not(:last-child) {
	margin-bottom: 1rem;
}
/* ul,
ol {
	list-style-position: inside;
} */
ul li,
ol li {
	margin-bottom: 0.5rem;
}
a:hover {
	opacity: 0.8;
}
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}
.btn {
	padding: 1rem 2rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	text-wrap: nowrap;
	white-space: nowrap;
	width: 185px;
	font-family: "IBMPlexSerif";
	display: block;
	cursor: pointer;
}
.btn.primary {
	background-color: var(--text-color);
	color: white;
}
.btn.secondary {
	border: 1px solid var(--text-color);
	color: var(--text-color);
}
.btn:hover {
	background-color: var(--text-color-gray);
}
.read-more-btn {
	display: flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
	color: inherit;
}
.see-all-btn {
	display: flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
	color: inherit;
	font-family: "IBMPlexSerif";
	font-size: 1.1em;
	font-weight: 500;
	flex-shrink: 0;
	gap: 4px;
}
@media screen and (max-width: 768px) {
	body {
		font-size: 0.9rem;
	}
	section {
		padding: 2rem 0;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	h3 {
		font-size: 1.25rem;
	}
}

/* Header */
header {
	position: sticky;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--bg);
	font-family: "IBMPlexSerif";
	color: #000;
	/* font-size: 14px; */
	--transition: 0.3s;
}
header .header-wrp {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}
header .custom-logo {
	width: auto;
	height: 32px;
	display: block;
}
header nav a {
	text-decoration: none;
	color: var(--text-color);
}
header nav > ul > li > a {
	cursor: default;
}
header nav > ul > li > a:hover {
	opacity: 1;
}
header .menu {
	display: flex;
	list-style: none;
}
header .menu > .menu-item {
	position: relative;
}
header .menu-item {
	padding: 0 12px;
	margin: 0;
}

header .menu-item-has-children > a::after {
	content: url("../svg/chevron-down.svg");
	display: inline-block;
	transform-origin: center;
	transition: transform var(--transition);
	margin-left: 5px;
}
header .menu-item-has-children:hover > a::after {
	transform: rotate(180deg) translateY(-2px);
}
header .menu-item-has-children:hover .sub-menu {
	max-height: none;
	padding: 12px 0;
	opacity: 1;
}
header ul li:first-child ul li:last-child,
header ul li:first-child ul li:nth-last-child(2) {
	font-weight: 600;
}
header ul li:nth-child(3) ul li:last-child {
	text-decoration: underline;
}

header .sub-menu {
	opacity: 0.6;
	display: flex;
	background-color: var(--bg);
	overflow: hidden;
	max-height: 0;
	position: absolute;
	left: 0;
	flex-direction: column;
	gap: 5px;
	transition: all var(--transition);
	min-width: 220px;
	max-width: 260px;
}
header .sub-menu .menu-item {
	opacity: 70%;
	margin-bottom: 0.5rem;
}
.burger {
	width: 34px;
	position: relative;
	display: none;
	cursor: pointer;
}
.burger span {
	width: 100%;
	height: 4px;
	border-radius: 12px;
	opacity: 1;
	transition: all var(--transition);
}
.burger span:nth-child(1) {
	background-color: #ffcc00;
}
.burger span:nth-child(2) {
	background-color: #538c31;
}
.burger span:nth-child(3) {
	background-color: #982983;
}
.burger span:nth-child(4) {
	background-color: #f08718;
}

.burger.open span:nth-child(1) {
	transform: translate(0px, -7px);
	opacity: 0;
}
.burger.open span:nth-child(2) {
	transform: rotate(45deg) translate(0px, 5px);
	/* background-color: var(--text-color); */
}
.burger.open span:nth-child(3) {
	transform: rotate(-45deg) translate(0px, -5px);
	/* background-color: var(--text-color); */
}
.burger.open span:nth-child(4) {
	transform: translate(0px, 7px);
	opacity: 0;
}
.header-right {
	display: flex;
	align-items: stretch;
	gap: 1rem;
}
.header-right .search {
	cursor: pointer;
}
.header-right .search svg {
	transform: translateY(3px);
}
.lang-switcher {
	position: relative;
	padding: 0 5px;
	cursor: pointer;
}
.curr-lang {
	font-size: 18px;
	font-weight: 700;
}
.lang-switcher svg {
	transform: rotate(180deg);
	transition: all var(--transition);
}
.lang-switcher.open svg {
	transform: rotate(0deg) translateY(0px);
}
.langs {
	max-height: 0;
	overflow: hidden;
	position: absolute;
	display: flex;
	flex-direction: column;
	left: 0;
	background-color: var(--bg);
	transition: all var(--transition);
	padding: 0px 5px;
	gap: 5px;
	width: 100%;
}
.lang-switcher.open .langs {
	max-height: 400px;
	z-index: 100;
	padding: 12px 5px;
}
.langs a {
	text-decoration: none;
	color: var(--text-color);
	opacity: 70%;
	display: block;
}

@media screen and (max-width: 768px) {
	.burger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 3px;
	}

	header nav {
		background-color: var(--bg);
		position: fixed;
		z-index: 10;
		width: 100%;
		top: 62px;
		right: -100%;
		height: calc(100vh - 62px);
		transition: all var(--transition);
		padding: 0 var(--container-padding);
		overflow: auto;
	}
	header nav.open {
		right: 0;
	}
	header .menu {
		flex-direction: column;
		gap: 2rem;
		padding: 20px 0;
	}
	header .menu > .menu-item {
		padding: 0;
		font-size: 18px;
		font-weight: 500;
	}
	header .sub-menu {
		opacity: 1;
		max-width: none;
		position: static;
		max-height: 100%;
		padding: 12px 0 0 0;
	}
	header .sub-menu .menu-item {
		padding: 0;
		font-size: 14px;
		font-weight: 400;
	}
	header .menu-item-has-children > a::after {
		display: none;
	}
	header .menu-item-has-children:hover .sub-menu {
		max-height: 100%;
		padding: 12px 0 0 0;
	}
}

/* footer */
footer {
	background-color: var(--text-color);
	padding: 2rem 0;
	color: white;
	margin-top: auto;
}
.subscribe-wrp {
	display: flex;
	gap: 2rem;
	border-bottom: 1px solid white;
	margin-bottom: 2rem;
}
.subscribe-wrp h2 {
	color: white;
	font-size: 2.5rem;
	font-weight: 600;
	line-height: 1;
	margin: 0;
}
.subscribe-wrp .inputs-wrp {
	position: relative;
}
.subscribe-wrp form {
	margin-bottom: 2rem;
	max-width: 400px;
}
.subscribe-wrp form input[type="email"] {
	border: white 1px solid;
	background-color: transparent;
	color: white;
	font-size: 1rem;
	padding: 1rem 0.5rem;
	border-radius: 0.5rem;
	width: 100%;
}
.subscribe-wrp form input[type="email"]:focus {
	outline: none;
}
.subscribe-wrp form input[type="email"]::placeholder {
	color: white;
}
.subscribe-wrp form input[type="submit"] {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: white;
	color: white;
	border: none;
	padding: 0.5rem;
	background: none;
	cursor: pointer;
}

.footer-wrp {
	display: flex;
	gap: 3rem;
}
.footer-menu {
	flex: 1;
}
.footer-menu a {
	text-decoration: none;
	color: white;
}
.footer-menu ul {
	list-style: none;
}
.footer-menu > ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}
.footer-menu > ul > li:nth-child(3) > ul > li.menu-item-object-custom > a {
	text-decoration: underline;
}
.footer-menu > ul > li > a {
	font-size: 1.2rem;
	font-weight: 500;
	margin-bottom: 1rem;
	display: block;
	cursor: default;
}
.footer-menu > ul > li:nth-child(1) > ul > li:last-child > a,
.footer-menu > ul > li:nth-child(1) > ul > li:nth-last-of-type(2) > a {
	font-size: 1.2rem;
	font-weight: 500;
	margin-top: 1rem;
	display: block;
}
.footer-menu > ul > li > a:hover {
	opacity: 100%;
}
.footer-menu > ul > li > ul > li > a {
	opacity: 70%;
}
.footer-menu > ul > li > ul > li > a:hover {
	opacity: 100%;
}
footer > .dummy-social {
	display: none;
}
footer .social {
	display: flex;
	gap: 0.5rem;
}
footer .social a {
	border: 1px solid white;
	width: 24px;
	height: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
}
@media screen and (max-width: 768px) {
	.footer-wrp {
		flex-direction: column;
	}
	.subscribe-wrp h2 {
		font-size: 1.5rem;
	}
	.subscribe-wrp {
		flex-direction: column;
		gap: 1rem;
	}
}

/* slider */
.heading-wrp {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}
.heading-wrp .headings p {
	margin-bottom: 1rem;
}
.swiper-navigation {
	display: flex;
	gap: 0.5rem;
}
.swiper-button-next-c,
.swiper-button-prev-c {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #a2a2a2;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;

	transition: all 0.3s;
}
.swiper-button-disabled svg path {
	fill: #a2a2a2;
}
.swiper-button-next-c:hover,
.swiper-button-prev-c:hover {
	transform: scale(1.05);
}
.swiper-button-next-c {
	transform-origin: right;
}
.swiper-button-prev-c {
	transform-origin: left;
}
/* breadcrumbs */
.breadcrumbs {
	font-size: 14px;
	color: #22222299;
	margin-bottom: 0.5rem;
}

.breadcrumbs a {
	color: #22222299;
	text-decoration: none;
}
.breadcrumbs a:hover {
	text-decoration: underline;
}

/* news card */
.swiper-slide {
	height: auto;
}
.news-card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.5rem;
	background-color: var(--card-bg);
	height: 100%;
}
.news-card a {
	color: inherit;
	text-decoration: none;
}
.news-card-desc {
	margin-bottom: 1rem;
}
.news-card-top {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.5rem;
}
.news-card-tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.news-tag_link {
	text-decoration: none;
	color: var(--text-color);
	font-size: 0.9rem;
	padding: 0.2rem 0.5rem;
	border-radius: 1rem;
	border: 1px solid var(--text-color);
}
.news-card-top-left {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.news-card-date {
	color: var(--text-color-gray);
	font-size: 0.9rem;
}
.news-card-img-link {
	display: block;
}
.news-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 14/9;
}
@media screen and (max-width: 577px) {
	.news-card-top {
		display: flex;
		flex-direction: column-reverse;
	}
	.news-card-top-left {
		flex-direction: column-reverse;
	}
}
@media (767px < width < 1150px) {
	.news-card-top {
		display: flex;
		flex-direction: column-reverse;
	}
	.news-card-top-left {
		flex-direction: column-reverse;
	}
}
@media screen and (max-width: 768px) {
	.news-card {
		padding: 1rem;
		gap: 1rem;
	}
}

/* library card */
.library-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
}

.library-card h3 a {
	text-decoration: none;
	color: inherit;
}
.library-card-img-link {
	width: 100%;
}
.library-card img {
	display: block;
	aspect-ratio: 3/4;
	object-fit: cover;
	width: 100%;
}
/* search */
.search-results h1 {
	font-size: 2rem;
}
.search-results .search-form {
	margin-bottom: 2rem;
}
.search-form {
	display: flex;
	gap: 1rem;
	align-items: stretch;
}
.search-form input {
	background-color: var(--card-bg);
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border: 1px solid var(--text-color);
	flex-grow: 1;
	appearance: none;
}
.search-form button {
	color: white;
	cursor: pointer;
	padding: 0 1rem;
	border: 1px solid var(--text-color);
	border-radius: 0;
	background-color: var(--card-bg);
}
.search-form input:hover,
.search-form button:hover {
	outline: 1px solid var(--violet-600);
}
.search-form button:hover svg path {
	fill: var(--violet-600);
}
.search-results-list {
	display: grid;
	gap: 1rem;
}
.search-result-item {
	background-color: var(--card-bg);
	padding: 1rem;
	display: grid;
	grid-template-columns: minmax(140px, 200px) 1fr;
	gap: 1rem;
}

.search-result-item a {
	color: inherit;
	text-decoration: none;
}
.search-result-item h2 {
	font-size: 1.25rem;
}
.search-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.search-modal-content {
	background: white;
	padding: 10px;
	width: 500px;
	max-width: 95%;
}
.search-modal.active {
	display: flex;
}
@media screen and (max-width: 768px) {
	.search-result-item {
		grid-template-columns: 1fr;
	}
	.search-result-item img {
		max-width: 400px;
		width: 100%;
	}
	.search-result-item h2 {
		font-size: 1rem;
	}
}

/* pagination */
.pagination {
	margin-top: 40px;
	text-align: center;
	display: flex;
	justify-content: center;
}

.pagination .page-numbers {
	padding: 8px 14px;
	margin: 0 4px;
	text-decoration: none;
	background-color: var(--card-bg);
	color: var(--text-color);
}

.pagination .current {
	background: var(--text-color);
	color: white;
}

.pagination .prev,
.pagination .next {
	padding: 8px 20px;
}

/* pp */

.policy-wrapper .second-block details,
.covid details {
	border: 1px solid #000;
	padding: 10px;
	border-radius: 15px;
	margin-bottom: 20px;
}
.policy-wrapper .second-block details summary,
.covid details summary {
	font-size: 16px;
	line-height: 17px;
	font-weight: 600;
}
.policy-wrapper ul,
.cookies-policy-wrapper ul {
	list-style-position: inside;
}
.policy-wrapper div:empty,
.cookies-policy-wrapper div:empty {
	margin-bottom: 1rem;
}
.policy-wrapper h3,
.policy-wrapper h4 {
	margin-top: 1rem;
}
.cookies-policy-wrapper .table-wrp {
	overflow-x: auto;
}
.cookies-policy-wrapper table {
	width: 100%;
	border-collapse: collapse;
}
.cookies-policy-wrapper table th,
.cookies-policy-wrapper table td {
	border: 1px solid #000;
	padding: 5px 10px;
}
