/* ==========================================================================
   redesign.css — новый дизайн темы spiderman
   Подключается ПОСЛЕДНИМ (после main.css, media.css и pages.css),
   поэтому перекрывает старые правила. Старые файлы не трогаем.
   ========================================================================== */

:root {
	--rd-navy: #0C1C4D;
	--rd-ink: #3b4a5c;
	--rd-muted: #667385;
	--rd-blue: #2596be;
	--rd-cyan: #00ace4;
	--rd-sky: #2dcbf8;
	--rd-yellow: #fce532;
	--rd-orange: #FF4C00;
	--rd-green: #7fde2a;
	--rd-soft: #eef8fd;
	--rd-line: #dbe9f2;
	--rd-dark-1: #2b2f6b;
	--rd-dark-2: #1b2450;
	--rd-radius: 26px;
	--rd-shadow: 0 14px 34px rgba(12, 28, 77, .14);
	--rd-dark-bg:
		radial-gradient(circle at 12% 0%, rgba(0, 172, 228, .35) 0, transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(255, 76, 0, .25) 0, transparent 40%),
		linear-gradient(135deg, #2b2f6b 0%, #1b2450 100%);
}

body { line-height: 1.4; }
.page { padding: 0 15px; }
.container { max-width: 1200px; }

/* ==========================================================================
   ШАПКА
   ========================================================================== */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: auto;
	min-height: 0;
	margin-bottom: 30px;
	padding: 0 15px;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px rgba(12, 28, 77, .12);
}
body.admin-bar .header { top: 32px; }
.header .wrapper {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1200px;
	min-height: 84px;
	margin: 0 auto;
	padding: 10px 0;
	flex-direction: row;
}
.header .logo { flex: none; margin: 0; width: auto; }
.header .logo img { display: block; height: 58px; width: auto; }

/* меню */
.header .top {
	flex: 1;
	min-width: 0;
	max-width: none;
	margin: 0;
	flex-direction: row;
	justify-content: flex-end;
}
.header .top .menu { width: auto; padding: 0; margin: 0; }
.header .top .menu > ul {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
}
.header .top .menu > ul > li { padding: 0; overflow: visible; }
.header .top .menu > ul > li > a {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	border-radius: 14px;
	white-space: nowrap;
	transition: background .2s, transform .2s;
}
.header .top .menu > ul > li > a > i {
	width: 22px;
	height: 22px;
	margin: 0;
	transition: transform .25s;
}
.header .top .menu ul li a span {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 14px;
	letter-spacing: .02em;
	color: var(--rd-navy);
}
.header .top .menu > ul > li > a:hover,
.header .top .menu > ul > li.is-open > a { background: var(--rd-soft); }
.header .top .menu > ul > li > a:hover > i { transform: rotate(-8deg) scale(1.12); }
.header .top .menu > ul > li > a:hover span,
.header .top .menu > ul > li.is-open > a span { color: var(--rd-blue); }
.header .top .menu > ul > li.current-menu-item > a,
.header .top .menu > ul > li.current-menu-ancestor > a {
	background: linear-gradient(135deg, #e3f6fd 0%, #f0fbe6 100%);
	box-shadow: inset 0 0 0 2px rgba(37, 150, 190, .25);
}
.header .top .menu > ul > li.current-menu-item > a span { color: var(--rd-blue); }

/* поиск */
.header-search {
	position: relative;
	flex: none;
	width: 230px;
	margin: 0;
}
.header-search input[type="search"] {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 52px 0 18px;
	border: 2px solid var(--rd-line);
	border-radius: 999px;
	background: #f4f9fc;
	font-family: 'Gilroy', sans-serif;
	font-size: 15px;
	color: var(--rd-navy);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.header-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.header-search input[type="search"]::placeholder { color: #8a97a8; }
.header-search input[type="search"]:focus {
	border-color: var(--rd-cyan);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 172, 228, .15);
}
.header-search button {
	position: absolute;
	top: 5px;
	right: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rd-cyan) 0%, var(--rd-blue) 100%);
	color: #fff;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.header-search button:hover { transform: scale(1.06); box-shadow: 0 6px 14px rgba(0, 172, 228, .4); }
.header-search svg { width: 18px; height: 18px; }

/* кнопки для планшета / телефона */
.header__btn {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--rd-soft);
	color: var(--rd-navy);
	cursor: pointer;
	transition: background .2s;
}
.header__btn:hover { background: #dff2fb; }
.header__btn svg { width: 22px; height: 22px; }
.header__burger span,
.header__burger span::before,
.header__burger span::after {
	display: block;
	position: relative;
	width: 22px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--rd-navy);
	transition: transform .25s, background .25s;
}
.header__burger span::before,
.header__burger span::after { content: ''; position: absolute; left: 0; }
.header__burger span::before { top: -7px; }
.header__burger span::after { top: 7px; }
.header.nav-open .header__burger span { background: transparent; }
.header.nav-open .header__burger span::before { transform: translateY(7px) rotate(45deg); }
.header.nav-open .header__burger span::after { transform: translateY(-7px) rotate(-45deg); }

