/* roboto-regular - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/roboto-v30-cyrillic_latin-regular.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	src: url('fonts/roboto-v30-cyrillic_latin-italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-500 - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	src: url('fonts/roboto-v30-cyrillic_latin-500.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-500italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 500;
	src: url('fonts/roboto-v30-cyrillic_latin-500italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/roboto-v30-cyrillic_latin-700.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 700;
	src: url('fonts/roboto-v30-cyrillic_latin-700italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
	padding: 0;
	margin: 0;
	box-sizing: content-box;
}

body {
	font-family: 'Roboto', sans-serif;
	margin: auto;
	background-color: var(--body-bg);
	line-height: 1.5;
	font-size: 17px;
}

a {
	color: var(--font-1);
	text-decoration: none;
}

ol,
ul {
	display: block;
	margin-left: 35px;
}

ol li,
ul li {
	margin: 10px 0;
}

blockquote {
	display: block;
	padding: 5px 13px;
	border-left: 4px solid #9191ff;
	color: var(--font-1);
	margin: 20px 0;
}

blockquote p {
	margin: 0 !important;
	;
}

header {
	position: fixed;
	width: 100%;
	z-index: 8;
	background-color: var(--h-bg);
	display: flex;
	backdrop-filter: blur(10px);
}

header .h__link {
	color: #fff;
	background-color: var(--bg-2);
	padding: 8px 10px;
	font-size: 15px;
	border-radius: 7px;
	display: inline-flex;
	gap: 7px;
}

header .h__link svg {
	width: 20px;
	height: 20px;
	vertical-align: -5px
}

header .logo {
	font-size: 24px;
	color: var(--font-1);
	text-transform: lowercase;
	font-weight: 500;
}

header .flrw {
	display: flex;
	gap: 15px;
}

header button {
	background-color: transparent;
	color: var(--font-1);
	border: 0;
	cursor: pointer;
}

header svg {
	width: 24px;
	height: 24px;
	vertical-align: middle;
}

.header__container {
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	width: 890px;
	padding: 10px 0;
}

.container {
	display: grid;
	padding-top: 80px;
	padding-bottom: 30px;
	max-width: 890px;
	margin: auto;
	box-sizing: border-box;
	grid-template-columns: 240px 1fr;
}

.title {
	font-size: 21px;
	font-weight: 500;
	display: inline-block;
	margin-bottom: 10px;
	color: var(--font-1);
}

.success {
	display: block;
	text-align: center;
	padding: 10px;
	background-color: #d8eed5;
	color: #465b43;
	margin: 10px 0;
	border-radius: 7px;
}

.error {
	display: block;
	text-align: center;
	padding: 10px;
	background-color: #ffe3e3;
	color: #936767;
	margin: 10px 0;
	border-radius: 7px;
}

.error a {
	color: #5b4343;
	border-bottom: 1px dashed;
	font-weight: 500;
}

.context__btn {
	position: absolute;
	right: -7px;
	top: -7px;
	border: 0;
	background-color: transparent;
	cursor: pointer;
	font-size: 14px;
}

.context__menu {
	display: none;
	position: absolute;
	background: var(--bg-4);
	border-radius: 7px;
	right: 0;
	box-shadow: 0 5px 5px 5px #0000000a;
	border: 1px solid #8484843d;
	width: 170px;
	padding: 5px;
	top: 15px;
	z-index: 1;
}

.context__menu a {
	display: block;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 16px;
}

.context__menu a:hover {
	background-color: var(--bg-5);
}

.context__menu.active {
	display: block;
}

.users {
	display: grid;
	grid-gap: 5px;
	padding: 10px 20px;
}

.user {
	padding: 20px;
	background-color: var(--bg-1);
	border-radius: 10px;
	color: var(--font-1);
}

.user__title {
	font-size: 20px;
	font-weight: 500;
	color: var(--font-1);
}

.user__info {
	display: block;
	margin-bottom: 20px;
	color: var(--font-1);
}

input,
textarea,
button {
	outline: none;
}

textarea {
	min-height: 200px;
	resize: vertical;
	line-height: 1.5;
	font-family: 'Roboto', sans-serif;
}

.input__text {
	padding: 10px;
	border: 1px solid #8484843d;
	display: block;
	margin: 7px 0;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	color: var(--font-1);
	width: 100%;
	box-sizing: border-box;
	border-radius: 7px;
	background-color: var(--bg-1);
}

.input__btn {
	padding: 10px;
	border: 0;
	display: block;
	margin: 7px 0;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	color: #fff;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	border-radius: 7px;
}

.bbcode__panel {
	display: flex;
	margin-top: 10px;
	background-color: #fff;
	margin-bottom: -8px;
	border: 1px solid #ddd;
	flex-wrap: wrap;
}

.bbcode__panel button {
	display: inline-flex;
	background-color: transparent;
	border: 0;
	padding: 10px;
	cursor: pointer;
	font-size: 15px;
}

.row__between {
	display: flex;
	justify-content: space-between;
}

.row__center {
	display: flex;
	justify-content: center;
}

.editor__content {
	display: block;
	padding: 20px;
	background-color: var(--bg-1);
	border-radius: 10px;
}

.ml__block {
	display: none;
	position: absolute;
	top: 60px;
	right: 0;
	background-color: var(--bg-4);
	padding: 7px;
	grid-gap: 3px;
	width: 200px;
	box-shadow: 0 5px 5px 5px #0000000a;
	border-radius: 10px;
	border: 1px solid #8484843d;
}

.ml__block.open {
	display: grid;
}

.ml__block a {
	color: var(--font-1);
	padding: 7px;
	border-radius: 7px;
}

.ml__block a:hover {
	background-color: var(--bg-5);
}

.ml__block svg {
	margin-right: 10px;
}

.success__btn {
	background-color: var(--success);
}

.default__btn {
	background-color: #000;
}

.main__menu__block {
	display: grid;
	grid-gap: 15px;
	position: sticky;
	top: 80px;
	margin-right: 15px;
}

.cat {
	display: block;
	background-color: var(--bg-1);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	position: relative;
}

.cat .context__btn {
	top: 12px;
	right: 18px;
	color: var(--font-4);
}

.cat .context__menu {
	text-align: left;
	right: 20px;
	top: 33px;
}

.cat svg {
	width: 24px;
	height: 24px;
}

.cat__image {
	overflow: hidden;
	border-radius: 10px;
	display: inline-block;
	object-fit: cover;
	width: 110px;
	height: 110px;
}

.cat__image img {
	width: 100%;
	height: 100%;
}

.cat__block {
	display: flex;
	gap: 13px;
	align-items: center;
}

.cat__block:hover {
	opacity: .7;
}

.cat__title {
	font-size: 21px;
	font-weight: 500;
	display: flex;
	gap: 10px;
	justify-content: center;
	color: var(--font-1);
}

.cat__subtitle {
	font-size: 16px;
	display: block;
	margin-top: 5px;
	color: var(--font-1);
}

.c__edit {
	font-size: 15px;
	font-weight: 400;
}

.buttons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 10px;
}

.news__box {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 20px;
}

.news {
	background-color: var(--bg-1);
	padding: 20px;
	display: grid;
	grid-gap: 20px;
	border-radius: 10px;
}

.news svg {
	width: 24px;
	height: 24px;
	vertical-align: -5px;
	margin-right: 5px;
}

.news__block,
.news__block__full {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 1fr;
	color: var(--font-1);
}

.news__block__full p a,
.news p a {
	color: var(--font-3);
}

.news__block__full p a:hover,
.news p a:hover {
	opacity: .7;
}

.news__title {
	font-size: 22px;
	color: var(--font-1);
	font-weight: 500;
}

.news__title:hover {
	opacity: .7;
}

.news__title__full {
	font-size: 22px;
	font-weight: 500;
	color: var(--font-1);
}

.news__content {
	color: var(--font-2);
}

.news__content iframe {
	width: 100%;
	height: 40vh;
	border-radius: 10px;
	margin: 10px 0;
}

.news__content a {
	color: var(--font-3);
}

.news__content p {
	margin: 15px 0;
}

.news__content img {
	width: 100%;
	border-radius: 10px;
	margin: 5px 0;
}

.news__content h3 {
	font-weight: 500;
	color: var(--font-1);
	margin: 10px 0;
}

.news__image {
	display: block;
	overflow: hidden;
	position: relative;
	height: 0;
	padding: 30% 0;
	border-radius: 10px;
}

.news__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 auto;
	position: absolute;
	top: 0;
}

.news__item {
	display: grid;
	align-content: space-between;
	position: relative;
	color: var(--font-2);
}

.news__items {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: -5px;
}

.news__items .cat__link {
	padding: 4px 10px;
	font-size: 16px;
	color: #fff;
	background-color: #333;
	border-radius: 7px;
}

.news__items .link {
	padding: 4px 10px;
	font-size: 16px;
	color: #333;
	background-color: #f0f0f0;
	border-radius: 7px;
}

.news__items .link:hover {
	color: #fff;
	background-color: #333;
}

.news__subtitle {
	font-size: 15px;
	color: #666;
	display: flex;
	justify-content: space-between;
}

.news__image__full {
	display: block;
	overflow: hidden;
	position: relative;
	height: 0;
	padding: 30% 0;
	border-radius: 10px;
}

.news__image__full img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 auto;
	position: absolute;
	top: 0;
}

.cat__link__full {
	color: #fff !important;
	background-color: #333 !important;
}

.news__info {
	display: flex;
	gap: 10px;
	margin-bottom: 7px;
	align-items: center;
	position: relative;
}

.news__info svg {
	width: 24px;
	height: 24px;
	vertical-align: -5px;
	margin-right: 5px;
	color: var(--font-4);
}

.news__cat__img {
	width: 40px;
	height: 40px;
	display: inline-block;
	overflow: hidden;
	border-radius: 100%;
	position: relative;
}

.news__cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
}

.news__info__items {
	display: grid;
	font-size: 16px;
	color: var(--font-4);
}

.news__info__items .c__link {
	font-size: 15px;
}

.news__info__items .u__link {
	color: var(--font-1);
}

.news__info__items div {
	display: flex;
	gap: 10px;
	font-size: 14px;
}

.news__info__items div a b {
	font-weight: 500;
}

.news__tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.news__tags a {
	color: var(--font-3);
}

.news__tags a:hover {
	opacity: .7;
}

.tag__content {
	padding: 020px;
	display: block;
	background-color: var(--bg-1);
	border-radius: 10px;
}

.comments__box {
	background-color: var(--bg-1);
	padding: 20px;
	border-radius: 10px;
}

#comments-container {
	display: grid;
	grid-gap: 20px;
}

#comment-form {
	margin-bottom: 50px;
	display: block;
}

.comments__title {
	display: block;
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 15px;
	color: var(--font-1);
}

.comment {
	display: grid;
	grid-gap: 10px;
}

.comment div iframe {
	width: 100%;
	height: 20em;
}

.comment__info {
	display: grid;
	grid-template-columns: 40px 1fr;
	grid-gap: 10px;
	align-items: center;
}

.comment__avatar {
	width: 40px;
	height: 40px;
	display: inline-block;
	overflow: hidden;
	position: relative;
	border-radius: 100%;
}

.comment__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comment__items {
	display: grid;
}

.comment__items a {
	font-weight: 500;
	font-size: 15px;
}

.comment__items span {
	font-size: 14px;
	color: var(--font-4);
}

.comment__content {
	color: var(--font-1);
	display: grid;
}

.menu__user {
	padding: 10px 20px;
}

.menu__user__bar {
	display: flex;
	padding: 10px 20px;
	gap: 10px;
	justify-content: right;
}

.menu__user__bar a {
	padding: 7px 15px;
	background-color: #000;
	color: #fff;
	font-size: 14px;
}

.avatar {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 100%;
}

.search__block {
	display: none;
	position: absolute;
	right: 205px;
	top: 0;
	padding: 10px 0;
	background-color: transparent;
	box-sizing: border-box;
	width: 50%;
}

.search__block.open {
	display: block;
}

.search_box input[type="text"] {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	outline: none;
	overflow: hidden;
	background-color: #888888c7;
	font-size: 16px;
	color: #fff;
	padding: 10px;
	box-sizing: border-box;
	font-family: 'Roboto', sans-serif;
	border-radius: 7px;
	backdrop-filter: blur(10px);
}

.search_box input[type="submit"] {
	display: inline-block;
	width: 17px;
	height: 17px;
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
	overflow: hidden;
	text-indent: -999px;
	background: url(https://snipp.ru/demo/127/search.png) 0 0 no-repeat;
	position: absolute;
	top: 9px;
	right: 16px;
}

/* Стили для плашки с результатами */
.search_result {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	z-index: 7;
	width: 100%;
	box-sizing: border-box;
	margin-top: -1px;
	box-shadow: 0 0 10px 10px #0000001a;
	border-radius: 7px;
}

