/**
 * Партнёрская страница (/referral).
 * Тема публичного сайта: белые карточки, синий акцент #0179cd.
 */

.earn-page {
	gap: 0;
	padding-bottom: 0;
	font-family: Arial, Helvetica, sans-serif;
}

.earn-page h1,
.earn-page h2,
.earn-page h3,
.earn-page strong,
.earn-page .home-kicker,
.earn-page .earn-steps__label,
.earn-page .earn-text__label {
	font-family: "Roboto Condensed", Arial, sans-serif;
}

/* Отступы секций — как на /services: .wl-section { padding: 75px 0 } */
body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-page .home-section {
	margin: 0;
	padding: 75px 0;
}

/* Герой */
.earn-hero {
	text-align: center;
}

.earn-hero h1 {
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	line-height: 1.2;
	margin: 8px 0 14px;
	color: var(--earn-text, #12151c);
}

.earn-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 6px 0 14px;
}

.earn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.earn-chips li {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid #dfe6ee;
	background: #f4f7fa;
	color: #3d4757;
	font-size: 14px;
}

.earn-hero-benefits {
	margin-top: 18px;
	text-align: left;
}

/* Карточки преимуществ (используются только на этой странице) */
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.benefit-card {
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	padding: 18px;
}

.benefit-card__title {
	margin: 0 0 8px;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 1.1rem;
	color: #12151c;
}

.benefit-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #5a6472;
}

/* Схема «три шага» */
.earn-scheme .earn-scheme__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 0 10px;
	border-radius: 50%;
	background: #0179cd;
	color: #fff;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
}

/* Четыре шага */
.earn-how {
	/* Место под иконки, которые вынесены за верх карточек. */
	padding-top: 141px;
}

.earn-how .home-section-head .home-section-lead,
body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-how .home-section-lead {
	margin-bottom: 72px;
}

.earn-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: earnstep;
}

.earn-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 20px 22px 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid transparent;
	border-radius: 18px;
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(135deg, #ffb36b 0%, #d97cff 45%, #8d72bd 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: box-shadow .35s ease, transform .35s ease;
    box-shadow: 0 10px 20px -20px #606161;
}

.earn-steps__item:hover {
	box-shadow: 0 35px 35px -38px #606161;
    transform: translateY(-4px);
}

.earn-steps__icon {
	position: absolute;
	top: -58px;
	left: 50%;
	width: 116px;
	height: 116px;
	transform: translateX(-50%);
	object-fit: contain;
	filter: drop-shadow(0 10px 16px rgba(80, 50, 130, 0.22));
}

.earn-steps__num {
	margin: 56px 0 8px;
	padding: 0;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	background: linear-gradient(120deg, #ff9a6c 0%, #d97cff 55%, #8d72bd 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.earn-steps__label {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.25;
	color: #241b2d;
	font-family: "Montserrat", Arial, sans-serif;
}

.earn-steps__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b4356;
}

/* Готовые тексты */
.earn-texts {
	display: grid;
	gap: 12px;
	max-width: 720px;
	margin: 0 auto;
}

.earn-text {
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	padding: 14px 16px;
}

.earn-text__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.earn-text__label {
	margin: 0;
	font-weight: 700;
	color: #12151c;
	font-family: "Roboto Condensed", Arial, sans-serif;
}

.earn-text__copy {
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #dfe6ee;
	background: #fff;
	color: #0179cd;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.earn-text__copy:hover,
.earn-text__copy.is-done {
	border-color: #0179cd;
	background: #e6f3fb;
}

.earn-text__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #3d4757;
	word-break: break-word;
}

/* Правила и FAQ */
.earn-rules,
.earn-faq {
	max-width: 100%;
	margin: 0 auto;
}

.earn-rules {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.earn-rules li {
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 16px;
	line-height: 1.5rem;
	color: #3d4757;
	box-shadow: 0 10px 20px -20px #606161;
}

.earn-rules li strong {
	color: #12151c;
	font-family: "Roboto Condensed", Arial, sans-serif;
	font-weight: 700;
}

.earn-faq {
	display: block;
	max-width: 900px;
	border-top: 1px solid #dbe7f0;
}

.earn-faq__item {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #dbe7f0;
	border-radius: 0;
	padding: 0;
	overflow: visible;
}

.earn-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 4px;
	color: #12212c;
	cursor: pointer;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}

.earn-faq__q::-webkit-details-marker {
	display: none;
}

.earn-faq__q::marker {
	content: "";
}

