/*
 * Theme Name: Theme Site
 * Author: Eduard Shpigel
 * Author URI: https://t.me/edshpigel
 */

:root {
	--color-banner: #30B72E;
}

.main-page__banner-2 {
	padding: 30px;
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.main-page__banner-2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background: rgb(0, 0, 0);
	background: -moz-linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
	background: -webkit-linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
	background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.main-page__banner-2>* {
	position: relative;
	z-index: 2;
}

.main-page__banner-2 .banner__logo {
	width: 160px;
	height: auto;
	object-fit: contain;
	border-radius: 0px;
	position: relative !important;
	margin-bottom: 20px;
}

.banner__flex {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	margin-bottom: 30px;
}

.banner-item--title {
	color: #fff;
	font-size: 28px;
	line-height: 1.1;
	font-weight: bold;
}

.banner__bar {
	display: inline-flex;
	align-items: center;
	position: relative;
	margin-right: auto;
}

.banner__bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 30px;
	border: 1px solid var(--color-banner);
}

.banner__bar-badge {
	padding: 10px;
	background: var(--color-banner);
	border-radius: 20px;
	font-size: 10px;
	font-weight: bold;
	color:#fff;
}

.banner__bar-summ {
	color: #fff;
	font-weight: 500;
	font-size: 17px;
	text-align: center;
	margin-left: 10px;
	margin-right: 15px;
}

.banner__info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.banner__info-summ {
	font-size: 32px;
	line-height: 1;
	color: #53f651;
	font-weight: bold;
}

.banner__info-badge {
	color: #fff;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
}

.range-labels {
	margin-top: auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.range-labels span {
	font-size: 12px;
	text-transform: uppercase;
	line-height: 1.2;
	color: #fff;
}


.main-page__banner-range {
	position: relative;
	width: 100%;
	margin-top: 6px;
}

.range-line {
	width: 100%;
	height: 18px;
	background: #fff;
	border-radius: 12px;
	box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.range-fill {
	height: 100%;
	background: #FFE202;
	background: -moz-linear-gradient(-90deg, var(--color-banner) 0%, rgba(0, 0, 0, 0.1) 100%);
	background: -webkit-linear-gradient(-90deg, var(--color-banner) 0%, rgba(0, 0, 0, 0.1) 100%);
	background: linear-gradient(-90deg, var(--color-banner) 0%, rgba(0, 0, 0, 0.1) 100%);
	border-radius: 12px;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
}

.range-box {
	position: absolute;
	top: -25%;
	bottom: 0;
	background: var(--color-banner);
	min-width: 28px;
	height: 28px;
	line-height: 28px;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	border-radius: 50%;
	text-align: center;
	padding: 0 2px;
	margin-left: -14px;
	z-index: 3;
}

.range-info {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 17px;
	font-weight: bold;
	color: #fff;
	margin-top: 6px;
}

.banner__footer {
	margin-top: 20px;
	color:#fff;
}

@media (max-width: 768px) {
	.banner__footer {
		margin-top: 10px;
		display:block;
	}
}

.banner__footer-text {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-style: italic;
}

.banner__footer-desc {
	color: #fff;
	font-size: 14px;
}

.banner__footer-btn {
	margin-top: 20px;
	background: var(--color-banner);
	color: #131320;
	padding: 14px 20px;
	border-radius: 12px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
	position: relative;
}

.banner__footer-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -2%;
	width: 104%;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	transform: rotate(-3deg);
	z-index: -1;
}

.main-page__banner-2 .banner-range {
	max-width: 100%;
}

.main-page__img {
	border-radius: 12px;
	overflow: hidden;
}

@media (max-width:768px) {
	.banner__flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 0px;
	}
}

@media (max-width:576px) {
	.main-page__banner-2 {
		padding: 20px;
		min-height: 340px;
	}

	.main-page__banner-2 .banner__logo {
		width: 140px;
		height: auto;
		object-fit: contain;
	}

	.banner-item--title {
		font-size: 20px;
	}

	.banner__footer-text {
		font-size: 14px;
	}

	.banner__footer-desc {
		font-size: 12px;
	}

	.banner__footer-btn {
		display: none;
	}

	.main-page__banner-2 .banner-range {
		order: inherit;
	}

	.main-page__banner-2 .banner__info {
		margin-bottom: 20px;
	}

	.range-info {
		font-size: 15px;
	}

	.range-labels span {
		font-size: 10px;
	}

	.banner__bar-badge {
		font-size: 12px;
	}

	.banner__bar::after {
		display: none;
	}

	.banner__bar {
		width: 100%;
	}

	.banner__bar-summ {
		flex-grow: 1;
		margin: 0 5px;
	}

	.main-page__banner-2 .banner__info {
		gap: 10px;
	}

	.banner__info-badge {
		font-size: 10px;
	}
	.main-page__banner-2 .banner__logo {
		display:none;
	}
}

.main-page__don-table-more {
	grid-gap: 7px;
}

button.main-page__don-table-more-num {
	margin: 0;
}

button.main-page__don-table-more-num.active+button+button~button:not(.main-page__don-table-more-next) {
	display: none;
}

.main-page__sber-content:has(.js-reqs-textarea-copy) {
	flex-grow: 1
}