.header .top .menu a:focus-visible,
.header__btn:focus-visible,
.header-search button:focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 3px; }

/* ноутбуки: поиск прячется под кнопку-лупу */
@media (max-width: 1199px) {
	.header .wrapper { gap: 14px; }
	.header__search-toggle { display: flex; order: 3; }
	.header-search {
		position: absolute;
		left: 15px;
		right: 15px;
		top: 100%;
		width: auto;
		max-width: 640px;
		margin: 0 auto;
		padding: 12px;
		border-radius: 0 0 20px 20px;
		background: #fff;
		box-shadow: 0 16px 30px rgba(12, 28, 77, .16);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.header-search button { top: 17px; right: 17px; }
	.header.search-open .header-search {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .2s, transform .2s;
	}
	.header .top .menu > ul > li > a { padding: 9px 10px; }
	.header .top .menu ul li a span { font-size: 13px; }
}

/* планшеты и телефоны: меню уходит в бургер */
@media (max-width: 900px) {
	.header .wrapper { min-height: 70px; flex-direction: row; padding: 8px 0; }
	.header .logo { margin: 0 auto 0 0; }
	.header .logo img { height: 48px; }
	.header__burger { display: flex; order: 4; }
	.header .top {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: block;
		width: 100%;
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		padding: 12px 15px 18px;
		background: #fff;
		box-shadow: 0 18px 30px rgba(12, 28, 77, .18);
		border-radius: 0 0 22px 22px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.header.nav-open .top { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
	.header .top .menu { width: 100%; margin: 0; }
	.header .top .menu > ul {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		position: relative;
	}
	.header .top .menu > ul > li { position: relative; }
	.header .top .menu > ul > li > a {
		flex-direction: row;
		justify-content: flex-start;
		padding: 14px 16px;
		background: var(--rd-soft);
		white-space: normal;
		text-align: left;
	}
	.header .top .menu ul li a span { font-size: 14px; line-height: 1.2; }
	.header .top .menu > ul > li.menu-item-has-children { grid-column: 1 / -1; }
	.header .top .menu > ul > li.menu-item-has-children > a::after { position: static; margin: -4px 0 0 auto; }
	.header .top .menu .sub-menu,
	.header .top .menu > ul > li > .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin-top: 6px;
		padding: 6px;
		box-shadow: none;
		background: #f7fbfd;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.header .top .menu > ul > li.is-open > .sub-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
	.header .top .menu .sub-menu li a { text-align: left; }
}
@media (max-width: 480px) {
	.header .top .menu > ul { grid-template-columns: 1fr; }
	.header .top .menu > ul > li.is-open > .sub-menu { grid-template-columns: 1fr; }
	.header .logo img { height: 42px; }
	.header__btn { width: 42px; height: 42px; }
}
@media (max-width: 782px) { body.admin-bar .header { top: 0; position: relative; } }

/* ==========================================================================
   ОБЩЕЕ: заголовки секций, хлебные крошки
   ========================================================================== */

.heading,
.content.single_page .block_h2,
.sidebar .block_h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 2px 10px rgba(12, 28, 77, .25);
}
.heading::before,
.sidebar .block_h2::before {
	content: '';
	flex: none;
	width: 10px;
	height: 32px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--rd-yellow) 0%, var(--rd-orange) 100%);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	padding: 10px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .85);
	font-size: 14px;
	color: var(--rd-muted);
	width: fit-content;
	max-width: 100%;
}
.breadcrumbs img { display: none; }
.breadcrumbs a { color: var(--rd-blue); }
.breadcrumbs a:hover { color: var(--rd-orange); }

