* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
	background: #000;
	color: #e0e0e0;
	min-height: 100vh;
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('https://i.imgur.com/ey5D3gj.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.45;
	z-index: -2;
	pointer-events: none;
}

body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: -1;
	pointer-events: none;
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 20px 30px;
	position: relative;
	z-index: 1;
}

.nav-bar {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 30px 0 30px;
	flex-wrap: wrap;
}

.nav-btn {
	background: #111;
	border: 1px solid #555;
	color: #ccc;
	padding: 10px 24px;
	font-size: 1rem;
	border-radius: 40px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
	text-decoration: none;
	transition: 0.2s;
}

.nav-btn:hover {
	background: #2a2a2a;
	border-color: #aaa;
	color: #fff;
	transform: scale(1.02);
}

.header-title {
	text-align: center;
	margin: 10px 0 5px;
}

.main-logo {
	font-size: 4.2rem;
	font-weight: 800;
	color: #f0f0f0;
	text-shadow: 0 0 15px #aaa, 0 0 30px #3a3a3a;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.main-logo i {
	font-size: 4.5rem;
	color: #bbb;
}

.author-line {
	font-size: 1.4rem;
	color: #aaa;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #111111b0;
	padding: 8px 30px;
	border-radius: 60px;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #3a3a3a;
	backdrop-filter: blur(2px);
}

.order-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px 0 30px;
	position: relative;
}

.order-btn {
	background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
	border: 2px solid #8a8a8a;
	color: #fff;
	font-size: 2rem;
	font-weight: bold;
	padding: 22px 60px;
	border-radius: 80px;
	cursor: pointer;
	transition: 0.25s;
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.2);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.order-btn:hover {
	background: linear-gradient(145deg, #3d3d3d, #1a1a1a);
	border-color: #c0c0c0;
	box-shadow: 0 20px 30px #000, 0 0 25px #9a9a9a;
	transform: scale(1.02);
}

.order-btn small {
	font-size: 1.2rem;
	color: #c0c0c0;
}

.search-section {
	display: flex;
	justify-content: center;
	margin: 20px 0 35px;
}

.search-wrapper {
	position: relative;
	width: 100%;
	max-width: 550px;
}

#searchInput {
	width: 100%;
	background: #151515;
	border: 2px solid #4a4a4a;
	border-radius: 70px;
	padding: 18px 25px;
	font-size: 1.2rem;
	color: #f0f0f0;
	outline: none;
	transition: 0.2s;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

#searchInput:focus {
	border-color: #9a9a9a;
	background: #1e1e1e;
}

.search-icon {
	position: absolute;
	right: 25px;
	top: 50%;
	transform: translateY(-50%);
	color: #777;
	font-size: 1.4rem;
}

.category-filter {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 30px 0 20px;
	flex-wrap: wrap;
}

.category-btn {
	background: transparent;
	border: 2px solid #5a5a5a;
	color: #ccc;
	padding: 12px 30px;
	border-radius: 50px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
}

.category-btn.active {
	background: #2a2a2a;
	border-color: #aaa;
	color: #fff;
	box-shadow: 0 0 15px #7a7a7a;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin: 30px 0;
}

.gallery-item {
	background: #141414;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid #3f3f3f;
	transition: 0.15s;
	box-shadow: 0 12px 20px -8px #000;
	display: flex;
	flex-direction: column;
}

.gallery-item:hover {
	border-color: #888;
	transform: translateY(-6px);
}

.media-container {
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #0a0a0a;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #333;
	max-height: 480px;
}

.media-container img,
.media-container video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
}

.media-container video,
.preview-card video {
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.media-container video::-webkit-media-controls,
.preview-card video::-webkit-media-controls {
	display: none !important;
}

.media-container video::-webkit-media-controls-enclosure,
.preview-card video::-webkit-media-controls-enclosure {
	display: none !important;
}

.item-info {
	padding: 16px 14px 14px;
	background: #0f0f0f;
}

.item-title {
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 8px;
	color: #f0f0f0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}

.item-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 8px 0;
}

.tag {
	background: #2b2b2b;
	padding: 4px 12px;
	border-radius: 30px;
	font-size: 0.75rem;
	color: #bcbcbc;
	border: 1px solid #4b4b4b;
}

.item-topic {
	background: #1e1e1e;
	padding: 4px 12px;
	border-radius: 30px;
	font-size: 0.8rem;
	display: inline-block;
	border: 1px solid #555;
	color: #d4d4d4;
	margin-top: 5px;
}

.item-category-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 0.7rem;
	background: #333;
	border: 1px solid #666;
	margin-left: 5px;
}

