:root {
	--blue-shadow-06: rgba(13, 110, 253, 0.06);
	--blue-shadow-08: rgba(13, 110, 253, 0.08);
	--blue-shadow-10: rgba(13, 110, 253, 0.12);
	--blue-shadow-15: rgba(13, 110, 253, 0.18);
	--blue-shadow-30: rgba(13, 110, 253, 0.35);
	--blue-shadow-40: rgba(13, 110, 253, 0.45);
	--body-background: #d1ecfa;
	--danger-red: #e5533d;
	--accent-blue: #0d6efd;
	--dark-blue: #084298;
	--divider-gray: #cfd9e6;
	--dropdown-after-gray: #8aa4c2;
	--gray-dark: #364859;
	--header-background: rgba(255, 255, 255, 0.92);
	--light-blue-background: #e9f2ff;
	--light-border: #dde6f3;
	--primary-blue: #0253ca;
	--rating-overlay-background: rgba(255, 255, 255, 0.92);
	--shadow-dropdown-mobile: rgba(0, 0, 0, 0.12);
	--shadow-medium: rgba(0, 0, 0, 0.1);
	--shadow-soft: rgba(0, 0, 0, 0.08);
	--shadow-very-light: rgba(0, 0, 0, 0.04);
	--success-green: #2ecc71;
	--text-primary: #00162d;
	--text-secondary: #3c3c3c;
	--very-light-blue: #b9d6ff;
	--warning-orange: #ff8c1a;
	--white: #ffffff;
	--button-hover-shadow: #fc00ff;
	--button-shadow: #9800e6;
	--bonus-text-desktop: #ff00e0;
	--bonus-text-mobile: #a200ff;
	--rating-stars-color: #ffaa00;
	--brang-logo-background: #c1d7ff;
}

.casino-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

.casino-card-link:hover .casino-card {
	transform: translateY(-2px);
}

.casino-card-link > .casino-card {
	height: 100%;
}

.casino-card-link:hover .btn {
	background-color: #005edc;
}

/* === BASIC RESET === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Open Sans', sans-serif;
	background: var(--body-background);
	color: var(--text-primary);
	line-height: 1.6;
}
img {
	max-width: 100%;
	display: block;
}
.container {
	width: 90%;
	max-width: 1042px;
	margin: 0 auto;
}
/* === PARAGRAPHS === */
p {
	font-size: 18px !important;
	margin-bottom: 16px;
}
table p {
	font-size: 16px !important;
}
mark.rewrite {
	background-color: transparent;
}
/* === HEADER === */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: var(--header-background);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 6px var(--shadow-light);
	z-index: 1000;
}
.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}
.logo img {
	height: 50px;
	object-fit: contain;
}
/* === NAVIGATION === */
nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 20px;
}
nav li.divider {
	color: var(--divider-gray);
}
nav .nav-link,
nav .dropdown-toggle {
	text-decoration: none;
	color: var(--text-primary);
	padding: 8px 14px;
	border-radius: 8px;
	transition: background 0.3s;
	display: block;
}
nav .nav-link:hover,
nav .dropdown-toggle:hover {
	background: var(--light-blue-background);
}
/* === DROPDOWN === */
nav .dropdown {
	position: relative;
}
nav .dropdown input[type='checkbox'] {
	display: none;
}
/* === DROPDOWN STYLES === */
.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--white);
	min-width: 200px;
	border-radius: 8px;
	box-shadow: 0 4px 14px var(--shadow-medium);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all 0.25s ease;
	z-index: 999;
	padding: 0;
	margin: 0;
	list-style: none;
	display: block;
}
.sub-menu li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--light-border);
	text-align: center;
}
.sub-menu li:last-child {
	border-bottom: none;
}
.sub-menu a {
	display: block;
	padding: 14px 16px;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 0.95rem;
	transition: background 0.2s;
}
.sub-menu a:hover {
	background: var(--light-blue-background);
}
/* === DROPDOWN PC === */
@media (min-width: 769px) {
	nav .dropdown:hover .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}
