:root {
--text-primary: #fff;
--text-secondary: #b0bac5;

--text-brand-primary: #db143b;
--text-brand-secondary: #c51034;

--border-primary: #fff;
--border-secondary: #b0bac5;
--border-gray-primary: #33363d;

--bg-body: #16181c;

--bg-gray-primary: #33363d;

--bg-block: #26292f;
--bg-block-inside: #33363d;

--bg-brand-primary: #db143b;
--bg-brand-secondary: #c51034;
}

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

body {
scroll-behavior: smooth;
font-family: "Inter", sans-serif;
background-color: var(--bg-body);
}

a,
button {
border: none;
outline: none;
color: inherit;
cursor: pointer;
text-decoration: none;
background-color: transparent;
}

img {
height: auto;
display: block;
max-width: 100%;
}

.container {
margin: 0 auto;
max-width: 1280px;
}

.header {
top: 0;
left: 0;
width: 100%;
position: absolute;
}

.statick {
position: static;
}

.header__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
}

.header__contents {
display: contents;
}

/* Header Nav */

.header__ul {
gap: 8px;
display: flex;
list-style: none;
align-items: center;
}

.header__link {
gap: 12px;
display: flex;
padding: 6px 14px;
align-items: center;
border-radius: 8px;
color: var(--text-secondary);
transition: background-color 0.2s ease, color 0.2s ease;
}

.header__link:hover {
color: var(--text-primary);
background-color: var(--bg-gray-primary);
}

.header__link svg {
width: 16px;
height: 16px;
display: none;
}

.header__link span {
font-size: 14px;
font-weight: 600;
}

.header__link--active {
color: var(--text-primary);
background-color: var(--bg-brand-primary);
}

.header__link--active:hover {
background: var(--bg-brand-secondary);
}

/* Header Cta */

.header__cta {
gap: 8px;
display: flex;
align-items: center;
}

.header__btn {
gap: 8px;
height: 33px;
display: flex;
padding: 6px 14px;
border-radius: 8px;
align-items: center;
}

.header__btn svg {
width: 16px;
height: 16px;
}

.header__btn span {
font-size: 14px;
font-weight: 600;
}

.header__random {
color: var(--text-secondary);
border: 2px solid var(--border-secondary);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
transition: color 0.2s ease, border 0.2s ease;
}

.header__random:hover {
color: var(--text-primary);
border-color: var(--border-primary);
}

.header__telegram {
color: var(--text-primary);
background-color: var(--bg-brand-primary);
transition: background-color 0.2s ease;
}

.header__telegram:hover {
background-color: var(--bg-brand-secondary);
}

/* Header Mobile */
.header__mobile {
gap: 8px;
display: none;
align-items: center;
}

.mobile__random,
.mobile__menu {
display: flex;
align-items: center;
justify-content: center;
width: 33px;
height: 33px;
border-radius: 8px;
border: 1px solid var(--border-gray-primary);
transition: background-color 0.3s ease;
color: var(--text-primary);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}

.mobile__menu.open {
background-color: var(--bg-brand-primary);
border-color: transparent;
}

.mobile__random svg {
width: 16px;
height: 16px;
}

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

@media (max-width: 992px) {
.header__contents {
gap: 16px;
display: flex;
flex-direction: column;
position: absolute;
top: 70px;
left: 50%;
width: calc(100% - 32px);
padding: 16px;
background-color: var(--bg-body);
border: 1px solid var(--border-gray-primary);
border-radius: 8px;
transform: translate(-50%, -10px);
-webkit-transform: translate(-50%, -10px);
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
-webkit-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 999;
}

.header__contents.open {
transform: translate(-50%, 0);
opacity: 1;
visibility: visible;
}

.header__ul {
flex-direction: column;
}

.header__ul li,
.header__link {
width: 100%;
}

.header__link svg {
display: block;
}

.header__btn {
width: 100%;
justify-content: center;
}

.header__mobile {
display: flex;
}
}

/* Main */
.content {
padding-top: 65px;
background-image: linear-gradient(
180deg,
rgba(42, 123, 155, 0) 60%,
rgba(22, 24, 28, 1) 100%
),
url("../img/bg-hero.webp");
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
}

/* Hero */
.hero {
padding: 96px 16px;
}