.item-date {
	font-size: 0.75rem;
	color: #888;
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.admin-delete-btn {
	background: #330000;
	border: 1px solid #a00;
	color: #ff8a8a;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	margin-top: 8px;
	cursor: pointer;
	width: fit-content;
}

.admin-delete-btn:hover {
	background: #5a0000;
	color: #fff;
}

.tz-constructor {
	background: transparent;
	border: 2px solid #555;
	border-radius: 50px;
	padding: 40px;
	margin: 40px 0 30px;
	backdrop-filter: blur(2px);
}

.tz-constructor h2 {
	font-size: 2.4rem;
	color: #ddd;
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.reference-sources {
	background: rgba(30, 30, 30, 0.7);
	border-radius: 60px;
	padding: 24px 30px;
	margin-bottom: 36px;
	border: 1px solid #666;
	backdrop-filter: blur(4px);
	text-align: center;
}

.reference-sources p {
	font-size: 1.1rem;
	margin-bottom: 16px;
	color: #ccc;
}

.sources-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.source-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #333;
	padding: 10px 24px;
	border-radius: 50px;
	border: 1px solid #777;
	transition: 0.2s;
	text-decoration: none;
	color: #ddd;
	font-size: 1.05rem;
	font-weight: 500;
}

.source-item:hover {
	background: #444;
	border-color: #aaa;
	color: #fff;
}

.quiz-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 24px 0;
}

.quiz-item {
	background: transparent;
	border-bottom: 2px solid #555;
	padding: 8px 0 16px;
}

.quiz-item-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.question-icon {
	font-size: 1.8rem;
	width: 44px;
	text-align: center;
	color: #aaa;
}

.question-title {
	font-size: 1.5rem;
	font-weight: 500;
	color: #eee;
}

.quiz-item-description {
	color: #bbb;
	margin-bottom: 10px;
	font-size: 1rem;
	padding-left: 58px;
}

.quiz-item-field {
	width: 100%;
	padding: 14px 22px;
	background: #222;
	border: 2px solid #555;
	border-radius: 60px;
	color: #eee;
	font-size: 1.05rem;
	outline: none;
	transition: 0.2s;
}

.quiz-item-field:focus {
	border-color: #888;
	background: #2a2a2a;
}

