/**
 * VersaillesCasino front bundle — base + main-content + page-content + header.
 * Edit the source files, then regenerate this bundle.
 */

/* ===== base (base.css) ===== */
/**
 * VersaillesCasino — base only.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	line-height: 1.15;
}

body {
	background: var(--body-bg, #030125);
	color: var(--container-text-color, #ffffff);
	font-family: var(--site-font, "Inter", "Open Sans", sans-serif);
	margin: 0;
	padding: 0;
}

body.admin-bar .header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .header {
		top: 46px;
	}
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	padding: 0;
}

.flex {
	display: flex;
}

.container {
	margin: 0 auto;
	max-width: 1470px;
	padding: 0 30px;
	width: 100%;
}

main {
	display: block;
}

body.no-scroll {
	overflow: hidden;
}

/* ===== main-content (main-content.css) ===== */
/**
 * VersaillesCasino — .main-content (from Customizer / Figma)
 */

.main-content {
	--main-content-bg: #050e2c;
	--main-content-text: #ffffff;
	--main-content-border: rgba(255, 255, 255, 0.4);
	--main-content-font: var(--site-font, "Inter", "Open Sans", sans-serif);
	--main-content-text-beside-img: 698px;
	--main-content-text-max: 934px;

	background: var(--main-content-bg);
	box-sizing: border-box;
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	line-height: 1;
	padding: 45px 85px;
}

.main-content > .container {
	max-width: 1300px;
	padding-left: 0;
	padding-right: 0;
}

.main-content > .container::after {
	clear: both;
	content: "";
	display: table;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 20px;
	max-width: var(--main-content-text-max);
}

.main-content h1 {
	font-size: 46px;
}

.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
	font-size: 40px;
	font-weight: 700;
	line-height: 40px;
}

.main-content p {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 30px;
	margin: 0 0 28px;
	max-width: var(--main-content-text-max);
}

.main-content p.full-width {
	max-width: 100%;
}

/* Text beside floated content images (desktop only — see ≤768 reset).
   max(…%) keeps max-width from collapsing to 0 when 100% < 602px. */
.main-content__img.alignright + p,
.main-content__img.alignright + p + p,
.main-content__img.alignright + p.full-width,
.main-content__img.alignright + p.full-width + p,
.main-content__img.alignright + h2,
.main-content__img.alignright + h2 + p,
.main-content h2 + .main-content__img.alignright + p,
.main-content h2 + .main-content__img.alignright + p + p,
.main-content__img--2.alignright + p,
.main-content__img--2.alignright + p + p,
.main-content img.main-content__img--2.alignright + p,
.main-content img.main-content__img--2.alignright + p + p,
.main-content__img--country-2.alignright + p,
.main-content__img--country-2.alignright + p + p,
.main-content img.main-content__img--country-2.alignright + p,
.main-content img.main-content__img--country-2.alignright + p + p,
.main-content__img.alignright + .content-list,
.main-content__img.alignright + p + .content-list,
.main-content__img--2.alignright + .content-list,
.main-content__img--2.alignright + p + .content-list,
.main-content img.main-content__img--2.alignright + p + .content-list {
	clear: none;
	max-width: min(var(--main-content-text-beside-img), max(50%, calc(100% - 602px)));
}

.main-content__img--2.main-content__img--app-2.alignright + p,
.main-content img.main-content__img--2.main-content__img--app-2.alignright + p {
	clear: none;
	max-width: 100%;
	width: 100%;
}

.main-content p:last-of-type {
	margin-bottom: 0;
}

.main-content a:not(.main-content__btn):not(.filter__item):not(.slots__item) {
	color: #faff03;
	text-decoration: underline;
}

.main-content .filter a,
.main-content .slots a.slots__item {
	color: inherit;
	text-decoration: none;
}

.main-content ul:not(.content-list),
.main-content ol {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0 0 28px;
	max-width: var(--main-content-text-max);
	padding-left: 22px;
}

.main-content li:not(.content-list__item) {
	font-family: var(--main-content-font);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin-bottom: 8px;
}