/* ==========================================================================
   КАРТОЧКИ ИГР — общий вид для всех сеток
   (каталог, Top Games, Top Rated, Hot Games в сайдбаре)
   ========================================================================== */

.catalog .game-card,
.editor_choice .editors .cell,
.best-games__list .cell,
.sidebar__content.best-games .cell {
	position: relative;
	width: 100%;
	height: auto;
	margin: 0;
	text-align: left;
}
.catalog .game-card > a,
.editor_choice .editors .cell > a,
.best-games__list .cell > a,
.sidebar__content.best-games .cell > a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 18px;
	background: #0c1c4d;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 8px 18px rgba(0, 0, 0, .22);
	transition: transform .25s ease, box-shadow .25s ease;
}
.catalog .game-card img,
.editor_choice .editors img,
.best-games__list .cell > a img,
.sidebar__content.best-games .cell > a img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border: 0 !important;
	border-radius: 0 !important;
	opacity: 1;
	transition: transform .35s ease, filter .35s ease;
}
.catalog .game-card > a:hover,
.editor_choice .editors .cell > a:hover,
.best-games__list .cell > a:hover,
.sidebar__content.best-games .cell > a:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 0 3px var(--rd-yellow), 0 14px 26px rgba(0, 0, 0, .3);
}
.catalog .game-card > a:hover img,
.editor_choice .editors .cell > a:hover img,
.best-games__list .cell > a:hover img,
.sidebar__content.best-games .cell > a:hover img {
	transform: scale(1.08);
	filter: brightness(1.05) saturate(1.1);
	opacity: 1;
}
.catalog .game-card label,
.editor_choice .editors .cell label,
.best-games__list .cell label,
.sidebar__content.best-games .cell label {
	position: absolute;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	padding: 26px 10px 9px;
	border-radius: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 40, .88) 100%);
	color: #fff;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 13px;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 1;
	cursor: pointer;
	transition: padding .25s ease;
}
.catalog .game-card > a:hover label,
.editor_choice .editors .cell > a:hover label,
.best-games__list .cell > a:hover label,
.sidebar__content.best-games .cell > a:hover label { padding-bottom: 12px; }

/* старое правило .cell:nth-child(3) растягивало 3-ю карточку на полсетки,
   а на телефонах прятало её — сбрасываем везде, кроме Top Rated */
.sidebar__content.best-games .cell,
.editor_choice .editors .cell { grid-column: auto; grid-row: auto; }
.sidebar__content.best-games .cell:nth-child(3),
.editor_choice .editors .cell:nth-child(3) { display: block; }
.sidebar__content.best-games .cell.icons:nth-child(3) { display: flex; }

/* декоративные плашки (Weekly Picks, New Games, For girls/boys) */
.catalog .game-card.icons,
.sidebar__content.best-games .cell.icons {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}
.catalog .game-card.icons img,
.sidebar__content.best-games .cell.icons img {
	width: 85% !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	object-fit: contain;
	animation: rd-float 3s ease-in-out infinite;
}
@keyframes rd-float {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50%      { transform: translateY(-6px) rotate(3deg); }
}

/* ==========================================================================
   ГЛАВНАЯ: полоса популярных игр (.recommended-games)
   ========================================================================== */

