

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    outline: none;
    border: none;
	box-sizing: border-box;
	color: inherit;
}

:root {
	--grid-gap: 24px;
}

html {
	height: 100%;
	min-width: 320px;
	overflow-x: hidden;
}

body {
	background-color: #fff;
	text-rendering: optimizeLegibility;
	text-decoration-skip: objects;
	text-decoration-skip-ink: none;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	min-height: 100vh;
	min-width: 320px;
	overflow-x: hidden;
	height: 100%;
}

.home, #mobile-menu-overlay {
	font-family: 'Inter';
	color: #000;
	font-weight: 500;
	line-height: 1;
	font-size: 16px;
}

img {
	max-width: 100%;
    height: auto;
}

ul {
	list-style: none;
}

.wrapper {
	max-width: 1230px;
	width: 100%;
	padding: 0 15px;
	margin: 0 auto;
}

a, button, .btn {
	cursor: pointer;
}

#mobile-bars {
	justify-content: center;
	align-items: center;
	display: none;
	width: 18px;
	height: 18px;
	position: relative;
}

#mobile-bars .line {
	width: 18px;
	height: 3px;
	background: #7C62FF;
	border-radius: 2px;
	display: block;
	transition: all .3s;
	position: relative;
}
  
#mobile-bars .line:nth-child(1), #mobile-bars .line:nth-child(3) {
	position: absolute;
	left: 0;
}
  
#mobile-bars .line:nth-child(1) {
	top: 0;
}

#mobile-bars .line:nth-child(3) {
	bottom: 0;
}

#mobile-bars.active .line:nth-child(2) {
	opacity: 0;
}

#mobile-bars.active .line:nth-child(1) {
	transform: rotate(45deg);
	top: 50%;
}

#mobile-bars.active .line:nth-child(3) {
	transform: rotate(-45deg);
	top: 50%;
}

p, span, ul, li {
	font-weight: inherit;
}

#page-header a, .home a {
	text-decoration: none !important;
}

#page-header a {
	color: inherit;
}

#page-header a:visited, .home a:visited {
	color: inherit;
}

.btn {
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	font-weight: 500;
	font-family: "Inter";
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s;
	cursor: pointer;
}

.btn--sm {
	padding: 14px 40px;
	font-size: 15px;
	border-radius: 12px;
}

.btn--md {
	padding: clamp(14px, 2vw, 20px) clamp(40px, 5vw, 60px);
	font-size: 15px;
	border-radius: 8px;
}


.btn--violet {
	background: #7C62FF;
	color: #fff;
}

.btn--white {
	background-color: #fff;
	color: #000;
	border: 1px solid #7C62FF;
}

/*  */

#page-header {
	background-color: #fff;
	border-bottom: 1px solid #ECECEC;
	position: sticky;
	top: 0;
	z-index: 99;
	font-family: "Inter";
	font-weight: 500;
	line-height: 1;
	font-size: 16px;
}

.home {
	margin-top: 60px;
}

.header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding: 20px 0;
}

.header-menu {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-menu a {
	display: block;
}

.header-menu > li > a {
	padding: 16px 8px;
}

/*  */

.page-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: clamp(30px, 6vw, 62px);
	line-height: 120%;
	font-weight: 500;
}

.search-form {
	width: 100%;
	position: relative;
	border-radius: 8px;
	border: 1px solid #ECECEC;
	display: flex;
	align-items: center;
	padding: 4px 4px 4px 24px;
	gap: 12px;
}

.search-form .search-iconn {
	min-width: 24px;
}

.search-form .search-input {
	height: 100%;
	width: 100%;
	font-size: 15px;
	font-family: "Inter";
	font-weight: 400;
	outline: none !important;
	border: none !important;
}

.search-form .search-input::placeholder {
	color: #C4C4C4;
}

.section {
	margin-bottom: clamp(60px, 10vw, 128px);
}

/*  */

.like-h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	line-height: 1;
	margin-bottom: 64px;
}

.title-w-decor {
	position: relative;
	padding-left: 48px;
}

.title-w-decor::before {
	width: 6px;
    height: calc(100% + 10px);
    background-color: #7c62ff;
    position: absolute;
    left: 5px;
    top: -5px;
    display: block;
    content: "";
    transform: rotate(8deg);
}

.guide-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--grid-gap);
}