.main-content__img,
.main-content img.alignright,
.main-content .alignright {
	border-radius: 8px;
	display: block;
	float: right;
	height: 300px;
	margin: 0 0 24px 62px;
	max-width: calc(100% - 62px);
	object-fit: contain;
	width: 540px;
}

/* Do not clear content-list under floated phone/images — that leaves a huge
   gap when the paragraph above the list is short. Tables still clear. */
.main-content .content-list + p {
	clear: both;
}

/* Content image 2 — phone mock 181×352 (+20% from 151×293); stays right (index / country). */
.main-content__img--2,
.main-content img.main-content__img--2.alignright {
	border-radius: 8px;
	height: 352px;
	object-fit: contain;
	width: 181px;
}

/* Country_2 — same float wrap as main content image (540×300). */
.main-content__img--country-2,
.main-content img.main-content__img--country-2.alignright {
	float: right;
	height: 300px;
	margin: 0 0 24px 62px;
	max-width: calc(100% - 62px);
	object-fit: contain;
	width: 540px;
}

/* App page only — image left, text wraps. */
.main-content__img--app-2,
.main-content img.main-content__img--app-2.alignright {
	float: left;
	margin-left: 0;
	margin-right: 62px;
}

.main-content__table {
	clear: both;
	margin: 62px auto 20px;
	max-width: 1300px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.main-content table {
	border: 1px solid var(--table-border, rgba(255, 255, 255, 0.4));
	border-collapse: collapse;
	box-sizing: border-box;
	display: table;
	width: 100%;
}

.main-content th,
.main-content td {
	border: 1px solid var(--table-border, rgba(255, 255, 255, 0.4));
	box-sizing: border-box;
	color: var(--table-text, #ffffff);
	font-family: var(--main-content-font);
	letter-spacing: 0;
	line-height: 1;
	padding: 14px 16px;
	text-align: left;
	vertical-align: middle;
}

.main-content th {
	font-size: 16px;
	font-weight: 700;
}

.main-content td {
	font-size: 14px;
	font-weight: 600;
}

/* Variant 1 — solid: #006AC7 head / #30416B body, centered */
.main-content__table--table-1 table,
body.table-skin-table-1 .main-content__table table {
	background: var(--table-body-bg, #30416b);
	border: 1px solid var(--table-border, #ffffff);
	border-collapse: separate;
	border-radius: 8px;
	border-spacing: 0;
	overflow: hidden;
}

.main-content__table--table-1 th,
.main-content__table--table-1 td,
body.table-skin-table-1 .main-content__table th,
body.table-skin-table-1 .main-content__table td {
	border-bottom: 1px solid var(--table-border, #ffffff);
	border-left: 0;
	border-right: 1px solid var(--table-border, #ffffff);
	border-top: 0;
	padding: 0 8px;
	text-align: center;
}

.main-content__table--table-1 th:last-child,
.main-content__table--table-1 td:last-child,
body.table-skin-table-1 .main-content__table th:last-child,
body.table-skin-table-1 .main-content__table td:last-child {
	border-right: 0;
}

.main-content__table--table-1 tbody tr:last-child td,
body.table-skin-table-1 .main-content__table tbody tr:last-child td {
	border-bottom: 0;
}

.main-content__table--table-1 th,
body.table-skin-table-1 .main-content__table th {
	background: var(--table-header-bg, #006ac7);
	font-size: 16px;
	font-weight: 700;
	height: 49px;
	line-height: 16px;
	text-transform: capitalize;
}

.main-content__table--table-1 thead th:first-child,
body.table-skin-table-1 .main-content__table thead th:first-child {
	border-top-left-radius: 11px;
}

.main-content__table--table-1 thead th:last-child,
body.table-skin-table-1 .main-content__table thead th:last-child {
	border-top-right-radius: 11px;
}

.main-content__table--table-1 tbody tr:last-child td:first-child,
body.table-skin-table-1 .main-content__table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}

.main-content__table--table-1 tbody tr:last-child td:last-child,
body.table-skin-table-1 .main-content__table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}

.main-content__table--table-1 td,
body.table-skin-table-1 .main-content__table td {
	background: var(--table-body-bg, #30416b);
	font-size: 14px;
	font-weight: 600;
	height: 42px;
	line-height: 13px;
}

/* Variant 2 — outline: transparent fill, left-aligned */
.main-content__table--table-2 table,
body.table-skin-table-2 .main-content__table table {
	background: transparent;
	border: 1px solid var(--table-border, #ffffff);
	border-collapse: separate;
	border-radius: 8px;
	border-spacing: 0;
	overflow: hidden;
}

.main-content__table--table-2 th,
.main-content__table--table-2 td,
body.table-skin-table-2 .main-content__table th,
body.table-skin-table-2 .main-content__table td {
	background: transparent;
	border-bottom: 1px solid var(--table-border, #ffffff);
	border-left: 0;
	border-right: 1px solid var(--table-border, #ffffff);
	border-top: 0;
	padding: 14px 16px;
	text-align: left;
}

.main-content__table--table-2 th:last-child,
.main-content__table--table-2 td:last-child,
body.table-skin-table-2 .main-content__table th:last-child,
body.table-skin-table-2 .main-content__table td:last-child {
	border-right: 0;
}

.main-content__table--table-2 tbody tr:last-child td,
body.table-skin-table-2 .main-content__table tbody tr:last-child td {
	border-bottom: 0;
}

.main-content__table--table-2 thead th:first-child,
body.table-skin-table-2 .main-content__table thead th:first-child {
	border-top-left-radius: 8px;
}

.main-content__table--table-2 thead th:last-child,
body.table-skin-table-2 .main-content__table thead th:last-child {
	border-top-right-radius: 8px;
}

.main-content__table--table-2 tbody tr:last-child td:first-child,
body.table-skin-table-2 .main-content__table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}

.main-content__table--table-2 tbody tr:last-child td:last-child,
body.table-skin-table-2 .main-content__table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}

.main-content__table--table-2 th,
body.table-skin-table-2 .main-content__table th {
	font-size: 16px;
	font-weight: 700;
}

.main-content__table--table-2 td,
body.table-skin-table-2 .main-content__table td {
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.main-content {
		padding: 40px 24px;
	}

	.main-content__img,
	.main-content img.alignright,
	.main-content .alignright {
		height: auto;
		max-width: 42%;
		width: 420px;
	}

	.main-content__img--2,
	.main-content img.main-content__img--2.alignright {
		height: auto;
		max-width: 181px;
		width: 181px;
	}
}

@media (max-width: 768px) {
	.main-content > .container {
		max-width: none;
	}

	.main-content {
		--main-content-text-max: 100%;
		padding: 24px 16px 10px;
	}

	.main-content ~ .main-content {
		padding-bottom: 30px;
	}

	.main-content h1 {
		font-size: 30px;
	}

	.main-content h2,
	.main-content h3,
	.main-content h4,
	.main-content h5,
	.main-content h6 {
		font-size: 25px;
		line-height: 100%;
		margin-bottom: 16px;
	}

	.main-content p {
		font-size: 14px;
		font-weight: 400;
		line-height: 15px;
		margin-bottom: 15px;
	}

	.main-content li {
		font-size: 12px;
		font-weight: 400;
		line-height: 15px;
		margin-bottom: 15px;
	}

	.main-content__img,
	.main-content img.alignright,
	.main-content .alignright {
		display: block;
		float: none;
		height: auto;
		margin: 0 auto 15px;
		max-width: 100%;
		width: 100%;
	}

	.main-content__img--2,
	.main-content img.main-content__img--2.alignright {
		display: block;
		float: none;
		height: auto;
		margin: 15px auto 12px;
		max-width: 181px;
		width: 181px;
	}

	.main-content__img--country-2,
	.main-content img.main-content__img--country-2.alignright {
		display: block;
		float: none;
		height: auto;
		margin: 0 auto 15px;
		max-width: 100%;
		width: 100%;
	}

	.main-content__img--app-2,
	.main-content img.main-content__img--app-2.alignright {
		display: block;
		float: none;
		margin: 15px auto 12px;
	}

	/* Float off on mobile — do not keep desktop beside-img max-width (was 0px). */
	.main-content__img.alignright + p,
	.main-content__img.alignright + p + p,
	.main-content__img.alignright + p.full-width,
	.main-content__img.alignright + p.full-width + p,
	.main-content__img.alignright + h2,
	.main-content__img.alignright + h2 + p,
	.main-content h2 + .main-content__img.alignright + p,
	.main-content h2 + .main-content__img.alignright + p + p,
	.main-content__img--2.alignright + p,
	.main-content__img--2.alignright + p + p,
	.main-content img.main-content__img--2.alignright + p,
	.main-content img.main-content__img--2.alignright + p + p,
	.main-content__img--country-2.alignright + p,
	.main-content__img--country-2.alignright + p + p,
	.main-content img.main-content__img--country-2.alignright + p,
	.main-content img.main-content__img--country-2.alignright + p + p,
	.main-content__img--2.main-content__img--app-2.alignright + p,
	.main-content img.main-content__img--2.main-content__img--app-2.alignright + p,
	.main-content__img.alignright + .content-list,
	.main-content__img.alignright + p + .content-list,
	.main-content__img--2.alignright + .content-list,
	.main-content__img--2.alignright + p + .content-list,
	.main-content img.main-content__img--2.alignright + p + .content-list {
		clear: none;
		max-width: 100%;
		width: auto;
	}

	.main-content__table {
		margin-bottom: 20px;
		margin-top: 24px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main-content table {
		min-width: 600px;
		width: 100%;
	}
}

/* ===== page-content (page-content.css) ===== */
/**
 * VersaillesCasino — legal / plain content pages (.main-text, .text_container).
 */

.main-text,
.text_container {
	box-sizing: border-box;
	color: var(--container-text-color, #ffffff);
	font-family: var(--site-font, "Inter", "Open Sans", sans-serif);
	margin: 0 auto;
	max-width: 1470px;
	padding: 40px 30px 60px;
	width: 100%;
}

.main-text > *:first-child,
.text_container > *:first-child {
	margin-top: 0;
}

.main-text > *:last-child,
.text_container > *:last-child {
	margin-bottom: 0;
}

.main-text h1,
.main-text h2,
.main-text h3,
.main-text h4,
.main-text h5,
.main-text h6,
.text_container h1,
.text_container h2,
.text_container h3,
.text_container h4,
.text_container h5,
.text_container h6 {
	color: inherit;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.75em;
}

.main-text p,
.text_container p {
	color: inherit;
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 1em;
}

.main-text a,
.text_container a {
	color: inherit;
	text-decoration: underline;
}

.main-text strong,
.text_container strong {
	font-weight: 700;
}

/* Restore lists (base.css resets ul globally) */
.main-text ul,
.text_container ul {
	list-style: disc;
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.main-text ol,
.text_container ol {
	list-style: decimal;
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.main-text li,
.text_container li {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 0.4em;
	padding: 0;
}

.main-text li:last-child,
.text_container li:last-child {
	margin-bottom: 0;
}

.site-main--content {
	display: block;
	width: 100%;
}

@media (max-width: 768px) {
	.main-text,
	.text_container {
		padding: 24px 16px 40px;
	}
}

/* ===== header (header.css) ===== */
/**
 * VersaillesCasino — header variants (header-1 / header-2 / header-3).
 *
 * header-1: menu + app | logo center | help + CTAs + lang
 * header-2: actions left, menu + logo right (mirror).
 * header-3: logo + menu left, actions right.
 */

.header {
	--header-bg: linear-gradient(180deg, #420a3c 0%, #030125 100%);
	--header-yellow: #faff03;
	--header-yellow-hover: #ffff4d;
	--header-text: #ffffff;
	--header-muted: #1a102c;
	--header-btn-text: #030025;
	--header-font: var(--site-font, "Inter", "Open Sans", sans-serif);

	--header-menu-link: var(--header-text);
	--header-menu-link-hover: var(--header-yellow);
	--header-login-bg: transparent;
	--header-login-bg-hover: var(--header-yellow);
	--header-login-border: var(--header-yellow);
	--header-login-border-hover: var(--header-yellow);
	--header-login-text: var(--header-yellow);
	--header-login-text-hover: var(--header-btn-text);
	--header-register-bg: var(--header-yellow);
	--header-register-bg-hover: var(--header-yellow-hover);
	--header-register-border: var(--header-yellow);
	--header-register-border-hover: var(--header-yellow-hover);
	--header-register-text: var(--header-btn-text);
	--header-register-text-hover: var(--header-btn-text);
	--header-lang-bg: var(--header-muted);
	--header-lang-text: var(--header-text);
	--header-lang-text-hover: var(--header-yellow);
	--header-accent: var(--header-yellow);
	--header-accent-hover: var(--header-yellow-hover);

	background: var(--header-bg);
	height: 108px;
	position: relative;
	width: 100%;
	z-index: 1000;
}

.header__top {
	align-items: center;
	display: flex;
	height: 108px;
	justify-content: space-between;
	padding: 22px 20px;
	width: 100%;
}

.header__top.container {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1470px;
	padding-left: 20px;
	padding-right: 20px;
	width: 100%;
}

.header__left,
.header__right,
.header__center {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
}

.header__brand {
	gap: 85px;
	justify-content: flex-start;
}

.header__actions {
	gap: 20px;
}

/* —— header-1: centered logo —— */
.header-1 .header__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
}

.header-1 .header__left {
	gap: 50px;
	justify-self: start;
	min-width: 0;
}

.header-1 .header__center {
	justify-self: center;
}

.header-1 .header__right {
	justify-content: flex-end;
	justify-self: end;
	min-width: 0;
}

.header-1 .header__left .header-ui__app {
	align-items: center;
	border: 3px solid var(--header-accent);
	border-radius: 24px;
	color: var(--header-accent);
	display: inline-flex;
	flex-shrink: 0;
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
	height: 48px;
	line-height: 16.8px;
	padding: 0 16px 0 21px;
	width: 142px;
}

.header-1 .header__left .header-ui__app:hover {
	border-color: var(--header-accent-hover);
	color: var(--header-accent-hover);
}

.header-1 .header__actions .lang-block-wrapper,
.header-1 .header__actions .lang-toggle-block {
	min-width: 142px;
	width: auto;
}

.header-1 .header__actions .lang-toggle-block__item.current-lang {
	padding-right: 18px;
}

.header__top .logo {
	flex: 0 0 auto;
	line-height: 0;
}

.header__top .logo img {
	height: 64px;
	width: 165px;
}

.header-menu-main {
	flex: 0 0 auto;
}

.header-menu-main .menu-top-container {
	overflow: visible;
}

.header-menu-main ul.top {
	display: flex;
	gap: 30px;
}

.header-menu-main ul.top li {
	margin: 0;
	padding: 0;
}

.header-menu-main ul.top a,
.header-menu-main ul.top span {
	align-items: center;
	color: var(--header-menu-link);
	display: inline-flex;
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	gap: 6px;
	line-height: 20px;
	white-space: nowrap;
}

.header-menu-main ul.top a:hover,
.header-menu-main ul.top span:hover {
	color: var(--header-menu-link-hover);
}

.header-ui__menu-app-icon {
	display: inline-flex;
	flex-shrink: 0;
	height: 20px;
	line-height: 0;
	width: 20px;
}

.header-ui__menu-app-icon svg {
	display: block;
	height: 20px;
	width: 20px;
}

.header-menu-main .dd-menu {
	flex: 0 0 auto;
	height: 20px;
	position: relative;
	width: 18px;
}

.header-menu-main .dd-menu-btn {
	display: block;
	height: 20px;
	position: relative;
	width: 18px;
}

.header-menu-main .dd-menu-btn::before {
	display: none;
}

.header-menu-main .dd-menu-btn::after {
	color: var(--header-text);
	content: "...";
	font-family: var(--header-font);
	font-size: 20px;
	font-weight: 700;
	left: 0;
	letter-spacing: 0.05em;
	line-height: 20px;
	position: absolute;
	top: -5px;
}

.header-menu-main .dd-menu-list {
	display: none;
}

.header__actions .lang-toggle-block,
.header__actions .header__top_buttons .btn,
.header__actions .header-ui__app {
	border-radius: 24px;
	flex-shrink: 0;
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	height: 48px;
	line-height: 16.8px;
	width: 142px;
}

.header__actions .for_langs {
	flex-shrink: 0;
}

.header__actions .lang-block-wrapper {
	width: 142px;
}

.header__actions .lang-toggle-block {
	background: var(--header-lang-bg);
	overflow: hidden;
}

.header__actions .lang-toggle-block__item.current-lang {
	align-items: center;
	color: var(--header-lang-text);
	display: flex;
	gap: 8px;
	height: 48px;
	padding: 0 15px;
	width: 100%;
}

.header__actions .lang-toggle-block__item.current-lang:hover {
	color: var(--header-lang-text-hover);
}

.header-ui__lang-flag {
	border-radius: 50%;
	flex-shrink: 0;
	height: 24px;
	line-height: 0;
	overflow: hidden;
	width: 24px;
}

.header-ui__lang-flag svg {
	border-radius: 50%;
	display: block;
	height: 24px;
	width: 24px;
}

.header-ui__lang-code {
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 16.8px;
	text-transform: uppercase;
}

.header-ui__lang-chevron {
	display: inline-flex;
	flex-shrink: 0;
	height: 7px;
	line-height: 0;
	margin-left: auto;
	width: 12px;
}

.header-ui__lang-chevron svg {
	display: block;
	height: 7px;
	width: 12px;
}

.header__actions .header__top_buttons {
	display: flex;
	flex-shrink: 0;
	margin: 0;
}

.header__actions .header__top_buttons .btn {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.header__actions .header__top_buttons .btn.header-reg {
	background: var(--header-register-bg);
	border: 1px solid var(--header-register-border);
	color: var(--header-register-text);
}

.header__actions .header__top_buttons .btn.header-reg:hover {
	background: var(--header-register-bg-hover);
	border-color: var(--header-register-border-hover);
	color: var(--header-register-text-hover);
}

.header__actions .header__top_buttons .btn.header-anm {
	background: var(--header-login-bg);
	border: 1px solid var(--header-login-border);
	color: var(--header-login-text);
}

.header__actions .header__top_buttons .btn.header-anm:hover {
	background: var(--header-login-bg-hover);
	border-color: var(--header-login-border-hover);
	color: var(--header-login-text-hover);
}

.header__actions > .header-ui__help {
	align-items: center;
	color: var(--header-accent);
	display: inline-flex;
	flex-shrink: 0;
	gap: 8px;
	height: 24px;
	max-width: 130px;
}

.header-3 .header__actions > .header-ui__help {
	margin-left: 6px;
}

.header-2 .header__actions > .header-ui__help {
	margin-right: 6px;
}

.header__actions > .header-ui__help:hover {
	color: var(--header-accent-hover);
}

.header-ui__help-icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.header-ui__help-icon svg {
	display: block;
	height: 24px;
	width: 24px;
}

.header-ui__help-text {
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	white-space: nowrap;
}

.header__actions .header-ui__app {
	align-items: center;
	border: 3px solid var(--header-accent);
	color: var(--header-accent);
	display: inline-flex;
	gap: 10px;
	padding: 0 16px 0 21px;
}

.header__actions .header-ui__app:hover {
	border-color: var(--header-accent-hover);
	color: var(--header-accent-hover);
}

.header-ui__app-icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.header-ui__app-icon svg {
	display: block;
	height: 20px;
	width: 14px;
}

.header-ui__app-text {
	font-family: var(--header-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 16.8px;
	max-width: 4.8em;
	white-space: normal;
}

.header__top .mobile_menu_icon {
	display: none;
}

.header-menu-left {
	display: none;
}

/* —— Wide desktop: Figma gap between actions and brand —— */
@media (min-width: 1600px) {
	.header-2 .header__top,
	.header-3 .header__top {
		gap: 107px;
	}
}

/* —— Large tablet / small desktop: drop secondary CTAs, tighten gaps —— */
@media (max-width: 1440px) {
	.header__actions > .header-ui__help--desktop,
	.header__actions > .header-ui__app--desktop,
	.header-1 .header__left > .header-ui__app--desktop {
		display: none;
	}

	.header__top,
	.header__top.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.header__brand {
		gap: 48px;
	}

	.header-1 .header__left {
		gap: 24px;
	}

	.header-menu-main ul.top {
		gap: 20px;
	}

	.header__actions {
		gap: 12px;
	}

	.header-3 .header__actions > .header-ui__help,
	.header-2 .header__actions > .header-ui__help {
		margin-left: 0;
		margin-right: 0;
	}
}

/* —— Tablet: compact desktop bar —— */
@media (max-width: 1280px) {
	.header__brand {
		gap: 28px;
	}

	.header-menu-main ul.top {
		gap: 14px;
	}

	.header__actions .lang-block-wrapper,
	.header__actions .lang-toggle-block {
		width: 120px;
	}

	.header__actions .lang-toggle-block {
		height: 42px;
		line-height: 1;
	}

	.header__actions .lang-toggle-block__item.current-lang {
		height: 42px;
		padding: 0 12px;
	}
}

/* —— Tablet & mobile: logo + CTAs + burger —— */
@media (max-width: 1100px) {
	.header {
		height: 57px;
	}

	.header__top,
	.header__top.container {
		height: 57px;
		max-width: none;
		padding: 13px 12px 13px 13px;
		width: 100%;
	}

	.header__brand {
		flex: 0 0 auto;
		gap: 0;
	}

	.header-1 .header__top {
		display: flex;
		justify-content: space-between;
	}

	.header-1 .header__left {
		display: none;
	}

	.header-1 .header__center {
		flex: 0 0 auto;
	}

	.header-1 .header__right {
		flex: 1 1 auto;
		justify-content: flex-end;
	}

	.header-menu-main {
		display: none;
	}

	.header__top .logo img {
		height: 31px;
		width: 100px;
	}

	.header__actions {
		flex: 1 1 auto;
		gap: 10px;
		min-width: 0;
	}

	.header-3 .header__actions {
		justify-content: flex-end;
	}

	.header-2 .header__actions {
		justify-content: flex-start;
	}

	.header-1 .header__actions {
		justify-content: flex-end;
	}

	.header__actions .header-ui__langs--desktop,
	.header__actions > .header-ui__help--desktop,
	.header__actions > .header-ui__app--desktop {
		display: none;
	}

	.header__actions .header__top_buttons {
		display: flex;
		gap: 8px;
	}

	.header__actions .header__top_buttons .btn {
		border-radius: 24px;
		box-sizing: border-box;
		font-size: 12px;
		height: auto;
		line-height: 1;
		min-height: 35px;
		padding: 13px 20px 13px 22px;
		width: auto;
	}

	.header__actions .header__top_buttons .btn.header-anm {
		border-width: 1px;
	}

	.header__actions .lang-block-wrapper,
	.header__actions .lang-toggle-block {
		display: none;
	}

	.header__top .mobile_menu_icon.mobile_only_burger {
		align-items: center;
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		gap: 3px;
		height: 35px;
		justify-content: center;
		padding: 0;
		width: 20px;
	}

	.header-3 .header__top .mobile_menu_icon.mobile_only_burger {
		margin-left: 4px;
	}

	.header-1 .header__top .mobile_menu_icon.mobile_only_burger {
		margin-left: 4px;
	}

	.header-2 .header__top .mobile_menu_icon.mobile_only_burger {
		margin-right: 4px;
		order: -1;
	}

	.header__top .mobile_menu_icon.mobile_only_burger span {
		background: var(--header-accent);
		border-radius: 1px;
		display: block;
		height: 2px;
		width: 20px;
	}

	.header-menu-left {
		align-items: center;
		background: #030125;
		bottom: 0;
		display: flex;
		flex-direction: column;
		left: 0;
		overflow-y: auto;
		padding: 40px 28px;
		position: fixed;
		right: 0;
		top: 0;
		transform: translateX(100%);
		transition: transform 0.3s ease, visibility 0.3s ease;
		visibility: hidden;
		z-index: 1001;
	}

	.header-menu-left[hidden] {
		display: flex;
	}

	.header.is-menu-open .header-menu-left {
		transform: translateX(0);
		visibility: visible;
	}

	body.admin-bar .header-menu-left {
		top: 32px;
	}

	.header-ui__close {
		align-items: center;
		display: flex;
		height: 40px;
		justify-content: center;
		margin: 0 0 24px auto;
		padding: 0;
		width: 40px;
	}

	.header-ui__close img {
		display: block;
		height: 20px;
		width: 18px;
	}

	.header-top-mobile-menu {
		flex: 1 0 auto;
		padding-top: 24px;
		width: 100%;
	}

	.header-top-mobile-menu ul.top {
		align-items: center;
		display: flex;
		flex-direction: column;
		gap: 25px;
	}

	.header-top-mobile-menu ul.top a,
	.header-top-mobile-menu ul.top span {
		color: #ffffff;
		font-family: var(--header-font);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
	}

	.header-top-mobile-menu .header-ui__menu-app-icon {
		display: none;
	}

	.header-ui__drawer-footer {
		align-items: center;
		display: flex;
		flex-direction: column;
		gap: 16px;
		margin-top: auto;
		padding-top: 40px;
		width: 100%;
	}

	.header-ui__drawer-footer .lang-block-wrapper {
		width: 142px;
	}

	.header-ui__drawer-footer .lang-toggle-block {
		background: var(--header-lang-bg);
		border-radius: 24px;
		height: 48px;
		overflow: hidden;
		width: 142px;
	}

	.header-ui__drawer-footer .lang-toggle-block__item.current-lang {
		align-items: center;
		color: var(--header-lang-text);
		display: flex;
		gap: 8px;
		height: 48px;
		padding: 0 15px;
		width: 100%;
	}

	.header-ui__drawer-footer .header-ui__help {
		align-items: center;
		color: var(--header-accent);
		display: inline-flex;
		gap: 8px;
		justify-content: center;
	}

	.header-ui__drawer-footer .header-ui__help-text {
		color: var(--header-accent);
		font-family: var(--header-font);
		font-size: 14px;
		font-weight: 700;
		line-height: 16.8px;
	}

	.header-ui__drawer-footer .header-ui__app {
		align-items: center;
		border: 1px solid var(--header-accent);
		border-radius: 24px;
		color: var(--header-accent);
		display: inline-flex;
		gap: 8px;
		height: 48px;
		justify-content: center;
		max-width: 220px;
		padding: 0 20px;
		width: 100%;
	}

	.header-ui__drawer-footer .header-ui__app-text {
		color: var(--header-accent);
		font-family: var(--header-font);
		font-size: 14px;
		font-weight: 700;
		line-height: 16.8px;
		max-width: none;
		text-align: left;
		white-space: normal;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .header-menu-left {
		top: 46px;
	}
}

@media (max-width: 440px) {
	.header__actions {
		gap: 6px;
	}

	.header__actions .header__top_buttons {
		gap: 6px;
	}

	.header__actions .header__top_buttons .btn {
		font-size: 11px;
		padding: 10px 12px 10px 14px;
		width: auto;
	}
}

