.swblock {
	display: flex;
	flex-direction: column;
}

.swtop {
	display: flex;
	flex-direction: column;
}

.swcard {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 30px;
	z-index: 2;
}

.swimg img {
	object-fit: cover;
	border-radius: 15px;
}

.swcardinfo {
	width: 84%;
	padding: 0px 15px 0 15px;
}

.swcardhead {
	color: var(--main-text);
	font-family: Roboto, sans-serif;
	font-size: 1.3em;
	font-weight: 500;
	margin-bottom: 10px;
}

.swcardrow {
	font-family: Roboto, sans-serif;
	display: flex;
	align-items: center;
	font-weight: 500;
	font-size: 15px;
	margin-bottom: 2px;
	font-size: 0.95em;
	color: var(--second-text-2);
}

.swdescr {
	color: var(--second-text-2);
	line-height: normal;
	font-weight: 500;
	font-family: Roboto, sans-serif;
	font-size: 0.9em;
}

.swbot h2 {
	font-size: 18px;
	font-family: montserrat;
	font-weight: 800;
	color: var(--main-text);
}

.swcardrow span {
	font-family: Roboto, sans-serif;
	font-weight: 500;
	font-size: 0.95em;
	color: var(--main-text);
	margin-left: 5px;
}

.swabout {
	border-radius: 15px;
	margin-bottom: 15px;
	padding: 10px 15px 0 15px;
}

.spoiler-char {
    margin-top: 10px;
    font-family: Roboto, sans-serif;
    padding: 15px;
    background-color: var(--hsl-back);
    color: var(--second-text-4);
    border-radius: 15px;
    font-size: 0.95em;
    font-weight: 500;
}

.char-full-info {
	margin-left: 10px;
}

.swspoilbtn {
	color: #54bd22;
	font-family: Roboto, sans-serif;
	font-weight: 600;
	cursor: pointer;
	margin-top: 10px;
	margin-bottom: 2px;
	transition: margin 150ms ease-out;
	text-decoration: underline #b4ef9767;
	;
}

.swspoil[open] .swspoilbtn~* {
	animation: sweep .5s ease-in-out;
}

@keyframes sweep {
	0% {
		opacity: 0;
		margin-left: -10px
	}

	100% {
		opacity: 1;
		margin-left: 0px
	}
}

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

	.swcardinfo {
		width: 74%;
		padding: 10px;
	}

}

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

	.swbot h2,
	.swcardhead,
	.swspoilbtn {
		text-align: center;
	}

	.char-full-info {
		margin-left: 0px;
	}

	.swabout {
		background-color: var(--clr);
		padding: 15px 25px 15px 25px;
	}

	.swcard {
		background-color: unset;
		padding: 10px;
	}

	.swcardinfo {
		text-align: center;
		margin-bottom: 15px;
	}

	.swcardrow {
		justify-content: center;
	}

	.spoiler-char {
		background-color: unset;
		border: 1px solid #575757;
	}

	.swcardhead {
		margin-bottom: 15px !important;
	}

	.swcard {
		flex-direction: column;
	}

	.swimg {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 10px;
	}

	.swimg img {
		width: 70%;
	}

	.swcardinfo {
		width: 100%;
		padding: 10px;
	}

}


/*---------------FULLSTORY PAGE
*/
.characters-box {
	position: relative;
	height: 400px;
    overflow: hidden;
}

.cvlist {
	overflow: hidden;
    margin: 5px 0 10px 0;
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cvlist .cvitem {
	float: left;
	width: 25%;
}

@media only screen and (max-width: 650px) {
	.cvlist .cvitem {
		width: 50%;
	}
}

.cvlist .cvitem .cvitempad {
	overflow: hidden;
	margin: 5px;
    padding: 10px 10px 5px 10px;
	background: var(--clr);
	border-radius: 15px;
}

.cvlist .cvitem .cvitempad .cvsubitem.cvchar .cvcover {
	float: left;
	margin-right: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cvlist .cvitem .cvitempad .cvsubitem .cvcover img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.cvcover {

}

.cvlist .cvitem .cvitempad .cvsubitem .cvcontent {
	overflow: hidden;
	padding: 5px;
}

.cvlist .cvitem .cvitempad .cvsubitem .cvcontent span,
.cvlist .cvitem .cvitempad .cvsubitem .cvcontent .charname {
	color: var(--main-text);
	display: block;
	font-size: 14px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 600;
}

.cvlist .cvitem .cvitempad .cvsubitem .cvcontent .charname-sub {
    color: var(--second-text-2);
	display: block;
	font-size: 12px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 500;
}

.cvlist .cvitem .cvitempad .cvsubitem .cvcontent .charrole {
	font-size: 12px;
	color: var(--main-text);
}

.characters-overlay {
	position: absolute;
    bottom: 0;
    left: -20px;
	width: 150%;
    height: 45px;
    background: linear-gradient(0deg, var(--commnet-back));
    z-index: 1;
}

.characters-box {
	transition: height 0.5s ease; /* Плавное изменение высоты */
  }


/*------BUTTON MORE
*/

.characters-full {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.characters-full-popup {
    background: var(--clr);
	color: var(--main-text);
    border: none;
    border-radius: 15px;
    display: flex;
    padding: 10px 20px 10px 20px;
    align-items: center;
    cursor: pointer;
}