.guide-item {
	border-radius: 16px;
	background-color: #F6F6F9;
	padding: 30px;
	display: flex;
	flex-direction: column;
	position: relative;
	gap: 22px;
}

.guide-item__title {
	font-size: 24px;
	color: #000 !important;
	line-height: 130%;
}

.guide-item__descr {
	color: #666;
	line-height: 150%;
	padding-right: clamp(20px, 20%, 60px);
	position: relative;
	z-index: 6;
}

.guide-item__num {
	position: absolute;
	top: 30px;
	right: 20px;
	z-index: 5;
	padding-right: 10px;
	font-weight: 900;
	font-style: italic;
	font-size: 80px;
	background: -webkit-linear-gradient(#CFCFE8, #EDEDF9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-category-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--grid-gap);
}

.category-item {
	border-radius: 16px;
	background-color: #F6F6F9;
	padding: 10px;
}

.category-item .thumb {
	width: 100%;
	aspect-ratio: 182/127;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	margin-bottom: 24px;
}

.category-item__info {
	padding: 0 20px 20px;
}

.category-item__info-title {
	font-size: 18px;
	line-height: 150%;
	margin-bottom: 12px;
}

.category-item__subs {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

a.sub-item {
	font-size: 14px;
	color: #6A6A6A ;
	line-height: 150%;
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 10px;
	transition: color .3s;
}

a.sub-item:visited {
	color: #6A6A6A ;
}

.category-item__subs .category-link {
	font-size: 16px;
}

.sub-item::after {
	display: block;
	content: "";
	width: 16px;
	height: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transition: all .3s;
	transform: translateX(-10px);
}

#popular-articles {
	overflow: visible;
}

#popular-articles .swiper-slide {
	max-width: 384px;
}

.article-item {
	border-radius: 16px;
	background-color: #F6F6F9;
	padding: 10px;
	position: relative;
	display: block;
}

.article-item .badge {
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 100px;
	position: absolute;
	z-index: 2;
	top: 30px;
	left: 30px;
	background-color: #7C62FF;
	color: #fff;
}

.article-item .thumb {
	width: 100%;
	aspect-ratio: 16/11;
	border-radius: 14px;
	object-fit: cover;
	display: block;
	margin-bottom: 24px;
}

.article-item__info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 20px 20px;
}

.article-item__title {
	font-size: 20px;
	line-height: 120%;
	color: #000;
}

.article-item__descr  {
	font-size: 16px;
	line-height: 150%;
	color: #6A6A6A;
}

.swiper-slide::after {
	opacity: 1;
	border-radius: 16px;
	background: linear-gradient(270deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
	transition: opacity .3s;
	display: block;
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	pointer-events: none;
}

.swiper-slide.swiper-slide-visible::after {
	opacity: 0;
}

#sm_last_blgo {
	width: 100vw;
	height: 280px;
}

/*  */

.footer-contact {
	border-radius: 16px;
	background: #F6F6F9;
	padding: 30px 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-ct__info {
	display: flex;
	flex-direction: column;
}

.footer-ct__info .like-h2 {
	margin-bottom: 16px;
}

.footer-ct__info .descr {
	font-size: 20px;
	line-height: 150%;
}

.tg-btn {
	background-color: #7C62FF;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(16px, 2.5vw, 32px) clamp(32px, 5vw, 64px);
	gap: 16px;
	color: #fff !important;
	font-size: clamp(18px, 2vw, 20px);
	border-radius: 16px;
}

#page-footer {
	margin-top: 40px;
	font-family: "Inter";
	font-weight: 500;
	line-height: 1;
	font-size: 16px;
}

.footer-wrap {
	color: #6A6A6A;
	border-top: 1px solid #ECECEC;
	padding: 32px 0;
}

.header-menu .has-child > a {
	display: flex;
	gap: 4px;
}

.header-menu .has-child i {
	min-width: 20px;
}