.main__content.recommended-games {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(112px, 1fr);
	grid-template-columns: none;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #b9d9e8 transparent;
	margin-bottom: 30px;
	padding: 22px;
	border-radius: var(--rd-radius);
	background: rgba(255, 255, 255, .92);
	box-shadow: var(--rd-shadow);
}
.main__content.recommended-games > div { min-width: 0; scroll-snap-align: start; }
.main__content.recommended-games .item {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: transparent;
	transition: transform .25s;
}
.main__content.recommended-games .item:hover { background: transparent; transform: translateY(-4px); }
.main__content.recommended-games .recommended-games__thumb { display: block; padding: 0; margin: 0; }
.main__content.recommended-games .recommended-games__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	padding: 0;
	border-radius: 18px;
	box-shadow: 0 6px 16px rgba(12, 28, 77, .18);
	transition: box-shadow .25s;
}
.main__content.recommended-games .item:hover img { box-shadow: 0 0 0 3px var(--rd-yellow), 0 12px 22px rgba(12, 28, 77, .25); }
.main__content.recommended-games .title_recommend {
	padding: 8px 4px 0;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	color: var(--rd-navy);
}
.main__content.recommended-games .item:hover .title_recommend { color: var(--rd-orange); }
.main__content.recommended-games .title_pop_up.no-visible { display: block; }
.main__content.recommended-games .item.cat_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.main__content.recommended-games .item.cat_icon img { width: 100%; height: auto; animation: rd-float 3s ease-in-out infinite; }

/* ==========================================================================
   ГЛАВНАЯ: Top Rated (bento-сетка)
   ========================================================================== */

.content > .sidebar { margin-right: 0; }
.content > .sidebar .sidebar__content.best-games { display: block; }
.sidebar__content.best-games {
	margin: 0;
	padding: 24px;
	border-radius: var(--rd-radius);
	background: var(--rd-dark-bg);
	box-shadow: var(--rd-shadow);
}
.best-games__list {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(3, 128px);
	gap: 18px;
}
.best-games__list .cell > a { aspect-ratio: auto; }
/* большая картинка дня — колонки 3–7, как в старой сетке */
.best-games__list > .cell:nth-child(3) {
	grid-column: 3 / 8;
	grid-row: 1 / 3;
	overflow: hidden;
	border-radius: 22px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 16px 30px rgba(0, 0, 0, .3);
}
.best-games__list > .cell:nth-child(3) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
}
/* картинки-плашки For girls / For boys */
.best-games__list > .cell:nth-child(4),
.best-games__list > .cell:nth-child(8) {
	display: flex;
	align-items: center;
	justify-content: center;
}
.best-games__list > .cell:nth-child(4) img,
.best-games__list > .cell:nth-child(8) img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 0;
	animation: rd-float 3.4s ease-in-out infinite;
}

/* ==========================================================================
   ТЕКСТОВЫЕ БЛОКИ: описание игры, SEO-текст главной, нижний текст
   ========================================================================== */

.game-offer__content,
.block-text,
.top_text {
	padding: 40px;
	margin-bottom: 30px;
	border-radius: var(--rd-radius);
	background: #fff;
	box-shadow: var(--rd-shadow);
	font-family: 'Gilroy', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: -0.01em;
	color: var(--rd-ink);
}
.game-offer__content::after,
.block-text::after { content: ''; display: block; clear: both; }

.game-offer__content p,
.block-text p,
.main__content.top_text p {
	margin: 0 0 16px;
	font-family: 'Gilroy', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.65;
	color: var(--rd-ink);
}
.game-offer__content > p:first-of-type { font-size: 17px; color: var(--rd-navy); }

.game-offer__content h2,
.block-text h2 {
	clear: both;
	position: relative;
	margin: 38px 0 16px;
	padding: 4px 0 4px 18px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--rd-navy);
}
.game-offer__content h2::before,
.block-text h2::before {
	content: '';
	position: absolute;
	left: 0; top: 4px; bottom: 4px;
	width: 6px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--rd-cyan) 0%, var(--rd-green) 100%);
}
.block-text > h1:first-child,
.block-text > h2:first-child { margin-top: 0; }
.block-text h1 {
	margin: 0 0 20px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--rd-navy);
}

.game-offer__content h3,
.block-text h3,
.main__content.top_text h3 {
	margin: 22px 0 8px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--rd-navy);
}
.game-offer__content h3 + p,
.block-text h3 + p {
	padding: 14px 18px;
	background: var(--rd-soft);
	border-radius: 14px;
}

.game-offer__content b, .game-offer__content strong,
.block-text b, .block-text strong,
.top_text b, .top_text strong {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	color: var(--rd-navy);
}