.search_result .row__center a {
	color: #6d6d6d;
}

.search__link {
	display: block;
	padding: 12px 15px;
	color: #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-sizing: border-box;
}

.search__link:hover {
	opacity: .7;
}

.cat,
.news,
.user,
.comments__box,
.editor__content,
.tag__content {
	box-shadow: 0 5px 10px 5px #00000005;
}

.mt10 {
	margin-top: 10px;
}

.mt20 {
	margin-top: 20px;
}

.btn__success {
	background-color: var(--success);
}

.error__btn {
	background-color: #ff6a6a;
}

.page-menu {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 20px 0;
}

.page-menu .page {
	display: inline-flex;
	padding: 5px 14px;
}

.page-menu a.page {
	background-color: var(--bg-2);
	color: #fff;
	border-radius: 7px;
}

.page-menu span.page {
	background-color: var(--bg-3);
	color: #777;
	border-radius: 7px;
}

/* Работа с файлами */
.input-file-row {
	display: block;
	margin-top: 10px;
}

.input-file {
	position: relative;
	display: block;
}

.input-file span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 16px;
	vertical-align: middle;
	color: #fff;
	text-align: center;
	background-color: var(--bg-2);
	line-height: 22px;
	height: 40px;
	padding: 10px 20px;
	box-sizing: border-box;
	border: none;
	margin: 0;
	transition: background-color 0.2s;
	border-radius: 7px;
	width: 100%;
}

