@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --body-bg: #828282;
    --header-bg: #fff;
    --bg-1: #fff;
    --bg-2: #000;
    --bg-3: #eee;
    --bg-4: #d5d5d5;
    --bg-5: #8970ff;
    --fc-1: #000;
    --fc-2: #1e1e1e;
}

:root[data-theme=dark] {
    --body-bg: #000;
    --header-bg: #26282b;
    --bg-1: #232324;
    --bg-2: #404040;
    --bg-3: #161617;
    --bg-4: #484848;
    --bg-5: #383a4f;
    --fc-1: #e3e3e3;
    --fc-2: #aaa;
}

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

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

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, b, strong {
    font-weight: 500;
}

.header {
    display: flex;
    background-color: var(--header-bg);
    height: 60px;
    align-items: center;
    position: fixed;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    top: 0;
    justify-content: space-between;
}

.header:before {
    content: "";
    height: 5px;
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(#0000001a 0%, #0000 100%);
    position: fixed;
    top: 60px;
}

.header .logo {
    display: inline-block;
    color: var(--fc-1);
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 500;
}

.header label {
    display: inline-block;
    padding: 16px;
    color: var(--fc-1);
}

.header svg {
    width: 26px;
    height: 26px;
    vertical-align: -6px;
    color: var(--fc-1);
}

.user__btn {
    display: inline-block;
    padding: 21px 15px;
    cursor: pointer;
}

.user__block {
    display: none;
    padding: 10px;
    background-color: var(--bg-1);
    border-radius: 7px;
    position: absolute;
    right: 10px;
    top: 65px;
    box-shadow: 0 5px 3px 0 #0000000a;
    border: 1px solid #88888830;
    width: 220px;
}

.user__block.open {
    display: grid;
}

.user__block a {
    color: var(--fc-1);
    display: block;
    padding: 6px 10px;
}

.user__block a:hover {
    opacity: .5;
}

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

.user__bar {
    display: flex;
    justify-content:  space-between;
    align-items: center;
}

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

.user__btns {
    display: flex;
    gap: 10px;
}

.user__btns .user__btn1, .user__btns .user__btn2 {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 7px;
}

.user__btns .user__btn1 {
    color: #fff;
    background-color: var(--bg-2);
}

.user__btns .user__btn2 {
    color: #fff;
    background-color: var(--bg-5);
}

.search__btn{
    display: inline-block;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
}

.search__block {
    display: none;
    position: absolute;
    left: 50%;
    width: 400px;
    padding: 8px 10px;
    background-color: var(--header-bg);
    transform: translate(-50%);
}

.search__block.open {
    display: block;
}

.search__block .search__input {
    display: block;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-3);
    border: 0;
    color: var(--fc-1);
    font-size: 16px;
    border-radius: 7px;
    outline: none;
}

.main__container {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    background-color: var(--bg-3);
    margin-top: 60px;
    min-height: 45em;
}

.main__content {
    display: grid;
    padding: 17px;
    grid-gap: 20px;
    padding-bottom: 5em;
    height: -moz-available;
}

.sidebar__l {
    background-color: var(--bg-3);
    position: relative;
    width: 260px;
    height: 100%;
}

.sidebar__l.open {
    display: block;
}

.sidebar__box {
    position: sticky;
    top: 70px;
}

.sidebar__close {
    display: none;
}

.sidebar__cat {
    display: grid;
    grid-gap: 3px;
    padding: 10px;
}

.sidebar__menu {
    display: grid;
    grid-gap: 3px;
    padding: 10px;
    border-bottom: 1px solid #88888830;
}

.sidebar__link {
    display: flex;
    padding: 10px 15px;
    color: var(--fc-1);
    border-radius: 7px;
}

.sidebar__link:hover, .sidebar__link.active {
    background-color: var(--bg-2);
    color: #fff;
}

.sidebar__btn {
    display: none;
    padding: 21px 15px;
    cursor: pointer;
}

.comments__btn {
    display: none;
    padding: 21px 15px;
    cursor: pointer;
}

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

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