.hero__wrapper {
margin: 0 auto;
max-width: 800px;
text-align: center;
}

.hero__logo {
width: 200px;
height: 200px;
margin-bottom: 40px;
fill: var(--text-brand-primary);
}

.hero__title {
font-size: 96px;
font-weight: 800;
margin-bottom: 20px;
color: var(--text-primary);
}

.hero__title-brand {
color: var(--text-brand-primary);
}

.hero__description {
font-size: 18px;
max-width: 700px;
margin: 0 auto 20px auto;
color: var(--text-secondary);
line-height: 1.6;
}

.hero__cta {
gap: 12px;
display: flex;
align-items: center;
justify-content: center;
}

.hero__btn {
gap: 8px;
display: flex;
align-items: center;
border-radius: 10px;
justify-content: center;
height: 44px;
width: 135px;
}

.hero__btn svg {
width: 20px;
height: 20px;
fill: currentColor;
}

.hero__btn span {
font-size: 16px;
font-weight: 600;
}

.btn__primary {
color: var(--text-primary);
background-color: var(--bg-brand-primary);
transition: background 0.2s ease;
}

.btn__primary:hover {
background-color: var(--bg-brand-secondary);
}

.btn__secondary {
color: var(--text-secondary);
border: 2px solid var(--border-secondary);
transition: color 0.2s ease, border 0.2s ease;
}

.btn__secondary:hover {
color: var(--text-primary);
border-color: var(--border-primary);
}

@media (max-width: 992px) {
.hero__title {
font-size: 72px;
}
}

@media (max-width: 768px) {
.hero {
padding: 48px 16px;
}

.hero__title {
font-size: 56px;
margin-bottom: 10px;
}

.hero__description {
font-size: 16px;
max-width: 500px;
}
}

@media (max-width: 568px) {
.hero__title {
font-size: 40px;
}
}

/* Show Case */
.showcase {
position: relative;
overflow: hidden;
}

.showcase__container {
width: 100%;
max-width: 100%;
overflow-x: hidden;
will-change: transform;
}

.showcase__slider {
display: flex;
position: relative;
will-change: transform;
gap: 24px;
}

.showcase__slider--rtl {
animation: slideRTL 30s linear infinite;
padding-bottom: 20px;
}

.showcase__slider--ltr {
animation: slideLTR 25s linear infinite;
}

.showcase__item {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 16px;
border: 1px solid var(--border-secondary);
border-radius: 16px;
padding: 16px;
min-width: 320px;
max-width: 320px;
transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
cursor: pointer;
will-change: transform;
}

.showcase__item:hover {
border-color: var(--border-primary);
}

.showcase__item__image {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase__item__info {
display: flex;
flex-direction: column;
flex: 1;
}

.showcase__item__title {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 5px;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
line-height: 1.4;
}

.showcase__item__description {
font-size: 16px;
color: var(--text-secondary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
line-height: 1.4;
}

.showcase__empty,
.showcase__error {
text-align: center;
padding: 40px;
color: var(--text-secondary);
font-size: 16px;
}

@keyframes slideRTL {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-50%, 0, 0);
}
}

