/* Hero секция с текстом - обычная секция вверху страницы */
.docs-hero {
	position: relative;
	padding: 80px 0 60px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

.docs-hero-title {
	font-size: 4rem;
	font-weight: 600;
	margin: 0 0 32px;
	letter-spacing: 0.5px;
	color: #ffffff;
	font-family: 'Calibri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	text-shadow: 0 4px 20px rgba(110, 168, 254, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
	line-height: 1.2;
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	animation: titleAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.docs-hero-subtitle {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.8;
	font-weight: 400;
	font-family: 'Calibri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(15px);
	animation: subtitleAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes titleAppear {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes subtitleAppear {
	0% {
		opacity: 0;
		transform: translateY(15px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes contentAppear {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.subnav-subsection {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
	padding: 0;
}

.subnav-subsection.subnav-open {
	max-height: 500px;
	opacity: 1;
	padding: 0;
	transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

.command-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 24px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	position: relative;
	overflow: hidden;
}

.command-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.command-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	border-color: #3a3f4b;
}

.command-card:hover::before {
	transform: scaleX(1);
}

.command-card h2 {
	margin-top: 0;
	margin-bottom: 1.2rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font-size: 1.5rem;
	font-weight: 700;
}

.command-card h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text);
	font-size: 1.2rem;
}

.command-card h3:first-of-type {
	margin-top: 0;
}

.content-highlight {
	background: rgba(110, 168, 254, 0.2) !important;
	color: var(--primary) !important;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-block;
	animation: contentHighlight 3s ease-out forwards;
}

@keyframes contentHighlight {
	0% {
		background: rgba(110, 168, 254, 0.4);
		color: var(--primary);
		box-shadow: 0 0 0 0 rgba(110, 168, 254, 0.4);
	}
	30% {
		background: rgba(110, 168, 254, 0.3);
		box-shadow: 0 0 0 4px rgba(110, 168, 254, 0.15);
	}
	70% {
		background: rgba(110, 168, 254, 0.2);
		box-shadow: 0 0 0 6px rgba(110, 168, 254, 0.05);
	}
	100% {
		background: transparent;
		color: var(--text);
		box-shadow: 0 0 0 8px rgba(110, 168, 254, 0);
	}
}

/* Архитектура секция */
.architecture-diagram {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
	margin: 24px 0;
}

.arch-component {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	margin: 12px 0;
	background: rgba(110, 168, 254, 0.05);
	border-radius: 10px;
	border-left: 3px solid var(--primary);
}

.arch-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border-radius: 10px;
	flex-shrink: 0;
}

.arch-icon svg {
	width: 24px;
	height: 24px;
	color: #fff;
}

.arch-info h4 {
	margin: 0 0 4px;
	color: var(--text);
	font-size: 1.1rem;
}

.arch-info p {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

/* GitHub секция */
.github-versions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.github-version-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.github-version-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
}

.version-number {
	font-weight: 700;
	color: var(--primary);
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.version-date {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 12px;
}

@media (max-width: 900px) {
	.docs-hero-title {
		font-size: 2.5rem;
	}
	.docs-hero-subtitle {
		font-size: 1.1rem;
	}
}

/* Видео секции */
.video-section {
	margin: 32px 0;
}

.video-section h3 {
	margin-top: 0;
	margin-bottom: 16px;
}

.docs-video {
	width: 100%;
	max-width: 800px;
	margin: 24px auto;
	display: block;
	background: #000;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border);
}

@media (max-width: 640px) {
	.docs-hero-title {
		font-size: 2.5rem;
		letter-spacing: 0.3px;
	}
	.docs-hero-subtitle {
		font-size: 1.1rem;
	}
	
	.docs-video {
		margin: 20px auto;
		border-radius: 10px;
	}
	
	.docs-image {
		margin: 20px auto;
		max-width: 100%;
	}
}

.docs-image {
	width: 100%;
	max-width: 800px;
	margin: 24px auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border);
}

/* Open Source блок с VS Code */
.opensource-showcase {
	position: relative;
	background: linear-gradient(135deg, var(--panel) 0%, #1f2329 100%);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 36px;
	margin: 32px 0;
	display: flex;
	align-items: center;
	gap: 32px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}

.opensource-showcase:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.opensource-showcase-image {
	flex-shrink: 0;
	max-width: 220px;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.opensource-showcase-content {
	flex: 1;
	position: relative;
	z-index: 1;
}

.opensource-showcase-content h3 {
	margin: 0 0 16px 0;
	color: var(--text);
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.02em;
}

.opensource-showcase-content p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
	font-size: 1.05rem;
}

@keyframes gradientShift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

@media (max-width: 768px) {
	.opensource-showcase {
		flex-direction: column;
		text-align: center;
		padding: 28px;
		gap: 24px;
	}
	
	.opensource-showcase-image {
		width: 100%;
		max-width: 280px;
	}
	
	.opensource-showcase-content h3 {
		font-size: 1.3rem;
	}
}