/* таблица */
.game-offer__content table,
.block-text table,
.top_text table {
	width: auto;
	max-width: 100%;
	margin: 8px 0 24px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 6px 18px rgba(12, 28, 77, .06);
}
.game-offer__content table td, .game-offer__content table th,
.block-text table td, .block-text table th,
.top_text table td, .top_text table th {
	padding: 11px 18px;
	border-bottom: 1px solid var(--rd-line);
	vertical-align: top;
	text-align: left;
	color: var(--rd-navy);
}
.game-offer__content table tr:last-child td,
.block-text table tr:last-child td,
.top_text table tr:last-child td { border-bottom: 0; }
.game-offer__content table tr:nth-child(even) td,
.block-text table tr:nth-child(even) td,
.top_text table tr:nth-child(even) td { background: #f7fbfd; }
.game-offer__content table td:first-child,
.block-text table td:first-child,
.top_text table td:first-child,
.block-text table th,
.top_text table th {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	color: var(--rd-blue);
	background: var(--rd-soft);
}
.game-offer__content table td:first-child,
.block-text table td:first-child,
.top_text table td:first-child { width: 1%; white-space: nowrap; border-right: 1px solid var(--rd-line); }
.game-offer__content table tr:nth-child(even) td:first-child,
.block-text table tr:nth-child(even) td:first-child,
.top_text table tr:nth-child(even) td:first-child { background: #e3f3fb; }

/* маркированный список */
.game-offer__content ul,
.block-text ul,
.main__content.top_text ul {
	margin: 6px 0 20px;
	padding: 0;
	list-style: none;
	font-family: 'Gilroy', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--rd-navy);
}
.game-offer__content ul li,
.block-text ul li,
.main__content.top_text ul li {
	position: relative;
	margin: 0 0 10px;
	padding: 2px 0 2px 34px;
	line-height: 1.5;
	color: var(--rd-navy);
}
.game-offer__content ul li::before,
.block-text ul li::before,
.main__content.top_text ul li::before {
	content: '';
	position: absolute;
	left: 4px; top: 6px;
	width: 18px; height: 18px;
	margin: 0;
	border-radius: 50%;
	background: var(--rd-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* нумерованный список */
.game-offer__content ol,
.block-text ol,
.main__content.top_text ol {
	margin: 6px 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: rdol;
}
.game-offer__content ol li,
.block-text ol li,
.main__content.top_text ol li {
	position: relative;
	counter-increment: rdol;
	margin: 0 0 12px;
	padding: 2px 0 2px 42px;
	line-height: 1.5;
	color: var(--rd-navy);
}
.game-offer__content ol li::before,
.block-text ol li::before,
.main__content.top_text ol li::before {
	content: counter(rdol);
	position: absolute;
	left: 0; top: 1px;
	width: 28px; height: 28px;
	margin: 0;
	border-radius: 50%;
	background: var(--rd-orange);
	color: #fff;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 28px;
	text-align: center;
}
.game-offer__content ol li:has(> b:first-child),
.block-text ol li:has(> b:first-child) {
	padding: 14px 18px 14px 56px;
	background: var(--rd-soft);
	border-radius: 14px;
}
.game-offer__content ol li:has(> b:first-child)::before,
.block-text ol li:has(> b:first-child)::before { left: 16px; top: 14px; }
.game-offer__content ol li > b:first-child,
.block-text ol li > b:first-child { display: block; margin-bottom: 4px; }

.game-offer__content a, .block-text a, .top_text a {
	color: var(--rd-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.game-offer__content a:hover, .block-text a:hover, .top_text a:hover { color: var(--rd-orange); text-decoration: none; }

.game-offer__content > p:last-child {
	margin-top: 24px;
	margin-bottom: 0;
	padding: 18px 22px;
	border-radius: 16px;
	background: linear-gradient(135deg, #eaf8fd 0%, #f2fbe9 100%);
	color: var(--rd-navy);
}

/* обложка игры в описании */
.game-offer__content .game-offer__image {
	float: left;
	max-width: 185px;
	margin: 0 24px 16px 0;
}
.game-offer__content .game-offer__image img {
	display: block;
	border-radius: 20px;
	box-shadow: 0 10px 22px rgba(12, 28, 77, .18);
}

/* SEO-текст главной: заголовки со своими цветными словами оставляем, только отступы */
.main__content.top_text { padding: 40px; }
.main__content.top_text h1 { line-height: 1.1; margin-bottom: 10px; }
.main__content.top_text h2 { margin-top: 34px; line-height: 1.15; }
.main__content.top_text p { margin-top: 0; }

/* ==========================================================================
   КАТАЛОГ (Latest / Most Played) + Top Games
   ========================================================================== */

.catalog {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	padding: 32px;
	margin-bottom: 30px;
	border-radius: 28px;
	background: var(--rd-dark-bg);
	box-shadow: 0 18px 40px rgba(12, 28, 77, .25);
}
.catalog .games_block { flex: 1; min-width: 0; }
.catalog .catalog__title,
.catalog__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding-left: 0;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 30px;
	line-height: 1.1;
	color: #fff;
}
.catalog .catalog__title::before {
	content: '';
	flex: none;
	width: 10px;
	height: 30px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--rd-yellow) 0%, var(--rd-orange) 100%);
}
.catalog .catalog__list,
.catalog.category .catalog__list {
	display: grid;
	grid-template: none;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	grid-auto-rows: auto;
	gap: 16px;
	margin: 0;
}
.catalog.category .catalog__list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.catalog .flex-auto { display: none; }
.catalog.category { display: block; padding: 32px; }

.editor_choice,
.editor_choice.single {
	flex: none;
	width: 240px;
	margin: 0;
	padding: 20px 18px;
	border: 2px dashed rgba(255, 255, 255, .35);
	border-radius: 24px;
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(4px);
}
.editor_choice h3 {
	margin: 0 0 18px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--rd-yellow);
}
/* Top Games по высоте = сетке игр слева: колонка тянется, карточки делят высоту */
.catalog { align-items: stretch; }
.catalog .games_block { display: flex; flex-direction: column; }
.editor_choice,
.editor_choice.single { display: flex; flex-direction: column; }
.editor_choice .editors {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 0;
}
.editor_choice .editors h3 { margin: 0; }
.editor_choice .editors .cell { flex: 1 1 0; min-height: 110px; margin: 0; }
.editor_choice .editors .cell > a { aspect-ratio: auto; height: 100%; }

/* пагинация */
.pagination-container { margin: 26px 0 0; }
.pagination { gap: 8px; }
.pagination li,
.pagination li.current,
.pagination li:hover {
	width: auto;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, .12);
	transition: background .2s, transform .2s;
}
.pagination li a,
.pagination li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 17px;
	line-height: 1;
	color: #fff;
}
.pagination li:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.pagination li a:hover { color: #fff; }
.pagination li.current { background: var(--rd-yellow); }
.pagination li.current span,
span.page-numbers.current { color: var(--rd-navy); }

/* ==========================================================================
   СТРАНИЦА ИГРЫ
   ========================================================================== */

.single_page { gap: 26px; align-items: flex-start; }
.main.single { margin: 0; min-width: 0; flex: 1; }
.sidebar-column { max-width: 282px; }
.single_page .sidebar,
.sidebar-column .sidebar { margin: 0 0 30px; }
.sidebar-column .sidebar__content.best-games {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	padding: 18px;
}
.sidebar-column .sidebar__content.best-games .cell { margin: 0; }
.sidebar-column .sidebar__content.best-games .cell img { width: 100%; }
.sidebar .block_h2 { font-size: 30px; }

/* окно игры */
.game-offer__window {
	overflow: hidden;
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow);
}
.game-offer__window__top {
	gap: 16px;
	margin: 0;
	padding: 18px 24px;
	font-size: inherit;
	border-bottom: 1px solid var(--rd-line);
}
.game_title { width: auto; flex: 1; min-width: 0; }
.game_title h1,
.main.single .game_title h1 {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--rd-navy);
}
.player-overlay {
	left: 10px;
	right: 10px;
	width: auto;
	margin: 10px 0 0;
	border-radius: 20px;
}
.player-overlay-image img {
	border: 3px solid #fff;
	border-radius: 22px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}