@keyframes slideLTR {
0% {
transform: translate3d(-50%, 0, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}

.showcase__slider:hover {
animation-play-state: paused;
}

.showcase__slider--rtl,
.showcase__slider--ltr {
transform: translateZ(0);
backface-visibility: hidden;
perspective: 1000px;
}

@media (max-width: 992px) {
.showcase__slider--rtl {
animation-duration: 25s;
}

.showcase__slider--ltr {
animation-duration: 20s;
}

.showcase__item {
min-width: 300px;
max-width: 300px;
}
}

@media (max-width: 768px) {
.showcase__slider--rtl {
animation-duration: 15s;
}

.showcase__slider--ltr {
animation-duration: 12s;
}

.showcase__item__title {
font-size: 16px;
}
}

@media (max-width: 568px) {
.showcase__slider--rtl {
animation-duration: 10s;
}

.showcase__slider--ltr {
animation-duration: 8s;
}
}

/* Split Section */
.split {
padding: 96px 16px;
background-image: linear-gradient(
180deg,
rgba(42, 123, 155, 0) -100%,
rgba(22, 24, 28, 1) 100%
),
url("../img/bg-hero.webp");
background-position: center center;
background-size: 200%;
background-repeat: no-repeat;
}

.split__wrapper {
display: flex;
align-items: center;
gap: 60px;
}

.split__wrapper:last-child {
margin-top: 96px;
}

.split__content,
.split__showcase {
width: 50%;
}

.split__tag {
display: inline-block;
background-color: rgba(219, 20, 59, 0.15);
color: var(--text-brand-primary);
padding: 6px 14px;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
margin-bottom: 20px;
}

.split__title {
font-size: 42px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 20px;
line-height: 1.2;
}

.split__text {
font-size: 18px;
line-height: 1.6;
color: var(--text-secondary);
margin-bottom: 30px;
}

.split__btn {
display: inline-flex;
gap: 8px;
align-items: center;
padding: 12px 24px;
border-radius: 8px;
transition: background-color 0.3s ease;
}

.split__btn svg {
width: 20px;
height: 20px;
fill: currentColor;
}

.split__btn span {
font-size: 16px;
font-weight: 600;
}

.split__showcase {
overflow: hidden;
border-radius: 12px;
background-color: var(--bg-block);
}

.split__list {
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}

.split__subtitle {
font-size: 22px;
font-weight: 700;
color: var(--text-primary);
position: relative;
display: inline-block;
margin-bottom: 16px;
}

.split__subtitle::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 40px;
height: 3px;
background-color: var(--text-brand-primary);
}

.split__item {
display: grid;
grid-template-areas:
"image title meta"
"image description meta";
grid-template-columns: 80px 1fr auto;
gap: 12px;
padding: 16px;
border-radius: 8px;
background-color: var(--bg-block-inside);
transition: background-color 0.2s ease, transform 0.2s ease;
align-items: start;
}

.split__item-image {
grid-area: image;
width: 70px;
height: 70px;
border-radius: 8px;
object-fit: cover;
}

.split__item-title {
grid-area: title;
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
line-height: 1.4;
}

.split__item-description {
grid-area: description;
font-size: 16px;
color: var(--text-secondary);
margin: 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.split__item-meta {
grid-area: meta;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 12px;
justify-content: center;
height: 100%;
}

.split__item-views,
.split__item-liked,
.split__item-downloads {
display: flex;
align-items: center;
gap: 4px;
font-size: 14px;
color: var(--text-secondary);
}

.split__item-views svg,
.split__item-liked svg,
.split__item-downloads svg {
width: 16px;
height: 16px;
}

@media (max-width: 992px) {
.split {
background-size: cover;
}
.split__wrapper {
flex-direction: column;
gap: 40px;
}
.split__wrapper:last-child {
margin-top: 48px;
flex-direction: column-reverse;
}
.split__content,
.split__showcase {
width: 100%;
}

.split__title {
font-size: 36px;
}
}

@media (max-width: 768px) {
.split {
padding: 48px 16px;
}

.split__text {
font-size: 16px;
}

.split__btn {
padding: 12px 16px;
}

.split__item {
grid-template-areas:
"image title title"
"image description description"
"meta meta meta";
grid-template-columns: 70px 1fr 1fr;
}

.split__item-meta {
flex-direction: row;
align-items: center;
justify-content: start;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border-secondary);
}
}

/* FAQ Section */
.faq {
padding: 96px 16px;
background-color: var(--bg-body);
}

.faq__header {
text-align: center;
max-width: 800px;
margin: 0 auto 60px;
}

.faq__title {
font-size: 42px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 16px;
}

.faq__subtitle {
font-size: 18px;
color: var(--text-secondary);
line-height: 1.6;
}

.faq__grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
max-width: 1200px;
margin: 0 auto;
}

