
/* Header
--------------------------------------------- */
.header {
	margin-top: 250px;
	margin-bottom: 25px;
}

.header__title,
.repeater__title {
	margin-bottom: 25px;
}

.header__main-block {
	padding: 20px;
    box-sizing: border-box;
    background-color: #131412;
    border-radius: 20px;
}

@media only screen and (max-width: 1080.99px)  {
	.header {
		margin-top: 60px;
	}
}

@media only screen and (max-width: 620.99px) {

	.header__title {
		margin-bottom: 15px;
	}

	.header {
		margin-top: 40px;
	}
}

@media only screen and (max-width: 420.99px) {
	.header {
		margin-top: 30px;
	}
}

/* Search
--------------------------------------------- */

section.search {
	margin-block: 0;
	margin-bottom: 45px;
}

.search__main-block {
	padding: 15px;
	box-sizing: border-box;
	background-color: #131412;
	border-radius: 20px;
}

.search__title {
	margin-bottom: 20px;
	font-size: 18px;
}

.search .search-form {
	position: relative;
	display: block;
}

.search .search-form input[type="search"] {
	background-color: transparent;
	border: 1px solid #404040;
	border-radius: 30px;
	font-size: 14px;
	line-height: 1;
	color: #E9E9E9;
	padding: 10px 15px;
	padding-left: 50px;
	box-sizing: border-box;
	width: 100%;
	display: block;
}

.search .search-form .search-submit {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
}

.search .search-form .search-submit svg {
	height: 20px;
	width: 20px;
	display: block;
}

.search__term-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 10px;
	margin-top: 20px;
}

.search__term-item {
	display: block;
	width: 100%;
}

.search__term-link {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: max-content auto;
	grid-gap: 0 7px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background-color: #A0E00D;
	border: 1px solid #A0E00D;
	border-radius: 20px;
	width: 100%;
}


.search__term-item:nth-child(5n) .search__term-link {
	background-color: #C8FF4A;
}

.search__term-item:nth-child(6n) .search__term-link {
	background-color: #CDFF84;
}

.search__term-item:nth-child(7n) .search__term-link {
	background-color: #CDFF84;
}

.search__term-item:nth-child(8n) .search__term-link {
	background-color: #CDFF84;
}

.search__term-item:hover .search__term-link,
.search__term-item.active .search__term-link {
	background-color: transparent!important;
}

.search__term-link * {
	display: block;
	font-size: 16px;
}

.search__term-count {
	color: #676767;
}

.search__term-name {
	color: #373434;
	font-weight: 500;
}

