.promo-page-header,
.promo-card {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 1100px;
	margin-right: auto;
	margin-left: auto;
}

.promo-page-title {
	margin: 32px 0 22px;
	color: #292929;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.18;
	text-align: left;
	text-transform: none;
}

.promo-card,
.promo-card * {
	box-sizing: border-box;
}

.promo-card {
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(320px, 1.55fr) minmax(190px, 0.7fr);
	gap: 28px;
	align-items: stretch;
	margin-bottom: 30px;
	padding: 24px;
	border: 1px solid #e7e7e7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(22, 22, 22, 0.09);
}

.promo-card--no-image {
	grid-template-columns: minmax(320px, 1fr) minmax(190px, 0.36fr);
}

.promo-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding-right: 28px;
	border-right: 1px solid #e5e5e5;
}

.promo-card__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 150px;
	margin: 0;
	padding: 0;
	object-fit: contain;
}

.promo-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.promo-card__offer {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 14px;
}

.promo-card__benefit {
	min-width: 0;
}

.promo-card__label {
	display: block;
	margin-bottom: 2px;
	color: #777;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.promo-card__value {
	display: block;
	color: #242424;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.15;
}

.promo-card__verified {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 5px;
	align-items: center;
	padding: 7px 10px;
	border: 1px solid #44ad61;
	border-radius: 7px;
	color: #318a4a;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.promo-card__verified::before {
	content: "✓";
	font-size: 0.9rem;
}

.promo-card__code-wrap {
	display: flex;
	min-width: 0;
	min-height: 58px;
	border: 1px solid #ef777b;
	border-radius: 9px;
	background: #fffafa;
	overflow: hidden;
}

.promo-card__code {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 12px 16px;
	background: transparent;
	color: #d94349;
	font-family: inherit;
	font-size: clamp(1.15rem, 2.2vw, 1.65rem);
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-align: center;
}

.promo-card__copy {
	position: relative;
	display: inline-flex;
	flex: 0 0 58px;
	align-items: center;
	justify-content: center;
	width: 58px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #efb4b6;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
}

.promo-card__copy:hover,
.promo-card__copy:focus-visible {
	background: #fff1f2;
}

.promo-card__copy:focus-visible {
	outline: 3px solid rgba(229, 58, 64, 0.25);
	outline-offset: -3px;
}

.promo-card__copy-icon {
	position: relative;
	display: block;
	width: 18px;
	height: 20px;
	border: 2px solid #555;
	border-radius: 3px;
}

.promo-card__copy-icon::before {
	content: "";
	position: absolute;
	top: -6px;
	left: -7px;
	width: 14px;
	height: 16px;
	border: 2px solid #888;
	border-radius: 3px;
	background: #fff;
}

.promo-card__copy.is-copied .promo-card__copy-icon {
	width: 11px;
	height: 19px;
	border: solid #318a4a;
	border-width: 0 3px 3px 0;
	border-radius: 0;
	transform: rotate(45deg) translate(-2px, -2px);
}

.promo-card__copy.is-copied .promo-card__copy-icon::before {
	display: none;
}

.promo-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding-left: 28px;
	border-left: 1px solid #e5e5e5;
}

.promo-card__action:empty {
	display: none;
}

.promo-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	padding: 13px 20px;
	border-radius: 8px;
	background: #e53a40;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.promo-card__link:hover,
.promo-card__link:focus-visible {
	background: #ca2f35;
	color: #fff !important;
}

.promo-card__link:focus-visible {
	outline: 3px solid rgba(229, 58, 64, 0.25);
	outline-offset: 3px;
}

.promo-card__link--catalog {
	background: #484848;
}

.promo-card__link--catalog:hover,
.promo-card__link--catalog:focus-visible {
	background: #2f2f2f;
}

/* Keep the CSFAIL article screenshot caption below the image. The theme's
 * generic .aligncenter rule sets line-height: 0, which otherwise makes the
 * caption overlap the lower edge of the image. */
.entry-content figure.cs-datagame-screenshot {
	margin: 1.5em auto 2em;
	line-height: 1.5;
}

.entry-content figure.cs-datagame-screenshot img {
	display: block;
	margin: 0 auto;
}