.js-reqs-textarea-copy {
	width: 100%;
}

.main-page__sber-item textarea::selection {
	background-color: var(--color-primary);
}

.main-page__sber-item textarea {
	appearance: textfield;
	resize: none;
}

.copyed textarea::selection {
	background-color: 0 0 !important;
}

.js-main-form button,
.header__btn-pay .btn {
	animation: tilt-shaking 1s linear 0s infinite;
}

@keyframes tilt-shaking {
	0% {
		transform: rotate(0deg);
	}

	49.9% {
		transform: rotate(0deg);
	}

	/* До этого момента ничего не происходит */
	50% {
		transform: rotate(0deg);
	}

	/* Начало движения */
	62.5% {
		transform: rotate(3deg);
	}

	75% {
		transform: rotate(0deg);
	}

	87.5% {
		transform: rotate(-3deg);
	}

	100% {
		transform: rotate(0deg);
	}
}

.address-field {}

.load-hidden-kvota {
	min-height: 42px;
	width: 100%;
	display: block !important;
	margin-bottom: 20px;
	box-shadow: none;
	border-radius: 4px;
	border: none;
	padding-right: 15px;
	padding-left: 15px;
	font-weight: 700;
	color: var(--color-white);
	font-size: 14px;
	line-height: 1.2;
	background-color: var(--color-primary);
}

.header__address-new {
	font-size: 14px;
}

.main-page__don-table-group.loading-posts {
	opacity: 0.5;
	cursor: wait;
}

.main-page__don-table-group.loading-posts>* {
	pointer-events: none;
}

.prev-item:has(+.prev-item+.prev-item) {
	display: none;
}

.main-page__steps.tabs-loading {
	display: grid;
}

.main-page__don-table-item-edit {
	position: absolute;
	right: 100%;
}

.gal-swiper-other {
	margin-top: 15px;
}

.gal-swiper-other .main-page__img-wrap {
	padding-top: 100%;
}



@media (max-width: 576px) {
	.main-page__main-heading {
		margin-left: 13px;
	}

	.main-page__main-heading h3 {
		font-size: 16px;
	}

	.main-page__don-table-item-td>span {
		padding: 3px !important;
	}

	.form-button button.btn {
		height: 52px;
	}

	div.main-page__tabs-pay-content .form-tabs-slide .form-flex-pay {
		margin-top: 5px;
	}

	.kvota-tabs-slide div.form-flex-pay__content.fdc.dflex.aifs.jcsb {
		flex-direction: row;
		align-items: center;
	}

	div.modal-form.modal-with-form .form-flex-pay__icon {
		margin-bottom: 0;
	}

	div.form-flex-pay__content {
		padding: 8px;
		padding-right: 20px;
	}

	label.form-flex-pay__label:not(:last-child) {
		margin-bottom: 5px;
	}

	label.form-label:not(:last-child) {
		margin-bottom: 7.5px;
	}

	label.form-label {
		padding: 6px 12px;
	}

	.main-page__don-table-item-td-name {
		width: 40% !important;
		min-width: 40% !important;
		max-width: 40% !important;
	}

	.main-page__don-table-item-td:nth-child(2)>span {
		white-space: nowrap !important;
	}

	.main-page__left .main-page__desc-heading:first-child {
		margin-top: 0;
	}
	.main-page__left .main-page__desc-heading:first-child > * {
		margin-bottom: 0;
		font-size: 12px;
	}
	.main-page__share-flex {
		margin-bottom: 10px;
		display: flex;
		align-items: center;
		gap: 10px;
		justify-content: flex-start;
	}

	.main-page__share-flex .main-page__share-wrap {
		margin: 0 !important;
	}

	.main-page__share-flex .main-page__share {
		margin-bottom: 0 !important;
		gap: 4px;
		flex-wrap: nowrap;
	}


	footer.footer {
		padding-bottom: 0px;
	}

	a.header__logo {
		--logo-width: 88.59px;
	}

	.container {
		padding-left: 25px !important;
		padding-right: 25px !important;
	}

	.header__address-new {
		font-size: 10px;
		margin: 0 5px;
		line-height: 1.1;
		font-weight: 500;
	}

	.gal-swiper-other {
		margin-bottom: 15px;
	}

	.main-page__don-table-item-td-name {
		width: 80%;
		min-width: 80%;
		max-width: 80%;
	}

	.main-page__payment {
		margin-bottom: 0 !important;
	}

	.main-page__left .main-page__desc-heading {
		margin-top: 0;
	}

	.main-page__don-table-item-td:nth-child(3) {
		width: auto !important;
	}

	.main-page__don-table-item-td-date {
		width: 50% !important;
		min-width: 90px;
	}

	div.main-page__need {
		margin-bottom: -10px;
	}

	/* div.main-page__don-table-item-td:nth-child(2) {
		width: 60%;
	}
	div.main-page__don-table-item-td:last-child {
		width: 40%;
	}
	div.main-page__don-table-item-td:nth-child(4) {
		width: auto;
	} */
}

/* div.main-page__don-table-item-td:nth-child(2)>span {
	white-space: normal;
} */

.main-page__don-table-item-td-sum {
	white-space: nowrap;
}