.input-file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}

.input-file:hover span {
	background-color: #484848;
}

.input-file input[type=file]:disabled+span {
	background-color: #eee;
}

.input-file-list {
	padding: 10px 0;
}

.input-file-list-item {
	display: inline-block;
	vertical-align: top;
	position: relative;
	width: 200px;
}

.input-file-list-item img {
	width: 100%;
	border-radius: 10px;
}

.input-file-list-name {
	text-align: center;
	display: block;
	font-size: 14px;
	text-overflow: ellipsis;
	overflow: hidden;
}

.input-file-list-remove {
	color: #fff;
	text-decoration: none;
	display: inline-block;
	position: absolute;
	padding: 0;
	margin: 0;
	top: 10px;
	right: 10px;
	background: #f66;
	width: 25px;
	height: 25px;
	text-align: center;
	line-height: 23px;
	font-size: 27px;
	border-radius: 5px;
}

.editor__image {
	position: relative;
	overflow: hidden;
	display: block;
	width: 300px;
	margin: 10px 0;
}

.editor__image img {
	width: 100%;
	border-radius: 10px;
}

.del__btn {
	position: absolute;
	right: 10px;
	top: 10px;
	border: 0;
	padding: 7px 10px;
	background-color: #f66;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	border-radius: 5px;
}