.entry-content figure.cs-datagame-screenshot figcaption {
	display: block;
	margin-top: 0.75em;
	color: #8c8c8c;
	font-size: 0.813em;
	line-height: 1.5;
	text-align: center;
}

.site-mirrors,
.site-mirrors * {
	box-sizing: border-box;
}

.site-mirrors {
	width: calc(100% - 40px);
	max-width: 1100px;
	margin: 0 auto 32px;
	padding: 24px;
	border: 1px solid #dce8df;
	border-radius: 16px;
	background: #f8fcf9;
}

.site-mirrors__eyebrow {
	margin: 0 0 5px;
	color: #51805c;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Keep article subheadings readable without changing their semantic H2 level. */
.entry-content h2.cs-datagame-compact-heading {
	margin-top: 1.5em;
	margin-bottom: 0.75em;
	font-size: 1.625em;
	line-height: 1.25;
}

@media all and (max-width: 37.49em) {
	.entry-content h2.cs-datagame-compact-heading {
		font-size: 1.35em;
		line-height: 1.3;
	}
}

.site-mirrors h2 {
	margin: 0 0 8px;
	color: #242424;
	font-size: clamp(1.35rem, 2.3vw, 1.8rem);
	line-height: 1.2;
}

.site-mirrors__header > p:last-child {
	margin: 0;
	color: #5f6962;
	font-size: 0.95rem;
	line-height: 1.5;
}

.site-mirrors__list {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.site-mirrors__item {
	display: grid;
	grid-template-columns: minmax(145px, 0.5fr) minmax(0, 1.5fr);
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid #e1e7e2;
	border-radius: 10px;
	background: #fff;
}

.site-mirrors__status {
	display: inline-flex;
	width: fit-content;
	padding: 5px 8px;
	border-radius: 999px;
	background: #eef1ef;
	color: #505956;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-mirrors__item--active .site-mirrors__status {
	background: #e4f4e8;
	color: #27813f;
}

.site-mirrors__item--blocked .site-mirrors__status {
	background: #ffe8e8;
	color: #b63838;
}

.site-mirrors__item--access_issue .site-mirrors__status {
	background: #fff1d7;
	color: #98620a;
}

.site-mirrors__address {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: baseline;
	min-width: 0;
	font-size: 1rem;
	font-weight: 700;
}

.site-mirrors__address a {
	color: #177b3a;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-mirrors__address > span:first-child {
	color: #4d5550;
}

.site-mirrors__note {
	color: #68716b;
	font-size: 0.86rem;
	font-weight: 400;
	line-height: 1.35;
}

@media screen and (max-width: 900px) {
	.promo-card {
		grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
		gap: 22px;
	}

	.promo-card--no-image {
		grid-template-columns: minmax(0, 1fr);
	}

	.promo-card__media {
		padding-right: 22px;
	}

	.promo-card__action {
		grid-column: 1 / -1;
		padding: 20px 0 0;
		border-top: 1px solid #e5e5e5;
		border-left: 0;
	}

	.promo-card__link {
		width: 100%;
	}
}

@media screen and (max-width: 620px) {
	.promo-page-header,
	.promo-card,
	.site-mirrors {
		width: calc(100% - 24px);
	}

	.promo-page-title {
		margin: 24px 0 18px;
		font-size: clamp(1.45rem, 7vw, 1.9rem);
		line-height: 1.22;
	}

	.promo-card,
	.promo-card--no-image {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 18px;
		border-radius: 13px;
	}

	.promo-card__media {
		padding: 0 0 18px;
		border-right: 0;
		border-bottom: 1px solid #e5e5e5;
	}

	.promo-card__logo {
		max-width: 100%;
		max-height: 130px;
	}

	.promo-card__offer {
		align-items: flex-start;
	}

	.promo-card__verified {
		padding: 6px 8px;
		font-size: 0.72rem;
	}

	.promo-card__action {
		grid-column: auto;
	}

	.site-mirrors {
		padding: 18px;
		border-radius: 13px;
	}

	.site-mirrors__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding: 13px;
	}
}

@media screen and (max-width: 390px) {
	.promo-card__offer {
		flex-direction: column;
		gap: 10px;
	}

	.promo-card__code {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 1.05rem;
	}
}
