.db-home-page,
.db-home-page * {
	box-sizing: border-box;
}

.db-home-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #1a1d24;
	padding: 36px 0 60px;
	background: #ffffff;
}

.db-home-page .db-home-container {
	max-width: 1450px;
	margin: 0 auto;
	padding: 0 32px;
}

.db-home-page .db-home-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

.db-home-page .db-home-sidebar { min-width: 0; }
.db-home-page .db-home-sidebar .sticky-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: sticky;
	top: 20px;
}

.db-home-page .db-home-main {
	min-width: 0;
}

.db-home-page .db-mobile-cats-toggle { display: none; }

/* ============================================
   HERO
   ============================================ */

.db-home-hero {
	position: relative;
	padding: 48px 44px 52px;
	border-radius: 20px;
	background-image:
		linear-gradient(135deg, rgba(10, 14, 26, 0.82) 0%, rgba(0, 43, 128, 0.7) 60%, rgba(10, 14, 26, 0.85) 100%),
		url('/wp-content/uploads/2026/04/moscow1.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	margin-bottom: 44px;
}

.db-home-hero::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -120px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(0, 57, 166, 0.12) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}
.db-home-hero::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(213, 43, 30, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.db-home-hero-content {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.db-home-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin-bottom: 22px;
	box-shadow: 0 4px 14px rgba(0, 57, 166, 0.08);
}
.db-home-hero-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.db-home-hero-title {
	font-family: 'Inter', sans-serif;
	font-size: 44px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0 0 20px;
}
.db-home-hero-title .db-hero-accent {
	color: #fff;
	position: relative;
	display: inline-block;
}
.db-home-hero-title .db-hero-accent::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 8px;
	background: rgba(213, 43, 30, 0.18);
	z-index: -1;
	border-radius: 2px;
}

.db-home-hero-sub {
	font-size: 17px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 28px;
	max-width: 620px;
	font-weight: 400;
}

.db-home-hero-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.db-home-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	background: #d52b1e;
	color: #ffffff;
	text-decoration: none;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.005em;
	box-shadow: 0 12px 30px rgba(213, 43, 30, 0.32);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.db-home-hero-cta:hover {
	background: #b32218;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(213, 43, 30, 0.4);
}
.db-home-hero-cta svg {
	width: 17px;
	height: 17px;
}

.db-home-hero-secondary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 15px 24px;
	background: #ffffff;
	border: 1.5px solid #d0d6e2;
	border-radius: 12px;
	color: #0039a6;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.db-home-hero-secondary:hover {
	border-color: #0039a6;
	color: #0039a6;
	transform: translateY(-2px);
}
.db-home-hero-secondary svg {
	width: 16px;
	height: 16px;
}

.db-home-hero-features {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}
.db-home-hero-feature {
	display: flex;
	align-items: center;
	gap: 10px;
}
.db-home-hero-feature-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #d0d6e2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0039a6;
	flex-shrink: 0;
}
.db-home-hero-feature-icon svg {
	width: 18px;
	height: 18px;
}
.db-home-hero-feature-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.db-home-hero-feature-num {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.015em;
}
.db-home-hero-feature-label {
	font-size: 12px;
	color: #d4d9e2;
	font-weight: 500;
	margin-top: 2px;
}

/* ============================================
   ПОПУЛЯРНЫЕ КАТЕГОРИИ
   ============================================ */

.db-home-popular {
	margin-bottom: 44px;
}

.db-home-section-head {
	margin-bottom: 24px;
}
.db-home-section-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #0039a6;
	background: rgba(0, 57, 166, 0.08);
	padding: 6px 14px;
	border-radius: 14px;
	margin-bottom: 12px;
}
.db-home-section-head h2 {
	font-family: 'Inter', sans-serif;
	font-size: 30px;
	font-weight: 800;
	color: #0a0e1a;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 8px;
}
.db-home-section-head p {
	font-size: 15px;
	line-height: 1.55;
	color: #5a6478;
	margin: 0;
	max-width: 640px;
}

.db-home-cats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.db-home-cat-card {
	background: #ffffff;
	border: 1px solid #e4e8f0;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 0;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	position: relative;
}
.db-home-cat-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0039a6, #d52b1e);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
	z-index: 2;
}
.db-home-cat-card:hover {
	transform: translateY(-3px);
	border-color: #c0c8d8;
	box-shadow: 0 16px 36px -18px rgba(0, 57, 166, 0.22);
	color: inherit;
}
.db-home-cat-card:hover::before { transform: scaleX(1); }