.faq__item {
background-color: var(--bg-block);
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq__item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.faq__question {
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
border-bottom: 1px solid var(--border-gray-primary);
}

.faq__question h3 {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}

.faq__question svg {
width: 16px;
height: 16px;
fill: var(--text-secondary);
transition: transform 0.3s ease;
}

.faq__item.active .faq__question svg {
transform: rotate(45deg);
}

.faq__answer {
padding: 0 20px;
max-height: 0;
overflow: hidden;
transition: all 0.3s ease;
}

.faq__item.active .faq__answer {
padding: 20px;
max-height: 500px;
}

.faq__answer p {
font-size: 16px;
color: var(--text-secondary);
line-height: 1.6;
margin: 0;
}

@media (max-width: 992px) {
.faq__title {
font-size: 36px;
}

.faq__grid {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.faq {
padding: 48px 16px;
}

.faq__header {
margin-bottom: 40px;
}

.faq__subtitle {
font-size: 16px;
}

.faq__question h3 {
font-size: 16px;
}
}

/* Footer */
.footer {
width: 100%;
padding: 60px 16px 24px;
background: var(--bg-block);
color: var(--text-secondary);
border-top: 1px solid var(--border-gray-primary);
}

.footer__wrapper {
display: flex;
flex-direction: column;
}

.footer__main {
display: flex;
flex-wrap: wrap;
gap: 40px;
margin-bottom: 40px;
}

.footer__brand {
flex: 1;
min-width: 250px;
}

.footer__logo {
display: inline-block;
margin-bottom: 16px;
}

.footer__description {
font-size: 16px;
line-height: 1.5;
max-width: 300px;
}

.footer__nav {
display: flex;
flex-wrap: wrap;
gap: 60px;
}

.footer__col {
min-width: 140px;
margin: 0 auto;
}

.footer__heading {
color: var(--text-primary);
font-size: 18px;
font-weight: 600;
margin-bottom: 20px;
position: relative;
}

.footer__heading::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 30px;
height: 2px;
background-color: var(--text-brand-primary);
}

.footer__list {
list-style: none;
padding: 0;
margin: 0;
}

.footer__list li {
margin-bottom: 12px;
}

.footer__list a {
color: var(--text-secondary);
font-size: 16px;
transition: color 0.2s ease;
display: inline-block;
}

.footer__list a:hover {
color: var(--text-primary);
}

.footer__list--social li {
margin-bottom: 16px;
}

.footer__social {
display: flex;
align-items: center;
gap: 10px;
}

.footer__divider {
height: 1px;
background-color: var(--border-gray-primary);
margin-bottom: 24px;
}

.footer__bottom {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}

.footer__copyright {
font-size: 14px;
}

.footer__credits {
font-size: 14px;
}

@media (max-width: 992px) {
.footer__main {
flex-direction: column;
gap: 40px;
}

.footer__nav {
gap: 40px;
}

.footer__brand {
text-align: center;
}

.footer__description {
max-width: 100%;
}
}

@media (max-width: 768px) {
.footer {
padding: 40px 16px 24px;
}

.footer__nav {
flex-direction: column;
gap: 30px;
}

.footer__bottom {
flex-direction: column;
text-align: center;
}

.footer__col {
text-align: center;
}

.footer__heading::after {
left: 50%;
transform: translate(-50%);
}
}

.wrapper {
gap: 12px;
display: flex;
margin: 12px auto;
max-width: 1280px;
padding: 0px 16px;
align-items: flex-start;
}

main {
width: 100%;
}

.aside {
width: 100%;
/*padding: 24px;*/
min-width: 300px;
max-width: 300px;
border-radius: 16px;
/* background: var(--bg-block); */
}

.aside__posts {
    width: 100%;
    margin-top: 12px;
}

.aside__card {
    background: var(--bg-block);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.aside__card:hover {
    transform: translateY(-3px);
}

.aside__card-image {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.aside__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aside__card:hover .aside__card-image img {
    transform: scale(1.05);
}

.aside__card-content {
    padding: 12px;
}

.aside__card-title-link {
    text-decoration: none;
    color: inherit;
}

.aside__card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.aside__card-title-link:hover .aside__card-title {
    color: var(--text-brand-primary);
}

.aside__card-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aside__empty, 
.aside__error {
    color: var(--text-secondary);
    padding: 16px;
    text-align: center;
    background: var(--bg-block);
    border-radius: 16px;
}

.telegram-community-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.telegram-community-link:hover {
    transform: translateY(-3px);
}

.telegram-community-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Filter Section */
.filter {
gap: 12px;
width: 100%;
padding: 12px;
display: flex;
margin-bottom: 12px;
border-radius: 16px;
background: var(--bg-block);
justify-content: space-between;
box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px;
}

.filter__search {
width: 100%;
height: 40px;
position: relative;
}

/* Search Input */
.filter__input {
width: 100%;
height: 40px;
font-size: 16px;
font-weight: 500;
color: #7e868e;
border-radius: 12px;
background: var(--bg-block-inside);
padding: 0 16px 0 38px;
transition: outline 0.1s ease;
outline: 0px solid transparent;
box-shadow: inset 0px -1px 1px rgba(17, 24, 39, 0.25);
border: none;
}

.filter__input::placeholder {
color: #7e868e;
}

.filter__input:focus {
color: var(--text-primary);
outline: 4px solid var(--text-brand-primary);
}

@media (max-width: 1100px) {
.filter__input:focus {
outline: 3px solid var(--text-brand-primary);
}
}

.filter__search:focus-within .filter__icon path {
stroke: var(--text-primary);
}

.filter__icon {
top: 50%;
left: 10px;
position: absolute;
transform: translateY(-50%);
transition: stroke 0.1s ease;
stroke: #7e868e;
width: 22px;
height: 22px;
}

.filter__content {
gap: 12px;
display: flex;
align-items: center;
user-select: none;
}

.filter__sort,
.filter__page {
gap: 12px;
display: flex;
position: relative;
align-items: center;
cursor: pointer;
min-height: 40px;
}

.filter__sort-label,
.filter__page-label {
font-size: 16px;
color: var(--text-secondary);
white-space: nowrap;
}

.filter__sort-selected,
.filter__page-selected {
height: 40px;
display: flex;
cursor: pointer;
padding: 0 16px;
position: relative;
align-items: center;
border-radius: 12px;
color: var(--text-secondary);
background-color: var(--bg-block-inside);
box-shadow: inset 0px -1px 1px rgba(17, 24, 39, 0.25);
}

.filter__sort-selected {
width: 224px;
}

.filter__page-selected {
width: 72px;
}

.filter__sort-selected::before,
.filter__page-selected::before {
content: "";
right: 16px;
position: absolute;
border-style: solid;
border-width: 5px 5px 0;
border-color: #999 transparent transparent;
transition: transform 0.3s ease;
}

.filter__sort-list,
.filter__page-list {
display: none;
position: absolute;
top: 100%;
right: 0;
z-index: 10;
flex-direction: column;
border-radius: 0 0 12px 12px;
background-color: var(--bg-block-inside);
color: var(--text-secondary);
box-shadow: rgba(50, 50, 100, 0.1) 0px 2px 4px 0px;
}

.filter__sort-list {
width: 224px;
}

.filter__page-list {
width: 72px;
}

.filter__sort.open-controls .filter__sort-selected,
.filter__page.open-controls .filter__page-selected {
box-shadow: none;
border-radius: 12px 12px 0 0;
}

.filter__sort.open-controls .filter__sort-selected::before,
.filter__page.open-controls .filter__page-selected::before {
transform: rotate(180deg);
}

.filter__sort.open-controls .filter__sort-list,
.filter__page.open-controls .filter__page-list {
display: flex;
}

/* Options */
.filter__option {
height: 40px;
display: flex;
cursor: pointer;
align-items: center;
padding: 0 16px;
}

.filter__option.selected {
color: var(--text-primary);
font-weight: 600;
background-color: var(--text-brand-primary);
}

.filter__option.selected:hover {
background-color: var(--text-brand-secondary);
}

.filter__option:hover {
background-color: #40434c;
color: var(--text-primary);
}

.filter__option:nth-last-child(1) {
border-radius: 0 0 12px 12px;
}

/* Additional Controls */
.filter__item {
gap: 12px;
display: flex;
align-items: flex-end;
}

.filter__view {
min-width: 40px;
min-height: 40px;
border-radius: 12px;
background-color: var(--bg-block-inside);
box-shadow: inset 0px -1px 1px rgba(17, 24, 39, 0.25);
}

.filter__view.icon-gallery::before {
content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYjBiYWM1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGRhdGEtdi05N2MwODdjOD0iIj4KICAgICAgICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiByeT0iMiI+PC9yZWN0PgogICAgICAgIDxjaXJjbGUgY3g9IjkiIGN5PSI5IiByPSIyIj48L2NpcmNsZT4KICAgICAgICA8cGF0aCBkPSJtMjEgMTUtMy4wODYtMy4wODZhMiAyIDAgMCAwLTIuODI4IDBMNiAyMSI+PC9wYXRoPgogICAgPC9zdmc+");
}

.filter__view.icon-list::before {
content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYjBiYWM1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgICAgICA8cGF0aCBkPSJNMyAxNGg3djdIM3pNMyAzaDd2N0gzek0xNCA0aDdNMTQgOWg3TTE0IDE1aDdNMTQgMjBoNyI+PC9wYXRoPgogICAgPC9zdmc+");
}

/* Responsive Styles */
@media (max-width: 1100px) {
.wrapper__post{
    flex-direction: column;
    align-items: center;
}
.aside{
    display: none;
}

.aside__post {
display: flex;
width:100%;
max-width: 100%;

}

.telegram-community-link{
    display: none;
}
}

@media (max-width: 767px) {
.filter {
flex-direction: column;
}

.filter__content {
width: 100%;
align-items: flex-end;
}

.filter__sort,
.filter__page {
width: 100%;
flex-direction: column;
align-items: flex-start;
}

.filter__sort-selected,
.filter__page-selected,
.filter__item {
width: 100%;
}

.filter__sort-list,
.filter__page-list {
width: 100%;
}
}

@media (max-width: 539px) {
.filter__content {
flex-direction: column;
}
}

/* Posts Section */
.posts {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
gap: 12px;
}

/* Card Style */
.posts__card {
width: 100%;
max-width: 466px;
border-radius: 16px;
background: var(--bg-block);
box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px;
display: grid;
row-gap: 8px;
grid-template-areas:
"card-img"
"card-title"
"card-description"
"card-info";
grid-template-columns: 1fr;
padding: 0px 0px 16px 0px;
}

.posts__card-image {
display: block;
grid-area: card-img;
}

.posts__card-image img {
width: 100%;
height: 160px;
display: block;
object-fit: cover;
object-position: center;
border-radius: 16px 16px 0px 0px;
}

.posts__card-title {
font-size: 20px;
color: var(--text-secondary);
padding: 0px 16px;
grid-area: card-title;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

.posts__card-description {
font-size: 16px;
color: var(--text-secondary);
padding: 0px 16px;
grid-area: card-description;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
height: 44.8px;
line-height: 1.4;
}

.posts__card-info {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 16px;
grid-area: card-info;
}

.posts__card-stats {
gap: 8px;
display: flex;
align-items: center;
}

.posts__stat {
gap: 4px;
display: flex;
align-items: center;
}

.posts__stat svg {
cursor: pointer;
width: 18px;
height: 22px;
}

.posts__count {
font-size: 16px;
color: var(--text-secondary);
font-weight: 500;
}

.posts__stat--like:hover svg path {
fill: var(--text-brand-primary);
}

.posts__stat--like.liked svg path {
fill: var(--text-brand-primary);
}

.post__stat--like.liked svg path {
fill: var(--bg-brand-primary); 
}
.post__stat--like {
cursor: pointer;
}

.posts__stat--like.liked svg path,
.post__stat--like.liked svg path {
fill: var(--bg-brand-primary);
}
.posts__stat--like,
.post__stat--like {
cursor: pointer;
}

.posts__share {
gap: 4px;
display: flex;
cursor: pointer;
align-items: center;
transition: all 0.2s ease;
}

.posts__share svg {
width: 24px;
height: 24px;
fill: var(--text-secondary);
}

.posts__share span {
font-size: 16px;
color: var(--text-secondary);
}

.posts__share:hover span {
color: var(--text-primary);
}

.posts__share:hover svg {
fill: var(--text-primary);
}

/* List View */
.posts.list {
grid-template-columns: repeat(1, 1fr);
}

.posts.list .posts__card {
max-width: 100%;
padding: 16px;
grid-template-areas:
"card-img card-title card-info"
"card-img card-description card-info";
grid-template-columns: 100px 1fr auto;
}

.posts.list .posts__card .posts__card-image img {
width: 96px;
height: 96px;
border-radius: 12px;
border: 1px solid rgba(193, 190, 209, 0.12);
}

.posts.list .posts__card .posts__card-title,
.posts.list .posts__card .posts__card-description {
padding: 0px 0px 0px 16px;
}

.posts.list .posts__card .posts__card-info {
gap: 8px;
padding: 0;
flex-direction: column;
}

.posts.list .posts__card .posts__card-stats {
flex-direction: column;
}

/* Media Queries */
@media (max-width: 767px) {
.posts {
grid-template-columns: repeat(1, 1fr);
}

.posts__card {
max-width: 100%;
}
.posts__card-title{
font-size: 18px;
}
}

@media (max-width: 539px) {
.posts.list .posts__card {
grid-template-areas:
"card-img card-title"
"card-img card-description"
"card-info card-info";
grid-template-columns: 70px 1fr;
}
.posts.list .posts__card .posts__card-image img{
width: 70px;
height: 70px;
}

.posts.list .posts__card .posts__card-info {
flex-direction: row;
padding: 8px 0 0 0;
margin-top: 8px;
border-top: 1px solid var(--border-gray-primary);
}

.posts.list .posts__card .posts__card-stats {
flex-direction: row;
}
}


/* Post Styles */
.post {
border-radius: 16px;
background: var(--bg-block);
overflow: hidden;
}

.post__image img {
width: 100%;
border-radius: 16px 16px 0 0;
display: block;
max-height: 450px;
object-fit: cover;
}

.post__title {
font-size: 22px;
color: var(--text-secondary);
padding: 16px 16px;
font-weight: 600;
margin: 0;
}

.post__description {
font-size: 16px;
padding: 0 16px;
color: var(--text-secondary);
margin: 0 0 16px;
}

.post__info {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid var(--border-secondary);
}

.post__stats {
display: flex;
gap: 12px;
align-items: center;
}

.post__stat {
display: flex;
align-items: center;
gap: 6px;
}

.post__stat svg {
width: 18px;
height: 18px;
cursor: pointer;
}

.post__count {
font-size: 16px;
color: var(--text-secondary);
font-weight: 500;
}

.post__stat--like:hover svg path {
fill: var(--text-brand-primary);
}

.post__stat--liked svg path {
fill: var(--text-brand-primary);
}

.post__share {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
transition: all 0.2s ease;
}

.post__share svg {
width: 18px;
height: 18px;
fill: var(--text-secondary);
}

.post__share span {
font-size: 16px;
color: var(--text-secondary);
}

.post__share:hover span {
color: var(--text-primary);
}

.post__share:hover svg {
fill: var(--text-primary);
}

/* Post Content */
.post__content {
padding: 16px;
}

.post__content mark {
background: transparent;
}

.post__content h2,
.post__content h3,
.post__content h4,
.post__content h5 {
font-size: 20px;
color: var(--text-secondary);
margin-bottom: 16px;
}

.post__content h2 mark,
.post__content h3 mark,
.post__content h4 mark,
.post__content h5 mark {
color: var(--text-secondary);
}

.post__content h2:last-child,
.post__content h3:last-child,
.post__content h4:last-child,
.post__content h5:last-child {
margin-bottom: 0;
}

.post__content a {
color: var(--text-brand-primary);
font-weight: 500;
text-decoration: underline;
}

.post__content a strong {
color: var(--text-brand-primary);
font-weight: 500;
text-decoration: underline;
}

.post__content p,
.post__content li,
.post__content span,
.post__content strong {
font-size: 16px;
color: var(--text-secondary);
margin-bottom: 16px;
font-weight: 400;
}

.post__content p:last-child,
.post__content li:last-child,
.post__content span:last-child,
.post__content strong:last-child {
margin-bottom: 0;
}

.post__content ul {
margin-bottom: 16px;
}

.post__content ul:last-child {
margin-bottom: 0;
}

.post__content li {
margin: 0;
position: relative;
padding: 0 0 0 40px;
list-style: none !important;
}

.post__content li::before {
position: absolute;
content: '';
top: 50%;
left: 20px;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--text-secondary);
transform: translateY(-50%);
}

.post__content img {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}

.post__content video {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto 16px;
}

.post__content video:last-child {
margin-bottom: 0;
}

.post__content figure {
margin-bottom: 16px;
}

.post__content figure:last-child {
margin-bottom: 0;
}

.post__content iframe {
max-width: 100%;
display: block;
margin: 1em auto;
}

/* Download Link Section */
.post__download {
padding: 16px;
}

.post__download-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
color: var(--text-primary);
font-size: 16px;
font-weight: 700;
padding: 12px;
border-radius: 10px;
background-color: var(--text-brand-primary);
transition: transform 0.2s ease, background 0.2s ease;
}

.post__download-btn:hover {
background-color: var(--text-brand-secondary);
}

.post__download-btn:active {
transform: scale(0.95);
}

.post__download-btn svg {
width: 20px;
height: 20px;
stroke: currentColor;
stroke-width: 2;
}

/* Modal Styles */
.modal__bg {
background: linear-gradient(180deg, rgba(48, 29, 29, 0.52) 0, rgba(14, 21, 26, 0.95));
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal__bg.active {
opacity: 1;
visibility: visible;
}

.modal {
border-radius: 16px;
background: var(--bg-block);
position: fixed;
top: 50%;
left: 50%;
width: 100%;
max-width: 528px;
transform: translate(-50%, -50%) scale(0.9);
opacity: 0;
visibility: hidden;
z-index: 11;
transition: all 0.2s ease;
}

.modal.active {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
visibility: visible;
}

.modal__header {
display: flex;
padding: 24px;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-secondary);
}

.modal__info {
display: flex;
gap: 12px;
align-items: center;
flex-grow: 1;
min-width: 0;
}

.modal__img {
width: 34px;
height: 34px;
object-fit: cover;
border-radius: 6px;
border: 1px solid rgba(193, 190, 209, 0.12);
}

.modal__title {
font-size: 18px;
color: var(--text-primary);
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-grow: 1;
min-width: 0;
margin: 0;
}

.modal__close {
display: flex;
align-items: center;
justify-content: center;
min-width: 36px;
min-height: 36px;
background: var(--bg-block-inside);
border-radius: 50%;
cursor: pointer;
}

.modal__close:hover {
background: var(--bg-gray-primary);
}

.modal__close:active {
transform: scale(0.9);
}

.modal__main {
padding: 24px;
}

.modal__download {
display: flex;
flex-direction: column;
gap: 12px;
}

.modal__link {
display: flex;
align-items: center;
gap: 12px;
font-weight: 600;
font-size: 16px;
color: var(--text-secondary);
}

.modal__link:hover {
text-decoration: underline;
color: var(--text-primary);
}

.modal__link:hover svg {
fill: var(--text-brand-primary);
}

@media (max-width: 650px) {
.modal {
max-width: calc(100% - 24px);
}
}

/* Pagination Styles */
.pagination {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
margin-top: 24px;
}

.pagination__btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background-color: var(--bg-block);
color: var(--text-secondary);
border-radius: 8px;
transition: all 0.2s ease;
}

.pagination__btn:hover:not([disabled]) {
background-color: var(--bg-gray-primary);
color: var(--text-primary);
}

.pagination__btn[disabled] {
opacity: 0.5;
cursor: not-allowed;
}

.pagination__btn svg {
width: 16px;
height: 16px;
}

.pagination__info {
font-size: 16px;
color: var(--text-secondary);
}

/* No Posts Styles */
.no-posts {
width: 100%;
padding: 40px;
text-align: center;
background-color: var(--bg-block);
border-radius: 16px;
color: var(--text-secondary);
}

.legal-content {
    padding: 24px;
    background: var(--bg-block);
    border-radius: 16px;
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.legal-content p, .legal-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
}

   .about-content {
    padding: 24px;
    background: var(--bg-block);
    border-radius: 16px;
    margin-top: 24px;
}

.about-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-card {
    background: var(--bg-block-inside);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin: 0 auto 16px;
    object-fit: cover;
    background-color: var(--bg-gray-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 64px;
    height: 64px;
    fill: var(--text-secondary);
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-role {
    font-size: 16px;
    color: var(--text-brand-primary);
    margin-bottom: 16px;
}

.team-bio {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-banner {
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-brand-primary) 0%, var(--bg-brand-secondary) 100%);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/img/bg-hero.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.about-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-banner h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-banner p {
    font-size: 18px;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}