.search__term-item:hover .search__term-count,
.search__term-item:hover .search__term-name {color: #A0E00D;}

.search__term-item.active .search__term-count,
.search__term-item.active .search__term-name {color: #A0E00D;}

@media only screen and (max-width: 920.99px) {
	.search__term-list {grid-template-columns: repeat(3, 1fr);}
}

@media only screen and (max-width: 820.99px) {
	.search__term-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.search__term-link {
		padding: 7px 15px;
	}

	.search__term-link * {
		font-size: 14px;
	}
}

@media only screen and (max-width: 520.99px) {
	.search {
		margin-top: 45px;
	}
}

@media only screen and (max-width: 420.99px) {

	.search__term-list {
		grid-template-columns: 100%;
		grid-gap: 10px 0;
	}

}


/* Repeater
--------------------------------------------- */

.repeater {
	margin-block: 0;
	margin-bottom: 0;
}

.repeater__posts-block {
	height: fit-content;
}

.repeater__custom-posts-list {
	display: flex;
	flex-direction: column;
}

.repeater__post-item {
	cursor: pointer;
}

.repeater .post-item:not(:last-child) {
	margin-bottom: 20px;
}


.repeater .post-item:not(.banner-item) {
	position: relative;
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	grid-gap: 0 15px;
	padding: 16px;
	background-color: #2F2F2B;
	filter: drop-shadow(0px 2px 4px #e6f0ff);
	transition: all .4s;
}

.repeater .post-item:not(.banner-item):hover {
	filter: drop-shadow(0px 2px 15px #e6f0ff);
	transition: .4s;
}

.repeater .post-item.banner-item {
	opacity: 1!important;
}

.repeater .post-item {
	border-radius: 20px;
}

.repeater .post-item__left-column {
	display: flex;
	flex-direction: column;
}

.repeater .post-item__title {
	font-weight: 600;
	text-align: center;
	margin-bottom: 30px;
	font-size: 16px;
}

.repeater .post-item__thumb-link {
	display: block;
}

.repeater .post-item__img {
	width: 150px;
	transform: scale(1);
	transition: all .4s;
}

.repeater .post-item:hover .img {
	transform: scale(1.05);
	transition: all .4s;
}

.repeater .post-item__top-title {
	font-size: 18px;
}

.repeater .post-item__sponsored-true {
	padding: 10px 24px;
	background-color: #A0E00D;
	border-radius: 20px;
	box-sizing: border-box;
	color: #373434;
	font-weight: 600;
	display: block;
	width: fit-content;
	text-align: center;
	font-size: 14px;
	line-height: 1;
}

body[banner="true"] .repeater .post-item__sponsored-true {
	margin-left: 30px;
}

.repeater .post-item__top-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

body[banner="true"] .repeater .post-item__top-block {
	justify-content: flex-start;
	align-items: flex-start;
}

.repeater .post-item__right-column {
	height: 100%;
	display: flex;
	gap: 20px 0;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

body[banner="true"] .repeater .post-item__right-column {
	justify-content: flex-start;
}

.repeater .post-item__external-link,
.repeater .post-item__link {
	box-sizing: border-box;
	text-align: center;
	width: fit-content;
	padding: 8px 16px;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 1;
	text-align: center;
	border: 1px solid transparent;
	border-radius: 20px;
	height: fit-content;
	margin-top: auto;
}

.post-item__buttons-block {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 15px 0;
}

.repeater .post-item__link {
	border-color: #808080;
	color: #E9E9E9;
}

.repeater .post-item__external-link {
	border-color: #B8FE16;
    color: #B8FE16;
	position: relative;
	width: 100%;
}

.repeater .post-item__external-link:hover {
	color: #373434;
	background-color: #B8FE16;
}

.repeater .post-item__external-tooltip {
	display: none;
	position: absolute;
	width: 100%;
	left: 0;
	z-index: 111;
	padding-bottom: 6px;
	box-sizing: border-box;
	bottom: 100%;
}

.repeater .post-item__external-tooltip > div {
	width: 100%;
	padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    max-width: 320px;
    line-height: 1.2;
    box-shadow: 0px 4px 14px 0px #00000026;
    color: #EFEFEF;
    border: 1px solid #404040;
    background-color: #2F2F2B;
    
}

.repeater .post-item__external-link:hover .external-tooltip:hover {
	display: none;
}
.repeater .post-item__external-link:hover .external-tooltip {
	display: block;
}
.repeater__post-item.hover .link,
.repeater .post-item__link:hover {
	background-color: #808080;
}

body[banner="true"] .repeater .post-item__link {
	padding: 10px 20px;
}

.post-item__content-block {
	display: flex;
	flex-direction: column;
}

.repeater .post-item__content {
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	color: #BEBFBE;
	overflow: hidden;
	display: -webkit-box; /* Встановлюємо flex-контейнер для підтримки clamp */
    -webkit-box-orient: vertical; /* Встановлюємо орієнтацію контейнера */
    overflow: hidden; /* Сховати переповнений текст */
    -webkit-line-clamp: 4;
    height: calc(1.2em * 4);
    margin-bottom: 16px;
}

body[banner="true"] .repeater .post-item__content {
	font-size: 16px;
}

.repeater .post-item__rating-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 18px;
}

.repeater .post-item__rating-block * {
	font-size: 16px;
}


.repeater .post-item__rating-block h4 {
	font-size: inherit;
	color: #AAAAAA;
	margin-bottom: 7px;
	text-align: center;
}

.repeater .post-item__rating-block div {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	grid-gap: 0 6px;
	align-items: center;
	justify-content: center;
}

.repeater .post-item__rating-block div svg {
	width: 20px;
	height: 20px;
}

.repeater .post-item__rating-block div span {
	display: block;
	font-weight: 600;
	color: #E9E9E9;
}

.repeater .post-item__tags-block {
	position: relative;
	width: fit-content;
	margin-top: auto;
}

.repeater .post-item__other-tags-tooltip {
	position: absolute;
	display: none;
	right: 0;
    bottom: 25px;
    box-sizing: border-box;
    padding: 7px;
    z-index: 1111;
}

.repeater .post-item__other-tags-tooltip div.flex {
	padding-top: 0;
}

.repeater .post-item__other-tags-tooltip div ul {
	flex-wrap: wrap;
}

.repeater .post-item__other-tags-tooltip div li:not(:last-child) {
	margin-right: 6px;
}

.repeater .post-item__other-tags-tooltip div li {
	padding: 4px 12px;
    margin-top: 10px;
    box-sizing: border-box;
    display: block;
    text-align: center;
    width: fit-content;
    border-radius: 15px;
    border: 1px solid #606759;
    font-size: 12px;
    color: #FFFFFF;
    line-height: 1;
    margin-top: 8px;
}

.repeater .post-item__other-tags-tooltip div {
	padding: 8px 12px;
	box-sizing: border-box;
	border-radius: 20px;
	font-size: 12px;
	text-align: center;
	max-width: 320px;
	line-height: 1.2;
	box-shadow: 0px 4px 14px 0px #00000026;
	color: #EFEFEF;
	border: 1px solid #404040;
	background-color: #2F2F2B;
}

.repeater .post-item__other-tags-tooltip:hover,
.repeater .post-item__tags-block.tooltip-tags .post-item__other-tags-tooltip {
	display: block;
}

.repeater .post-item__other-tags-tooltip.none {
	display: none!important;
}

.repeater .post-item__tags-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	overflow-x: auto;
}

.repeater .post-item__tag-item {
	margin-right: 10px;
	background-color: #606759;
	min-width: 110px;
}

.repeater .post-item__tag-count-item {
	background-color: #606759;
	color: #FFFFFF;
}

.repeater .post-item__tag-item,
.repeater .post-item__tag-count-item {
	padding: 6px 20px;
	margin-top: 10px;
	box-sizing: border-box;
	display: block;
	text-align: center;
	width: fit-content;
	border-radius: 20px;
	border: 1px solid #606759;
	font-size: 14px;
	color: #FFFFFF;
	line-height: 1;
}


.repeater .post-item__tag-count-item {
	cursor: pointer;
	font-weight: 500;
}

.repeater .post-item__tag-count-item.active {
	font-size: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 50%;
}

.repeater .post-item__tag-count-item.active:after,
.repeater .post-item__tag-count-item.active:before {
	content:'';
	position: absolute;
	width: 60%;
	height: 1px;
	background-color: #FFFFFF;
	margin: 0;
}

.repeater .post-item__tag-count-item.active:after {transform: rotate(-45deg);}

.repeater .post-item__tag-count-item.active:before {transform: rotate(45deg);}

.repeater .post-item__tag-item.none {
	display: none;
}

.repeater .post-item__tag-item.none.active {
	display: block;
}


.repeater .post-item__special-title {
	margin-right: 24px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

body[banner="true"] .repeater .post-item__special-title {
	margin-right: 45px;
}

.repeater .post-item__promo-block {
	display: flex;
	align-items: center;
	position: relative;
}

.repeater .post-item__special-block {
	margin-top: 15px;
	padding: 5px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	position: relative;
	width: fit-content;
}

.repeater .post-item__percent {
	display: block;
	width: fit-content;
	text-align: center;
	color: #DD0000;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 20px;
	box-sizing: border-box;
	border: 1px solid #DD0000;
}

.repeater .post-item__promo-title {
	text-transform: uppercase;
	font-size: 14px;
	line-height: 1;
}

.repeater .post-item__tooltip-title {
	position: absolute;
	display: none;
	right: -50%;
	transform: translateX(-50%);
    top: -55px;
    box-sizing: border-box;
    padding: 10px;
    z-index: 1111;
}

.repeater .post-item__tooltip-title div {
	padding: 8px 12px;
	box-sizing: border-box;
	border-radius: 20px;
	font-size: 12px;
	text-align: center;
	max-width: 200px;
	line-height: 1.2;
	box-shadow: 0px 4px 14px 0px #00000026;
	color: #EFEFEF;
	border: 1px solid #404040;
	background-color: #2F2F2B;
}

.post-item__tooltip-title:hover,
.repeater .post-item__special-block.tooltip .post-item__tooltip-title {
	display: block;
}

.repeater .post-item__special,
.repeater .post-item__promo {
	display: grid;
	grid-gap: 0 7px;
	align-items: center;
}

.repeater .post-item__promo {
	margin-right: 10px;
	cursor: pointer;
}

.repeater .post-item__promo {
	grid-template-columns: max-content auto;
}

.repeater .post-item__special {
	grid-template-columns: max-content auto;
}

.repeater .post-item__promo.copied .copy-past-btn-promo {
	position: relative;
}

.repeater .post-item__promo.copied .copy-past-btn-promo:after {
	position: absolute;
    right: 0;
    top: 0;
    content: '';
    width: 13px;
    height: 9px;
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.10455 10L0.388076 5.28353C-0.129359 4.76609 -0.129359 3.92973 0.388076 3.41229C0.905512 2.89486 1.74188 2.89486 2.25931 3.41229L5.10455 6.25753L10.975 0.387084C11.4924 -0.129028 12.3288 -0.129028 12.8462 0.387084C13.3637 0.904519 13.3637 1.74221 12.8462 2.25832L5.10455 10Z' fill='%23A0E00D'/%3E%3C/svg%3E%0A");
}

.repeater .post-item__copy-past-btn-promo svg,
.repeater .post-item__tooltip-btn svg {
	width: 24px;
	height: 24px;
	display: block;
}

.repeater .post-item__promo.copied .copy-past-btn-promo + span {color: #A0E00D;}

.repeater .post-item__promo.copied .copy-past-btn-promo svg path {
	fill: #606759;
}

@media only screen and (max-width: 1080.99px)  {
	.repeater .post-item__sponsored-true {
		margin-left: 10px;
		font-size: 14px;
	}
}

@media only screen and (max-width: 920.99px) {

	.repeater .post-item__right-column {
		justify-content: space-evenly;
	}

	body[banner="true"] .repeater .post-item__content {font-size: 14px;}

	body[banner="true"] .post-item__special-title {margin-right: 15px;}

	body[banner="true"] .repeater .post-item__img {
		width: 120px;
	}
}

@media only screen and (max-width: 820.99px) {

	body[banner="true"] .repeater .post-item__sponsored-true {
		margin-left: 0;
	}
	.repeater .post-item:not(.banner-item) {
		grid-template-columns: 100%;
		grid-gap: 20px 0;
		padding: 25px 20px;
	}

	.repeater .post-item__left-column {
		display: grid;
		grid-template-columns: 1fr max-content;
		align-items: center;
	}

	.repeater .post-item.banner-item {
		grid-column: 1/3;
	}

	.repeater .post-item__title {
		text-align: left;
	}

	body[banner="true"] .repeater .post-item__title {
		margin-bottom: 0;
	}

	body[banner="true"] .repeater .post-item__content {
		font-size: 12px;
	}

	.repeater .post-item__rating-block {
		flex-direction: unset;
	}

	.repeater .post-item__rating-block h4 {
		margin-right: 7px;
		margin-bottom: 0;
	}

	.repeater__custom-posts-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 0 20px;
	}

	.repeater .post-item__top-block {
		flex-direction: column;
		align-items: flex-start;
	}

	.repeater .post-item__sponsored-true {
		order: 1;
		margin-bottom: 10px;
	}

	.repeater .post-item__top-title {
		order: 2;
	}

	.repeater .post-item__tag-item, 
	.repeater .post-item__tag-count-item {
		padding: 6px 15px;
		font-size: 12px;
	}

	.repeater .post-item__link {
		width: 100%;
	}

	.repeater .post-item__special-block {
		flex-direction: column;
		align-items: flex-start;
	}

	.repeater .post-item__special-title {
		margin-bottom: 15px;
		margin-right: 0;
	}

	.repeater .post-item__tooltip-title {top: -25px;}

	.repeater {margin-bottom: 30px;}
}

@media only screen and (max-width: 520.99px) {
	.repeater__custom-posts-list {
		display: flex;
		flex-direction: column;
	}

	body[banner="true"] .repeater .post-item__title {
		margin-bottom: 10px;
	}

	.repeater .post-item__rating-block h4 {
		margin-right: 0;
		margin-bottom: 7px;
	}

	.repeater .post-item__rating-block {
		flex-direction: column;
		align-items: center;
	}

	.repeater .post-item__sponsored-true {
		order: unset;
		margin-bottom: 0;
	}

	body[banner="true"] .repeater .post-item__link {
		margin-top: 0;
	}

	body[banner="true"] .repeater .post-item__top-block {
		align-items: center;
		justify-content: space-between;
	}

	.repeater .post-item__top-title {
		order: unset;
		margin-right: 15px;
	}

	.repeater .post-item__top-block {
		flex-direction: unset;
		justify-content: flex-start;
		align-items: center;
	}

	.repeater .post-item__tags-list {
		margin-top: 10px;
	}
}