.player-overlay-name {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
#js-player-start {
	width: 190px;
	height: 58px;
	margin-top: 18px;
	border-radius: 999px;
	background: var(--rd-yellow);
	color: var(--rd-navy);
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 20px;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 6px 0 #d9c200, 0 16px 26px rgba(0, 0, 0, .25);
	transition: transform .15s, box-shadow .15s;
}
#js-player-start:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #d9c200, 0 20px 30px rgba(0, 0, 0, .28); }
#js-player-start:active { transform: translateY(4px); box-shadow: 0 2px 0 #d9c200, 0 8px 14px rgba(0, 0, 0, .2); }
.game-offer__window .game-offer__window__frame { border-radius: 16px; }
.game-offer__window__bottom { padding: 14px 24px 18px; }
.game-offer__window__bottom .fullscreen {
	display: flex;
	height: 60px;
	margin: 0;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #46A317 0%, #8fd630 100%);
	color: #fff;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 20px;
	letter-spacing: .08em;
	box-shadow: 0 6px 0 #2f7a0c;
	transition: transform .15s, box-shadow .15s;
}
.game-offer__window__bottom .fullscreen:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #2f7a0c; color: #fff; }

.border-block {
	padding: 20px;
	border: 2px dashed rgba(255, 255, 255, .6);
	border-radius: var(--rd-radius);
	background: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   ПОИСК, ОБЫЧНЫЕ СТРАНИЦЫ, 404
   ========================================================================== */

.search-head {
	margin-bottom: 24px;
	padding: 28px 32px;
	border-radius: var(--rd-radius);
	background: #fff;
	box-shadow: var(--rd-shadow);
}
.search-head h1 {
	margin: 0 0 6px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 32px;
	line-height: 1.15;
	color: var(--rd-navy);
}
.search-head h1 strong { color: var(--rd-blue); }
.search-head p { margin: 0 0 16px; color: var(--rd-muted); }
.search-head .header-search {
	position: relative;
	left: auto; right: auto; top: auto;
	width: 100%;
	max-width: 520px;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}
.search-head .header-search button { top: 5px; right: 5px; }

.page-404 {
	max-width: 720px;
	margin: 20px auto 40px;
	text-align: center;
}
.page-404__code {
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 120px;
	line-height: 1;
	background: linear-gradient(135deg, var(--rd-cyan) 0%, var(--rd-orange) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.page-404 .header-search { margin: 20px auto; }
.btn-rd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--rd-yellow);
	color: var(--rd-navy) !important;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	text-decoration: none !important;
	box-shadow: 0 5px 0 #d9c200;
	transition: transform .15s;
}
.btn-rd:hover { transform: translateY(-2px); }

/* список записей блога / people */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 24px;
}
.post-card {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--rd-line), 0 8px 18px rgba(12, 28, 77, .08);
	text-decoration: none !important;
	transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--rd-yellow), 0 14px 26px rgba(12, 28, 77, .15); }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card span {
	display: block;
	padding: 14px 16px 16px;
	font-family: 'Gilroy Bold', 'Gilroy', sans-serif;
	font-size: 16px;
	line-height: 1.3;
	color: var(--rd-navy);
}