.format-hint {
	margin-top: 12px;
	padding-left: 58px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.format-hint span {
	background: #2a2a2a;
	padding: 5px 12px;
	border-radius: 30px;
	border: 1px solid #666;
	font-size: 0.9rem;
	color: #ccc;
}

.generate-btn {
	background: transparent;
	border: 3px solid #888;
	color: #eee;
	font-size: 1.6rem;
	padding: 16px 42px;
	border-radius: 70px;
	cursor: pointer;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 14px 0 22px;
	transition: 0.2s;
}

.generate-btn:hover {
	background: #333;
	border-color: #aaa;
	transform: scale(1.02);
}

.result-area {
	background: rgba(20, 20, 20, 0.8);
	border: 2px solid #666;
	border-radius: 50px;
	padding: 24px;
	margin: 20px 0;
	backdrop-filter: blur(4px);
}

.result-text {
	background: #111;
	border-radius: 36px;
	padding: 18px 22px;
	color: #ccc;
	font-size: 1.05rem;
	white-space: pre-wrap;
	border: 1px solid #555;
	margin-bottom: 18px;
}

.result-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

.action-btn {
	background: #2a2a2a;
	border: 2px solid #666;
	color: #ddd;
	padding: 12px 28px;
	border-radius: 60px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.action-btn:hover {
	background: #3a3a3a;
	border-color: #aaa;
	color: #fff;
}

.promo-near-button {
	position: absolute;
	background: #1e1e1e;
	border: 2px solid #7f7f7f;
	padding: 12px 20px;
	border-radius: 50px;
	color: #ddd;
	font-size: 0.95rem;
	white-space: nowrap;
	box-shadow: 0 10px 20px #000;
	z-index: 1000;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.smoke-effect {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	transform: scale(0);
	animation: smoke 1s ease-out;
	pointer-events: none;
	z-index: 10;
	mix-blend-mode: screen;
}

@keyframes smoke {
	0% {
		transform: scale(0);
		opacity: 0.7;
		filter: blur(2px);
	}
	100% {
		transform: scale(8);
		opacity: 0;
		filter: blur(12px);
	}
}

.admin-panel {
	background: #111;
	border: 2px solid #4f4f4f;
	border-radius: 30px;
	padding: 30px;
	margin: 30px 0;
	display: none;
}

.admin-panel.visible {
	display: block;
}

.admin-panel h2 {
	margin-bottom: 20px;
	color: #ccc;
	border-left: 6px solid #777;
	padding-left: 15px;
}

.admin-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 560px;
}

.admin-form input,
.admin-form select,
.admin-form button {
	background: #222;
	border: 1px solid #4f4f4f;
	padding: 12px 18px;
	border-radius: 50px;
	color: #fff;
	font-size: 1rem;
}

.admin-form button {
	background: #2a2a2a;
	border: 2px solid #777;
	font-weight: bold;
	cursor: pointer;
}

.admin-form button:hover {
	background: #3d3d3d;
	border-color: #aaa;
}

.preview-card {
	padding: 8px;
	background: #111;
	border-radius: 8px;
	border: 1px solid #333;
	width: fit-content;
}

.preview-card img,
.preview-card video {
	max-width: 220px;
	border-radius: 8px;
	display: block;
}

.site-footer {
	text-align: center;
	padding: 30px 20px 20px;
	border-top: 1px solid #2f2f2f;
	margin-top: 60px;
	color: #8f8f8f;
	font-size: 0.95rem;
}

.site-footer a {
	color: #c0c0c0;
	text-decoration: none;
	border-bottom: 1px dotted #5f5f5f;
}

.footer-main {
	margin-bottom: 12px;
	font-size: 0.95rem;
}

.footer-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

.created-by {
	cursor: pointer;
	color: #c0c0c0;
	border-bottom: 1px dotted #5f5f5f;
	padding-bottom: 2px;
}

.created-by:hover {
	color: #e0e0e0;
	border-bottom-color: #8f8f8f;
}

.footer-divider {
	color: #5f5f5f;
	font-size: 0.8rem;
}

.developer-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.developer-modal-overlay.visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.developer-modal {
	background: #2a2a2a;
	border: 1px solid #4a4a4a;
	border-radius: 12px;
	padding: 30px;
	max-width: 380px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
	position: relative;
	transform: scale(0.96) translateY(-10px);
	transition: transform 0.25s ease;
}

.developer-modal-overlay.visible .developer-modal {
	transform: scale(1) translateY(0);
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	color: #8f8f8f;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.modal-close:hover {
	background: #3f3f3f;
	color: #e0e0e0;
}

.developer-modal h3 {
	margin: 0 0 20px 0;
	font-size: 1.2rem;
	color: #e0e0e0;
	font-weight: 600;
}

.modal-content {
	color: #c0c0c0;
	line-height: 1.6;
	font-size: 0.95rem;
}

.modal-content p {
	margin: 0;
}

.modal-content code {
	background: #1f1f1f;
	padding: 4px 8px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	color: #90ee90;
	font-size: 0.9rem;
}

.toast-message {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #1e1e1e;
	border-left: 6px solid #b0b0b0;
	padding: 16px 22px;
	border-radius: 14px;
	color: #fff;
	box-shadow: 0 10px 30px #000;
	z-index: 9999;
	max-width: 420px;
	border: 1px solid #5a5a5a;
}

.faq-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.faq-overlay.visible {
	opacity: 1;
	visibility: visible;
}

.faq-panel {
	background: linear-gradient(145deg, #0a0f1e, #010101);
	border: 3px solid #3e3e4a;
	border-radius: 60px 60px 30px 30px;
	max-width: 700px;
	width: 90%;
	position: relative;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(118, 118, 152, 0.2);
}

.faq-corner {
	background: #1e1e2c;
	padding: 20px 30px 10px;
	border-bottom: 4px dashed #5a5a7a;
	text-align: center;
	border-radius: 56px 56px 0 0;
}

.faq-message {
	background: #08080e;
	padding: 30px 30px;
	font-size: 1.1rem;
	color: #d0d0e0;
	border-radius: 50px 50px 25px 25px;
	margin: 14px;
	border: 2px solid #3d3d55;
	display: flex;
	align-items: center;
	gap: 20px;
}

.close-faq {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #aaa;
	font-size: 2.4rem;
	cursor: pointer;
}

@media (max-width: 768px) {
	.container {
		padding: 16px;
	}

	.main-logo {
		font-size: 2.2rem;
	}

	.main-logo i {
		font-size: 2.4rem;
	}

	.author-line {
		font-size: 1rem;
		padding: 8px 16px;
	}

	.order-btn {
		width: 100%;
		font-size: 1.3rem;
		padding: 18px;
	}

	.category-btn {
		font-size: 1rem;
		padding: 10px 18px;
	}

	.tz-constructor {
		padding: 20px;
		border-radius: 28px;
	}

	.tz-constructor h2 {
		font-size: 1.5rem;
	}

	.quiz-item-description,
	.format-hint {
		padding-left: 0;
	}

	.source-item {
		font-size: 0.95rem;
	}

	.promo-near-button {
		white-space: normal;
		max-width: calc(100vw - 24px);
	}
}