/* === DROPDOWN MOBILE === */
@media (max-width: 768px) {
	nav .dropdown input:checked ~ .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		width: 200px;
		min-width: auto;
		left: -120px;
		box-shadow: 0 6px 16px var(--shadow-medium);
	}
	nav .dropdown label.dropdown-toggle {
		cursor: pointer;
	}
	.dropdown-toggle::after {
		content: ' +'; /* пробел важен */
		font-size: 0.7rem;
		margin-left: 4px;
		color: #888;
		font-weight: 300;
	}
	.dropdown input:checked ~ .dropdown-toggle::after {
		content: ' −'; /* тире, не минус */
	}
	.header-inner {
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: flex-start;
	}
	.logo {
		margin-top: 10px;
	}
	nav ul {
		flex-direction: column;
		gap: 5px;
		align-items: flex-end;
	}
	nav li.divider {
		display: none;
	}
	.header {
		height: 80px;
	}
	nav .nav-link,
	nav .dropdown-toggle {
		font-size: 0.9rem;
		padding: 6px 12px;
	}
}
/* === HERO === */
.hero {
	padding: 140px 20px 100px;
	text-align: center;
	background: #d1ecfa;
}
.hero h1 {
	font-size: 2.6rem;
	margin-bottom: 20px;
	color: var(--primary-blue);
}
.hero p {
	max-width: 720px;
	margin: 0 auto;
	color: var(--text-secondary);
}
/* === HEADINGS === */
h2 {
	color: var(--primary-blue);
	text-align: center;
	margin-bottom: 25px;
	font-weight: 700;
}
/* === STYLES FOR TEXT&IMAGE === */
.image-text .row h2 {
	text-align: left !important;
}
.image {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px var(--primary-blue-shadow-10);
}
.image img {
	display: block;
	width: 100%;
	height: auto;
}
/* === STYLES FOR TEXT&IMAGE PC === */
@media (min-width: 769px) {
	.image-text .row {
		display: flex;
		align-items: center;
		gap: 40px;
	}
	.image-text .row .text {
		width: 50%;
	}
	.image-text .row .image {
		width: 50%;
	}
}
/* === STYLES FOR TEXT&IMAGE MOBILE === */
@media (max-width: 768px) {
	.image-text .row {
		flex-direction: column;
		gap: 20px;
	}
	.image-text .row .text,
	.image-text .row .image {
		width: 100%;
	}
	.image-text .row .image {
		order: 2; /* Изображение отображается после текста */
	}
	.image-text .row .text {
		order: 1; /* Текст отображается первым */
	}
	.author-block {
		flex-direction: column;
		gap: 20px;
		padding: 8px;
		margin: 5px;
		background: var(--white);
	}
}
/* === UNIFIED PADDINGS === */
section {
	padding: 30px 0;
}
.hero,
.top-casinos {
	padding: 100px 0;
}
/* === CASINO CARD === */
.casino-card {
	display: grid;
	grid-template-columns: 25% 25% 25% 25%;
	background: var(--light-blue-background);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 30px;
	align-items: stretch;
	min-height: 130px; /* Reduced height */
	cursor: pointer;
}
.casino-column {
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.casino-logo-column {
	background: var(--brang-logo-background);
	align-items: center;
	text-align: center;
	position: relative;
}
.casino-logo {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 5px;
}
.casino-logo img {
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.rank {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--primary-blue);
	color: var(--white);
	padding: 4px 8px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.85rem;
}
.casino-name {
	color: var(--primary-blue);
	font-weight: 700;
	font-size: 1.2rem;
	text-transform: uppercase;
	margin: 0;
	text-align: center;
}
.casino-bonus-column {
	justify-content: center;
	align-items: center;
	text-align: center;
}
.bonus-title {
	font-weight: bold;
	font-size: 1.2rem;
	color: var(--primary-blue);
	margin-bottom: 5px;
}
.bonus {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--accent-blue);
}
.casino-pros-column {
	justify-content: center;
	align-items: flex-start;
	padding: 0;
	border-left: 1px solid var(--light-border);
	border-right: 1px solid var(--light-border);
}
.pros {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
}
.pros li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 7px; /* Adjusted to match cons spacing */
	color: var(--text-primary);
	line-height: 1.6; /* Adjusted to match body/default for cons */
	text-align: left;
}
.pros li::before {
	content: 'check_circle';
	font-family: 'Material Symbols Outlined';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--success-green);
	font-size: 16px;
	font-variation-settings:
		'FILL' 1,
		'wght' 400,
		'GRAD' 0,
		'opsz' 20;
}
.casino-rating-column {
	justify-content: space-between;
	align-items: center;
}
.rating {
	margin-bottom: 5px;
	text-align: center;
}
.rating-score {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--text-primary);
	margin-bottom: 2px;
}
.rating-stars {
	font-size: 1rem;
	color: var(--rating-stars-color);
	letter-spacing: -0.1em;
}
.rating-stars::before {
	content: '';
}
.specs {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 5px;
}
.spec-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--text-secondary);
}
.material-symbols-outlined {
	font-size: 16px;
	color: var(--accent-blue);
}
.btn {
	display: inline-block !important;
	background: #0d6efd !important;
	color: var(--white) !important;
	padding: 12px 60px !important;
	border-radius: 50px !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	text-align: center !important;

	transition:
		box-shadow 0.3s,
		transform 0.3s !important;
	font-size: 1rem !important;
	align-self: center !important;
	margin: 15px 10px 5px 10px !important;
}
.btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(to bottom, --button-hover-shadow, #2f6db8);
}
/* === CASINO CARD MOBILE === */
@media (max-width: 768px) {
	.casino-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto;
		min-height: auto;
	}
	.casino-logo-column {
		grid-column: 1 / 2;
		grid-row: 1 / 2;
		flex-direction: column;
		align-items: center;
	}
	.casino-bonus-column {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
	}
	.casino-pros-column {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
		align-items: center;
	}
	.casino-rating-column {
		grid-column: 1 / 2;
		grid-row: 4 / 5;
		align-items: center;
	}
	.casino-logo img {
		max-height: none;
		max-width: 100%;
		height: auto;
	}
	.casino-name {
		font-size: 1.1rem;
		text-align: center;
	}
	.bonus {
		font-size: 1.2rem;
	}
	.pros li {
		padding-left: 20px;
		margin-bottom: 7px; /* Adjusted to match cons spacing */
	}
	.spec-item {
		font-size: 0.85rem;
	}
	.btn {
		padding: 16px 60px;
		font-size: 1.3rem;
		box-shadow: 5px 8px 12px var(--button-shadow);
	}
	.rating-score {
		font-size: 1.3rem;
	}
	.rating-stars {
		font-size: 0.9rem;
	}
}
/* === INFO BOX === */
.info-box {
	background: var(--light-blue-background);
	padding: 20px 25px;
	border-radius: 10px;
	margin: 25px 0;
	border: 2px solid var(--accent-blue);
	position: relative;
	counter-increment: info-counter;
}
.info-box::before {
	content: counter(info-counter) '.';
	position: absolute;
	top: -15px;
	left: 20px;
	background: var(--light-blue-background);
	color: var(--accent-blue);
	font-size: 1.2rem;
	font-weight: 700;
	padding: 0 8px;
}
.info-box h3 {
	margin-bottom: 12px;
	color: var(--primary-blue);
	font-style: italic;
}
.info-box p {
	color: var(--text-secondary);
}
.text .container {
	counter-reset: info-counter;
}
/* === PROS & CONS === */
.pros-cons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.pros,
.cons {
	background: var(--light-blue-background);
	border-radius: 12px;
	padding: 10px 5px;
	text-align: center;
	box-shadow: 0 4px 10px var(--primary-blue-shadow-10);
}
.pros-title,
.cons-title {
	font-weight: 700;
	margin-bottom: 7px;
	color: var(--primary-blue);
	font-size: 1.2rem;
}
.pros ul,
.cons ul {
	list-style: none;
	padding-left: 20px;
	text-align: left;
}
.pros li,
.cons li {
	position: relative;
	margin-bottom: 7px;
	padding-left: 15px;
}
.pros li b,
.cons li b {
	color: var(--accent-blue);
}
.pros li::before,
.cons li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}
.pros li::before {
	background: var(--success-green);
}
.cons li::before {
	background: var(--danger-red);
}
/* === TABLE === */
.casino-table {
	overflow-x: auto; /* Added for horizontal scroll on tables that don't fit */
}
.casino-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--light-blue-background);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px var(--primary-blue-shadow-10);
}
.casino-table th,
.casino-table td {
	padding: 15px;
	text-align: left;
	font-size: 16px;
}
/* === TABLE PC === */
@media (min-width: 769px) {
	.casino-table th,
	.casino-table td {
		padding-left: 20px;
	}
}
/* === TABLE MOBILE === */
@media (max-width: 768px) {
	.casino-table th,
	.casino-table td {
		padding-left: 15px;
	}
}
.casino-table thead {
	background: linear-gradient(
		to right,
		var(--accent-blue),
		var(--primary-blue)
	);
	color: var(--white);
}
.casino-table tbody tr:nth-child(even) {
	background: var(--white);
}
.casino-table tbody a {
	color: var(--accent-blue);
	text-decoration: none;
	font-weight: 600;
}
.casino-table tbody a:hover {
	text-decoration: underline;
}
.stars::before {
	content: '★★★★★';
	letter-spacing: -0.1em;
	color: var(--accent-blue);
}
.stars[data-stars='4']::before {
	content: '★★★★☆';
}
.stars[data-stars='3']::before {
	content: '★★★☆☆';
}
.faq-item {
	margin-bottom: 15px;
	border: 1px solid var(--very-light-blue);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px var(--primary-blue-shadow-08);
	transition: all 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 4px 14px var(--primary-blue-shadow-12);
}