/* галерея раскрасок */
.gallery { gap: 14px; margin: 20px 0 0; }
.gallery__item { margin: 0; }
.gallery__item img { border-radius: 16px; }

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */

.footer {
	margin-top: 20px;
	padding: 0 15px;
	background: var(--rd-dark-bg);
	color: rgba(255, 255, 255, .8);
}
.footer .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 34px 0 24px;
	flex-direction: row;
}
.footer .logo { width: auto; margin: 0; }
.footer .logo img {
	display: block;
	height: 58px;
	width: auto;
	padding: 6px 10px;
	border-radius: 14px;
	background: #fff;
}
.footer .top { flex: 1; max-width: none; margin: 0; justify-content: flex-end; flex-direction: row; }
.footer .top .menu { width: auto; padding: 0; margin: 0; }
.footer .top .menu > ul,
.footer .footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 8px;
	text-align: left;
}
.footer .top .menu > ul > li { padding: 0; overflow: visible; }
.footer .top .menu > ul > li > a {
	display: flex;
	padding: 8px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	transition: background .2s;
}
.footer .top .menu > ul > li > a:hover { background: rgba(255, 255, 255, .18); }
.footer .top .menu ul li a span,
.footer .top .menu ul li a {
	font-family: 'Gilroy', sans-serif;
	font-size: 14px;
	text-transform: none;
	color: #fff;
}
.footer .top .menu > ul > li > a > i { display: none; }
.copyright {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
	letter-spacing: .08em;
	color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1100px) {
	.best-games__list { grid-template-rows: repeat(3, 108px); gap: 14px; }
}