@media (min-width: 1201px) {
	.sub-item:hover {
		color: #7C62FF !important;
	}

	.sub-item:hover::after {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (min-width: 1440px) {
	.sub-menu-wrapper {
		padding: 80px 0;
	}
}

@media (min-width: 1025px) {
	.sub-menu-wrapper {
		position: absolute;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 40px 100px;
		background-color: #fff;
		z-index: 40;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		padding: 40px 0;
		transition: all .3s;
		opacity: 0;
		transform: translateY(-100%);
		z-index: -1;
	}

	.header-menu .has-child .sub-menu-wrapper.visible {
		opacity: 1;
		z-index: 9;
		transform: translateY(0);
	}

	.sub-menu-wrapper .sub-menu__col {
		position: relative;
		z-index: 5;
	}

	.sub-menu-wrapper::before {
		display: block;
		content: "";
		position: absolute;
		left: -100vw;
		top: 0;
		right: 0;
		bottom: 0;
		background-color: #fff;
		width: 200vw;
		z-index: 2;
	}

	.sub-menu-wrapper::after {
		position: absolute;
		z-index: 1;
		display: block;
		content: "";
		background: rgba(0, 0, 0, 0.50);
		left: -100vw;
		top: 100%;
		right: 0;
		bottom: 0;
		width: 200vw;
		height: 100vh;
		pointer-events: none;
	}

	.sub-menu__title {
		font-size: 18px;
		margin-bottom: 12px;
		line-height: 140%;
	}
}

@media (max-width: 1024px) {
	:root {
		--grid-gap: 15px;
	}

	#mobile-bars {
		display: flex;
	}

	.header-wrap {
		padding: 10px 0;
	}

	.header-wrap__logo-link svg {
		width: 120px;
		height: auto;
	}

	#header-nav, .header-wrap .btn  {
		display: none;
	}

	/*  */

	#mobile-menu-overlay {
		background-color: rgba(0, 0, 0, 0.50);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 98;
		transition: all .3s;
		opacity: 0;
		transform: translateX(100%);
		visibility: hidden;
		display: flex;
		justify-content: flex-end;
	}

	#mobile-menu-overlay.active {
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
	}

	#mobile-menu {
		width: 300px;
		height: 100%;
		background-color: #fff;
		padding: 70px 15px 30px 15px;
		display: flex;
		flex-direction: column;
		gap: 15px;
		overflow-y: auto;
	}

	.sub-menu-wrapper {
		display: flex;
		flex-direction: column;
		gap: 15px;
		flex-grow: 1;
	}

	.sub-menu__menu {
		display: none;
		padding: 15px 0;
	}

	.sub-menu__menu a {
		display: block;
		font-size: 15px;
	}

	.sub-menu__menu a:not(:last-child) {
		margin-bottom: 10px;
	}

	.sub-item::after {
		display: none;
	}

	.sub-menu__title {
		position: relative;
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.sub-menu__title::after {
		display: block;
		content: "";
		width: 20px;
		height: 20px;
		min-width: 20px;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		transition: transform .3s;
	}

	.sub-menu__title.opened::after {
		transform: rotate(180deg);
	}


	/*  */

	.like-h2 {
		margin-bottom: 32px;
	}

	.guide-item {
		padding: 15px;
	}

	.guide-item__title {
		font-size: 20px;
	}

	.guide-item__num {
		top: 15px;
		right: 5px;
		font-size: 60px;
	}

	.guide-item__descr {
		font-size: 14px;
	}

	.category-item__info-title {
		font-size: 16px;
	}

	.category-item__subs {
		gap: 10px;
	}

	.category-item__info, .article-item__info {
		padding: 0 10px 10px;
	}

	.article-item__title {
		font-size: 18px;
	}

	.article-item__descr {
		font-size: 14px;
	}
	#popular-articles .swiper-slide {
		max-width: 300px;
	}

}


@media (max-width: 768px) {
	.header-wrap__logo-link svg {
		width: 100px;
	}

	.search-form {
		padding-left: 10px;
		gap: 4px;
	}

	.search-form .search-input {
		font-size: 13px;
	}

	.search-form .search-iconn {
		min-width: 20px;
		width: 20px;
		height: auto;
	}

	.search-form .btn {
		font-size: 14px;
	}

	.guide-grid  {
		grid-template-columns: 1fr;
	}

	.title-w-decor {
		padding-left: 30px;
	}

	.main-category-grid {
		grid-template-columns: 1fr 1fr;
	}

	.category-item .thumb, .article-item .thumb {
		margin-bottom: 15px;
	}

	#sm_last_blgo {
		height: 230px;
	}

	.footer-contact {
		flex-direction: column;
		gap: 20px;
		padding: 25px;
		align-items: flex-start;
	}

	.tg-btn {
		width: 100%;
	}

	.footer-ct__info .descr {
		font-size: 16px;
	}
	
}


@media (max-width: 600px) {
	.main-category-grid {
		grid-template-columns: 1fr;
	}
}