/* Убираем стили для input, так как он больше не нужен */

.faq-item label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	cursor: pointer;
	padding: 18px 22px;
	background: var(--light-blue-background);
	border-radius: 12px;
	transition: background 0.3s;
	user-select: none;
}

.faq-item label::after {
	content: '+';
	font-weight: 300;
	font-size: 1.5rem;
	color: var(--accent-blue);
	transition: transform 0.3s ease;
}

/* Состояние при активном классе */
.faq-item.active label {
	background: var(--very-light-blue);
}

.faq-item.active label::after {
	content: '−';
	transform: rotate(180deg); /* Опционально: поворот для красоты */
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 22px;
	background: var(--white);
	transition:
		max-height 0.4s ease,
		padding 0.4s ease;
}

/* Раскрытие ответа */
.faq-item.active .faq-answer {
	max-height: 1000px; /* Анимируемое значение вместо none */
	padding: 18px 22px;
}

.faq-answer p {
	margin: 0;
	color: var(--text-secondary);
}
/* === FOOTER === */
.footer {
	background: var(--primary-blue);
	padding: 35px 0;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.footer-left img {
	height: 40px;
}
.footer-right p {
	color: var(--white);
}

.img-cov {
	width: 100%;
	height: 100%;
	margin: 15px auto;
	max-width: 900px;
}
.img-cov.s {
	max-width: 100px;
	margin: 15px 0;
}
.img-cov img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
}

.footer__list {
	margin: 30px auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
	list-style: none;
}
.footer__list li a {
	color: white;
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
	.footer-inner {
		flex-direction: column;
		align-items: center;
	}
	.footer-left {
		margin-bottom: 20px;
	}
	.footer-right p {
		text-align: center;
	}
}
/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	p {
		font-size: 16px !important;
	}
	section {
		padding: 20px 0;
	}
	.hero {
		padding: 80px 0;
	}
	.top-casinos {
		padding: 30px 0;
	}
}