@media (max-width: 900px) {
	.catalog { flex-direction: column; padding: 24px 18px; }
	.editor_choice, .editor_choice.single { width: 100%; margin: 0; }
	.editor_choice .editors {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
	.editor_choice .editors h3 { grid-column: 1 / -1; margin: 0 0 4px; }
	.editor_choice .editors .cell { margin-bottom: 0; flex: none; min-height: 0; }
	.editor_choice .editors .cell > a { aspect-ratio: 1 / 1; height: auto; }
	.catalog.category { padding: 24px 18px; }

	/* Top Rated: 4 колонки, большая картинка сверху во всю ширину */
	.best-games__list {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: none;
		grid-auto-rows: auto;
	}
	.best-games__list > .cell:nth-child(3) { display: block; grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 7; }
	.best-games__list .cell > a { aspect-ratio: 1 / 1; }
	.best-games__list > .cell:nth-child(4),
	.best-games__list > .cell:nth-child(8) { aspect-ratio: 1 / 1; }

	/* страница игры: сайдбар уходит под игру */
	.single_page { flex-direction: column; }
	.single_page .sidebar-column { order: 2; max-width: 100%; width: 100%; }
	.single_page .main.single { order: 1; width: 100%; }
	.sidebar-column .sidebar__content.best-games { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

	.footer .wrapper { flex-direction: column; align-items: flex-start; }
	.footer .top { justify-content: flex-start; width: 100%; }
	.footer .top .menu > ul, .footer .footer-menu { justify-content: flex-start; }
}

@media (max-width: 767px) {
	.page { padding: 0; }
	.heading,
	.content.single_page .block_h2,
	.sidebar .block_h2 { font-size: 26px; justify-content: flex-start; }
	.heading::before, .sidebar .block_h2::before { height: 26px; }

	.game-offer__content,
	.block-text,
	.top_text,
	.main__content.top_text { padding: 24px 18px; font-size: 15px; }
	.game-offer__content h2, .block-text h2 { font-size: 22px; margin-top: 30px; }
	.game-offer__content h3, .block-text h3 { font-size: 17px; }
	.game-offer__content table, .block-text table, .top_text table { width: 100%; }
	.game-offer__content table td, .block-text table td, .top_text table td { padding: 10px 12px; }
	.game-offer__content table td:first-child,
	.block-text table td:first-child,
	.top_text table td:first-child { white-space: normal; width: 38%; }
	.game-offer__content .game-offer__image { float: left; max-width: 110px; margin: 0 14px 10px 0; }
	.block-text h1 { font-size: 28px; }

	.main__content.recommended-games {
		grid-auto-columns: 96px;
		gap: 12px;
		padding: 14px;
		margin-bottom: 24px;
	}
	.main__content.recommended-games .item { max-width: none; margin: 0; }
	.main__content.recommended-games .title_recommend { font-size: 12px; }

	.sidebar__content.best-games { padding: 16px; }
	.sidebar-column .sidebar__content.best-games { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.best-games__list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.best-games__list .cell { width: auto; }

	.catalog { border-radius: 22px; }
	.catalog .catalog__title { font-size: 24px; }
	.catalog .catalog__list,
	.catalog.category .catalog__list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.catalog, .catalog.category { padding: 20px 14px; }
	.catalog .game-card label,
	.editor_choice .editors .cell label,
	.best-games__list .cell label,
	.sidebar__content.best-games .cell label { font-size: 12px; padding: 22px 8px 7px; }
	.editor_choice h3 { margin-top: 0; }
	.editor_choice.single { margin-bottom: 0; }
	.editors .cell { width: auto; height: auto; }

	.main__content.game-offer { padding: 0; }
	.game-offer__window__top { padding: 14px 16px; }
	.game_title h1, .main.single .game_title h1 { font-size: 24px; text-align: center; }
	.game-offer__window__bottom { padding: 12px 16px 16px; }

	.search-head { padding: 22px 18px; }
	.search-head h1 { font-size: 26px; }
	.page-404__code { font-size: 90px; }
}