.earn-faq__q::after {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid #0179cd;
	border-radius: 50%;
	color: #0179cd;
	content: "+";
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.earn-faq__item[open] .earn-faq__q::after {
	background: #015fa3;
	color: #fff;
	content: "−";
}

.earn-faq__a {
	padding: 0 64px 26px 4px;
	font-size: 15px;
	line-height: 1.7;
	color: #5b6b78;
}

.earn-faq__a p {
	max-width: 800px;
	margin: 0;
}

.earn-bottom {
	text-align: center;
}

/* Преимущества в hero — оформление как у .earn-how */
.earn-hero-benefits {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 72px;
}

.earn-hero-benefits__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 26px 22px 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid transparent;
	border-radius: 18px;
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(135deg, #ffb36b 0%, #d97cff 45%, #8d72bd 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: box-shadow .35s ease, transform .35s ease;
    box-shadow: 0 10px 20px -20px #606161;
}

.earn-hero-benefits__card:hover {
	box-shadow: 0 35px 35px -38px #606161;
    transform: translateY(-4px);
}

.earn-hero-benefits__card .benefit-card__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.25;
	color: #241b2d;
}

.earn-hero-benefits__card .benefit-card__text {
	color: #4b4356;
}

/* Схема «три шага» — оформление как у .earn-how */
.earn-scheme-section {
	padding-top: 141px;
}

.earn-scheme-section .home-section-head .home-section-lead,
body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-scheme-section .home-section-lead {
	margin-bottom: 72px;
}

.earn-scheme--cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.earn-scheme__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 20px 22px 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid transparent;
	border-radius: 18px;
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(135deg, #ffb36b 0%, #d97cff 45%, #8d72bd 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: box-shadow .35s ease, transform .35s ease;
    box-shadow: 0 10px 20px -20px #606161;
}

.earn-scheme__card:hover {
	box-shadow: 0 35px 35px -38px #606161;
    transform: translateY(-4px);
}

.earn-scheme__icon {
	position: absolute;
	top: -58px;
	left: 50%;
	width: 116px;
	height: 116px;
	transform: translateX(-50%);
	object-fit: contain;
	filter: drop-shadow(0 10px 16px rgba(80, 50, 130, 0.22));
}

.earn-scheme__card .earn-steps__num {
	margin: 56px 0 8px;
}

.earn-scheme__card .benefit-card__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.25;
	color: #241b2d;
}

.earn-scheme__card .benefit-card__text {
	color: #4b4356;
}

/* Способы использования дохода — оформление как у .earn-how */
.earn-money-section {
	padding-top: 141px;
}

.earn-money-section .home-section-head .home-section-lead,
body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-money-section .home-section-lead {
	margin-bottom: 72px;
}

.earn-money {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.earn-money__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
	padding: 20px 22px 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid transparent;
	border-radius: 18px;
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(135deg, #ffb36b 0%, #d97cff 45%, #8d72bd 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: box-shadow .35s ease, transform .35s ease;
    box-shadow: 0 10px 20px -20px #606161;
}

.earn-money__card:hover {
	box-shadow: 0 35px 35px -38px #606161;
    transform: translateY(-4px);
}

.earn-money__icon {
	position: absolute;
	top: -58px;
	left: 50%;
	width: 116px;
	height: 116px;
	transform: translateX(-50%);
	object-fit: contain;
	filter: drop-shadow(0 10px 16px rgba(80, 50, 130, 0.22));
}

.earn-money__card .earn-steps__num {
	margin: 56px 0 8px;
}

.earn-money__card .benefit-card__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.25;
	color: #241b2d;
}

.earn-money__card .benefit-card__text {
	color: #4b4356;
}

/* Мобильная версия */
@media (max-width: 1080px) {
	.earn-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 46px 18px;
	}

	.earn-hero-benefits,
	.earn-scheme--cards,
	.earn-money {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 46px 18px;
	}
}

@media (max-width: 760px) {
	.benefits-grid {
		grid-template-columns: 1fr;
	}

	body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-page .home-section {
		padding: 56px 0;
	}

	.earn-how {
		padding-top: 129px;
	}

	.earn-money-section {
		padding-top: 129px;
	}

	.earn-scheme-section {
		padding-top: 129px;
	}

	.earn-how .home-section-head .home-section-lead,
	body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-how .home-section-lead,
	.earn-money-section .home-section-head .home-section-lead,
	body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-money-section .home-section-lead,
	.earn-scheme-section .home-section-head .home-section-lead,
	body.gallery-body:is(:not(.studio-body), .studio-gen-skin) .earn-scheme-section .home-section-lead {
		margin-bottom: 58px;
	}

	.earn-money {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.earn-scheme--cards {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.earn-hero-benefits {
		grid-template-columns: 1fr;
		gap: 44px;
		margin-top: 58px;
	}

	.earn-steps {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.earn-steps__item {
		padding: 18px 18px 22px;
	}
}