.icon_head {
	cursor: pointer;
	display: inline-flex;
	color: var(--font-1);
	gap: 5px;
	font-size: 16px;
	align-items: center;
}

.icon_head svg {
	width: 22px;
	height: 22px;
}

.noClick {
	pointer-events: none;
	color: #ff6363;
}

/* Media */
@media (width <=768px) {

	.header__container,
	.search__block {
		width: 100%;
		padding: 10px 15px;
		left: 0;
	}

	.container {
		padding-left: 0;
		padding-right: 0;
		grid-template-columns: 1fr;
	}
	
	.main__menu {
	    display: none;
	}

	.cat,
	.news,
	.user,
	.news__block__full,
	.comments__box,
	.editor__content,
	.tag__content,
	.search_result {
		border-radius: 0;
	}
}

/*--------Change Theme------------*/


.theme-switch {
	position: fixed;
	left: 20px;
	bottom: 20px;
	background-color: #5c5c5c70;
	border-radius: 10px;
	backdrop-filter: blur(10px);
	padding: 10px;
	cursor: pointer;
}

.theme-switch input[type="checkbox"] {
	display: none;
}

.theme-switch svg {
	width: 22px;
	height: 22px;
	color: var(--font-1);
	vertical-align: middle;
}

:root {
	--body-bg: #e8e8e8;
	--bg-1: #fff;
	--bg-2: #202020;
	--bg-3: #e8e8e8;
	--bg-4: #fff;
	--bg-5: #e4e4e4;
	--h-bg: #e8e8e873;
	--success: #0B5DD7;
	--font-1: #000;
	--font-2: #000;
	--font-3: #0B5DD7;
	--font-4: #666;
}

:root[data-theme="dark"] {
	--body-bg: #161617;
	--bg-1: #232324;
	--bg-2: #3a3a3a;
	--bg-3: #464646;
	--bg-4: #2f2f2f;
	--bg-5: #484848;
	--h-bg: #1616177a;
	--success: #323E4F;
	--font-1: #c9cccf;
	--font-2: #c9cccf;
	--font-3: #59F;
	--font-4: #7d8186;
}