.post__short {
    color: var(--fc-2);
}

.post__full {
    color: var(--fc-2);
    padding-bottom: 10px;
}

.post__full p {
    margin: 10px 0;
}

.post__full a {
    color: var(--fc-1);
}

.post__full h1, h2 {
    font-size: 19px;
    font-weight: 500;
    color: var(--fc-1);
    margin-top: 15px;
}

.post__full .highslide {
    padding: 30% 0;
    display: flex;
    position: relative;
    justify-content: center;
    background-color: var(--bg-4);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
    overflow: hidden;
}

.post__full .highslide img {
    position: absolute;
    height: 100%;
}

.post__full li {
    margin-left: 20px;
}

.post__image {
    padding: 30.1% 0;
    display: flex;
    position: relative;
    justify-content: center;
    background-color: var(--bg-4);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
    overflow: hidden;
}

.post__image img {
    position: absolute;
    height: 100%;
}

.post__top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: space-between;
}

.post__top div {
    display: flex;
    gap: 20px;
}

.post__top div a:first-child {
    font-weight: 500;
}

.post__top, .post__top a {
    color: var(--fc-2);
    font-size: 15px;
}

.post__bottom {
    display: flex;
    gap: 35px;
    justify-content:  space-between;
    align-items: center;
    margin-top: 20px;
}

.post__bottom div {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
}

.post__bottom svg {
    width: 20px;
    height: 20px;
    vertical-align: top;
    color: var(--fc-2);
}

.post__bottom a, .post__bottom span {
    color: var(--fc-2);
}

.post__bottom .icon__r {
    margin-right: 5px;
}

.post__bottom a {
    padding: 5px 10px;
    background-color: var(--bg-3);
    border-radius: 7px;
}

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

.last__posts__title {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    opacity: .5;
    color: var(--fc-1);
}

.last__post {
    color: var(--fc-1);
}

.last__post:hover {
    opacity: .7;
}

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

.theme-switch .switcher {
    user-select: none;
    cursor: pointer;
}

.box__s {
    box-shadow: none;
}

.cat__page {
    display: block;
    padding: 20px;
    background-color: var(--bg-1);
    border-radius: 10px;
    color: var(--fc-1);
    text-align: center;
}

.cat__page h1 {
    font-size: 22px;
}

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

.comments__block .block_title {
    font-size: 18px;
    font-weight: 500;
}

.alert {
    display: block;
}

.alert .wrp {
    display: block;
    background-color: #8484842b;
    padding: 20px;
    text-align: center;
    color: var(--fc-2);
    border-radius: 10px;
}

.last__comments__block {
    display: grid;
    grid-gap: 15px;
    padding: 10px;
    margin-top: 10px;
}

.last__comment {
    display: block;
}

.last__comment a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fc-1);
}

.last__comment__text {
    color: var(--fc-2);
}

.last__comment__text br {
    display: none;
}

.non__sm {
    display: block;
}

@media (width <= 768px) {
    .main__container {grid-template-columns: 1fr;padding: 0;}
    .main__content {padding: 0;padding-bottom: 5em;}
    .sidebar__l {display: none;position: fixed;top: 0;z-index: 1;background-color: var(--bg-1);width: 100%;border-radius: 0;left: 0;height: 100%;padding-top: 40px;}
    .sidebar__btn {display: initial;}
    .sidebar__cat, .sidebar__menu {padding: 20px}
    .sidebar__close {display: inline-block;position: absolute;top: 7px;right: 7px;padding: 10px;border: 0;font-size: 14px;text-transform: uppercase;background-color: var(--bg-2);color: #fff;cursor: pointer;border-radius: 7px;}
    .header .logo {padding: 18px 7px;}
    .non__sm {display: none;}
    .comments__btn {display: inline-block;}
    .last__posts, .post__block, .comments__block, .user__profile, .cat__page, .alert .wrp {border-radius: 0;}
    .search__block {top: 60px;width: 100%;box-shadow: 0 10px 5px 0 #00000073;background-color: var(--header-bg);left: 0;transform: none;}
}