.db-home-cat-photo {
	background: linear-gradient(180deg, #f7f9fc 0%, #eef2fb 100%);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.db-home-cat-photo img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
	display: block;
	transition: transform 0.4s ease;
}
.db-home-cat-card:hover .db-home-cat-photo img {
	transform: scale(1.05);
}
.db-home-cat-stub {
	color: #c0c8d8;
}
.db-home-cat-stub svg {
	width: 40px;
	height: 40px;
}

.db-home-cat-info {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 0;
}
.db-home-cat-title {
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 800;
	color: #0a0e1a;
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.db-home-cat-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.db-home-cat-count {
	font-size: 13px;
	font-weight: 600;
	color: #5a6478;
	padding: 4px 10px;
	background: #f7f9fc;
	border-radius: 10px;
}
.db-home-cat-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 57, 166, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0039a6;
	flex-shrink: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}
.db-home-cat-card:hover .db-home-cat-arrow {
	background: #0039a6;
	color: #ffffff;
	transform: translateX(3px);
}
.db-home-cat-arrow svg {
	width: 14px;
	height: 14px;
}

/* ============================================
   GUTENBERG CONTENT
   ============================================ */

.db-home-content {
	margin-bottom: 44px;
}
.db-home-content .db-entry-content {
	font-size: 16px;
	line-height: 1.7;
	color: #1a1d24;
}
.db-home-content .db-entry-content h2,
.db-home-content .db-entry-content h3 {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	color: #0a0e1a;
	letter-spacing: -0.018em;
}
.db-home-content .db-entry-content h2 { font-size: 26px; margin: 1.4em 0 0.5em; }
.db-home-content .db-entry-content h3 { font-size: 20px; margin: 1.2em 0 0.4em; }
.db-home-content .db-entry-content p { margin: 0 0 1em; }
.db-home-content .db-entry-content a { color: #0039a6; text-decoration: underline; }

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

@media (max-width: 1200px) {
	.db-home-page .db-home-layout {
		grid-template-columns: 240px 1fr;
		gap: 28px;
	}
	.db-home-hero-title { font-size: 38px; }
}

@media (max-width: 980px) {
	.db-home-page { padding: 24px 0 50px; }
	.db-home-page .db-home-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.db-home-page .db-home-sidebar { display: none; }
	.db-home-page .db-mobile-cats-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 13px 22px;
		background: #ffffff;
		border: 1.5px solid #d0d6e2;
		border-radius: 11px;
		font-family: 'Inter', sans-serif;
		font-size: 15px;
		font-weight: 600;
		color: #0039a6;
		cursor: pointer;
		margin-bottom: 24px;
		transition: background 0.2s ease, border-color 0.2s ease;
	}
	.db-home-page .db-mobile-cats-toggle:hover {
		background: #f7f9fc;
		border-color: #0039a6;
	}
	.db-home-page .db-mobile-cats-toggle svg {
		width: 18px;
		height: 18px;
	}

	.db-home-hero {
		padding: 40px 32px 44px;
		margin-bottom: 36px;
	}
	.db-home-hero-title { font-size: 36px; }
}

@media (max-width: 720px) {
	.db-home-page .db-home-container { padding: 0 16px; }
	.db-home-page .db-mobile-cats-toggle {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	.db-home-hero {
		padding: 28px 22px 32px;
		border-radius: 16px;
		margin-bottom: 30px;
	}
	.db-home-hero-tag {
		font-size: 12px;
		padding: 6px 14px;
		margin-bottom: 18px;
	}
	.db-home-hero-title { font-size: 28px; }
	.db-home-hero-sub { font-size: 15px; margin-bottom: 22px; }
	.db-home-hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 26px;
	}
	.db-home-hero-cta,
	.db-home-hero-secondary {
		justify-content: center;
		padding: 13px 22px;
	}
	.db-home-hero-features {
		gap: 16px;
	}
	.db-home-hero-feature-icon {
		width: 34px;
		height: 34px;
	}
	.db-home-hero-feature-num { font-size: 15px; }

	.db-home-popular { margin-bottom: 32px; }
	.db-home-section-head h2 { font-size: 24px; }
	.db-home-cats-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.db-home-cat-card {
		grid-template-columns: 110px 1fr;
	}
	.db-home-cat-info { padding: 14px 16px; }
	.db-home-cat-title { font-size: 15px; }
}

@media (max-width: 420px) {
	.db-home-cat-card {
		grid-template-columns: 90px 1fr;
	}
	.db-home-cat-info { padding: 12px 14px; gap: 8px; }
	.db-home-cat-title { font-size: 14px; }
	.db-home-cat-count { font-size: 12px; padding: 3px 8px; }
	.db-home-cat-arrow { width: 28px; height: 28px; }
}
