@font-face {
  font-family: 'Montserrat';
  src: url('font/MONTSERRAT-BOLD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('font/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('font/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('font/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('font/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UNISANS';
  src: url('font/OFONT.RU_UNI\ SANS.TTF') format('truetype');
  font-style: normal;
  font-display: swap;
}

body, .link_p, .card-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}       
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

:root {
    --mainwhite: #F3F7F6;
}

body {
    display: flex;
    background-color: #E1E1E1;
    flex-direction: column;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-left: 130px;
    padding: 20px 40px 0 40px;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 20px;
    left: 40px;
    width: auto;
    background: url(img/bg_grafit.svg);
    background-size: cover;
    background-blend-mode: overlay;
    border-radius: 28px;
    height: 700px;
    max-height: 820px;
    min-height: 550px;
    align-items: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 20px;
    z-index: 1000;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto;
}

.link {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px 12px;
    text-decoration: none;
    width: fit-content;
    min-width: 40px;
    height: 50px;
    transition: all 0.25s ease-out;
    cursor: pointer;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.02);
}

.link svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    transition: transform 0.2s;
}

.dark_svg {
    display: none;
}

.link_p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--mainwhite);
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-8px);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

 nav:hover .link_p {
    opacity: 1;
    max-width: 130px;
    width: 100%;
    transform: translateX(0);
    margin-left: 10px;
}

nav:hover .link {
    width: 200px;
}

.link:hover .light_svg {
    display: none;
}

.link:hover .dark_svg {
    display: block;
}

.link:hover {
    background-color: #F3F7F6;
    transform: translateX(3px);
}

.link:hover .link>svg {
    transform: scale(1.02);
}

.link:hover .link_p {
    color: #292929;
}

.logo-link:hover .logo-svg {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
    transform: scale(1.02);
}
.main_content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
header{
    background-color: #FFFFFF;
    width: 100%;
    border-radius: 30px;
    padding: 0 20px;
    display: flex;
    height: 55px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0px; 
    z-index: 100; 
}

.search-form {
    display: flex;
    justify-content: space-between;
    width: 350px;
    height: 35px;
    padding: 0 20px;
    background-color: #E9E9E9;
    border-radius: 20px;
}
.search-form-input{
    width: 100%;
}
.search-form-input,
.search-form-btn{
    background-color: #E9E9E9;
    border: none;
    outline: none;
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 500;
    color: #292929;
}
.search-form:focus-within {
  border: solid 1px #393939;
  outline: none;
}
.search-form-input::placeholder{
  font-family: 'Montserrat';
  font-size: 13px;
  font-weight: 500;
  color: #696969;
}



.search-form-btn svg path {
  transition: fill 0.2s, stroke 0.2s;
}
.cont1{
    display: flex;
    gap: 10px;
}
.header_link{
    padding: 5px 10px;
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
    color: #393939;
    text-decoration: none;
    border-radius: 20px;
    transition: outline 0.3s ease;
    outline: 0px solid transparent;
}

.header_link:hover{
    outline: 0.8px solid #393939;
}
.cont2{
    display: flex;
    gap: 0px;
    height: 100%;
    align-items: center;
}

.count{
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 1px solid #6B069B;
    padding-left: 10px;
}
.count p{
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
    color: #6B069B;
}
.rubl{
    display: flex;
    gap: 5px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background-color: #6B069B;
}
.rubl p{
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}
.notific{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-left: 25px;
}
.user{
    padding: 0 15px;
    height: 100%;
    gap: 5px;
    display: flex;
    align-items: center;
}
.notific:hover,
.user:hover{
    background-color: #393939;
}
.user:hover .header_us_not path,
.notific:hover .header_us_not path{
    stroke: #FFFFFF;
}


.arrow_user {
  transition: transform 0.3s ease;
}

.user:hover .arrow_user {
  transform: rotate(180deg);
}
.user:hover .arrow_user path{
  stroke: #FFFFFF;
}

.notific,
.user {
    position: relative;
    cursor: pointer;
}
.user-img-nav{
    width: 26px;
    height: 26px;
}
.dropdown {
    position: absolute;
    top: calc(100%);
    right: 0;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow:2px 3px 15px 0px rgba(0, 0, 0, 0.3);    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.notific:hover .dropdown,
.user:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-notific {
    width: 370px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0  40px 0 ;
}
.notif_under{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
    width: 100%;
}
.notif_under h2{
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 700;
    color: #292929;
}
.stroke_notific{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.warning-notific{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
    border-radius: 5px;
    border-left: 2px solid #66011A;
}
.warning-notific h3{
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    color: #66011A;
}
.warning-notific p{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #66011A;
}
.p-reason{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #292929;
    margin-left: 5px;
}
.published-notific{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
    border-radius: 5px;
    border-left: 2px solid #5F7862;
}
.published-notific h3{
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    color: #5F7862;
}
.published-notific p{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #292929;
}
.admin-notific{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 10px;
    border-radius: 5px;
    border-left: 2px solid #2b2b2b;
}
.admin-notific h3{
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    color: #2b2b2b;
}


.data-time{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.data-time>p{
    font-family: 'Montserrat';
    font-size: 10px;
    font-weight: 600;
    color: var(--main0);
}

.dropdown-user {
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px  0 20px ;
    
}
.dropdown-user-avatar{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.users{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.user-name{
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 700;
    color: #393939;
}
.user-email{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #8E8E8E;  
}
.users-img-dropdown{
    width: 70px;
    height: 70px;
}
.switch {
    display: flex;
    background-color: #E9E9E9;
    border-radius: 40px;
    padding: 5px;
    position: relative;
    gap: 4px;
    width: fit-content;
}

.switch input {
    display: none;
}

.switch label {
    padding: 6px 16px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #696969;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    white-space: nowrap;
    width: max-content;
}

.switch .active-bg {
    position: absolute;
    top: 4px;
    bottom: 4px;
    background-color: #6B069B;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1;
}

.switch input#freelance:checked ~ .active-bg {
    left: 4px;
    right: auto;
    width: 128px;
}

.switch input#customer:checked ~ .active-bg {
    left: 135px;
    right: auto;
    width: 103px;
}

.switch input#freelance:checked ~ label[for="freelance"],
.switch input#customer:checked ~ label[for="customer"] {
    color: #FFFFFF;
}

.switch label {
    color: #696969;
}
.user-link{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.u-link{
    width: 100%;
    padding: 5px;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #8E8E8E;
    text-decoration: none;
    transition: all 0.3s ;
}
.u-link:hover{
    color: #393939;
}
.exit{
    width: 100%;
    border-top: 0.8px solid #DCE1E6;
    border-radius: 0 0 20px 20px;
}
.exit-btn{
    display: flex;
    gap: 10px;
    padding: 10px 0px;
    align-items: center;
    border-radius: 0 0 20px 20px;
}
.link-exit{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: #393939;
    text-decoration: none;
    border-radius: 0 0 20px 20px;
}






.dropdown-notific {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-notific::-webkit-scrollbar {
    width: 6px;
}

.dropdown-notific::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-notific::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-notific::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.notific {
    position: relative;
}

.notific-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: #B41818;
    color: var(--mainwhite);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 17px;
    min-width: 18px;
    font-family: 'Montserrat';
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: pulse 2s infinite;
}
.navigation{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 165px;
    position: fixed;
}
.nav_link{
    display: flex;
    gap: 10px;
    padding:  5px  5px   5px 10px;
    border-radius: 20px;
    background-color: inherit;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    color: var(--main-1);
    align-items: center;
}
.nav_link:hover,
.active_link{
    background-color: var(--main-1);
    color: var(--mainwhite);
}
.light-ikon{
    display: none;
}
.nav_link:hover .light-ikon,
.active_link .light-ikon{
    display: block;
}
.nav_link:hover .dark-ikon,
.active_link .dark-ikon{
    display: none;
}
.main-content-lenta {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.lenta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 20px 20px 0 0;
    background-color: #FFFFFF;
    width: 880px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lenta::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.post{
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: column;
}
.user-post-avatar{
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    text-decoration: none;
}
.user-post-avatar:hover{
    text-decoration: underline;
}
.post-avatar{
    width: 100%;
    padding: 10px 40px 0 40px;
    display: flex;
    gap: 10px;
}
.user-post-avatar-img{
    width: 36px;
    height: 36px;
}
.user-post-avatar-nik{
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 700;
    color: #292929;
}
.post-avatar-action{
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-subscribe{
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: #F0F1F3;
    padding: 0 10px;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: #292929;
    height: 26px;
    cursor: pointer;
}
.btn-subscribe:hover{
    background-color: #E1E1E1;
}
.btn-complain{
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    background-color: inherit;
    cursor: pointer;
}
.btn-complain:hover svg .svg-hover {
    fill: #AA3434;
}
.post-gallery {
    position: relative;
    width: 90%;
    overflow: hidden;
}

.image-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
}

.image {
    flex: 0 0 100%;
    width: 100%;
    height: 430px;
}

.image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gallery-arrow-left {
    left: 12px;
}

.gallery-arrow-right {
    right: 12px;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.post-gallery:hover .gallery-arrow,
.post-gallery:focus-within .gallery-arrow {
    opacity: 1;
    pointer-events: auto;
}

.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.15);
}
.post-text-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 40px;
}
.name-project{
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 600;
    color: #292929;
    width: 100%;
}
.bio-project{
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
    color: #292929;
    width: 100%;
}

.visible-text {
    display: inline;
}

.hidden-wrapper {
    display: inline;
}

.hidden-text {
    display: none;
}

.hidden-text.show {
    display: inline;
}

.dots {
    display: inline;
    color: #393939;
    font-weight: 500;
}

.inline-toggle-btn {
    background: none;
    border: none;
    color: #393939;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 1px 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Montserrat';
}

.inline-toggle-btn:hover {
    text-decoration: underline;
}

.bottom-button-wrapper {
    margin-top: 1px;
}

.bottom-button-wrapper.hidden {
    display: none;
}

.bottom-toggle-btn {
    background: none;
    border: none;
    color: #393939;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 1px 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Montserrat';
}

.bottom-toggle-btn:hover {
    text-decoration: underline;
}

.post-text-content {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.post-tegs{
    padding: 0 40px;
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    justify-content:flex-start;
    align-items:flex-start;
    gap:15px;
    width: 100%;
    position:relative;
}
.teg{
    display: flex;
    padding: 3px 10px;
    height: max-content;
    border-radius: 20px;
    background-color: rgba(123, 70, 248, 0.2);
}
.teg p{
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    color: #393939;
}
.post-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;  
    padding: 0 40px;
    width: 100%;
}
.post-bottom-data{
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 600;
    color: #393939;
}
.post-bottom-btn-project{
  width: max-content;
  padding: 5px 15px;
  display: flex;
  gap: 10px;
  border-radius: 20px;
  align-items: center;
  border: solid 0.8px #393939;
  background-color: var(--mainwhite);
}
.post-bottom-btn-project p{
  font-family: 'Montserrat';
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #393939;
}
.post-bottom-btn-project:hover{
  transform: scale(0.95);
  background-color: #393939;
}
.post-bottom-btn-project:hover p{
    color: var(--mainwhite);
    font-weight: 500;
}
.post-bottom-btn-project:hover svg{
  transform: rotate(180deg);
}
.post-bottom-btn-project:hover svg>path{
  stroke: var(--mainwhite);
}
.post-bottom-btn-project:active{
  opacity: 0.5;
}
.post-bottom-btn-project:active p,
.post-bottom-btn-project:active svg>path{
  color: var(--mainwhite);
  stroke: var(--mainwhite);
}
.filter-container {
    width: 416px;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    border-radius: 20px;
    gap: 25px;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    height: max-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 2px 3px 15px 0px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    padding: 5px 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}


.filter-header  h2 {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    color: #393939;
}

/* список категорий */
.filter-list {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    gap: 15px;
}

/* Каждая категория — основной блок */
.category-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.1s;
}

.category-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}


.category-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* кастомный чекбокс */
.custom-check {
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1.5px solid #393939;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 1px 2px rgba(45, 50, 49, 0.08);
}



.category-name {
    font-family: 'Montserrat';
    font-size: 15px;
    font-weight: 500;
    color: #292929;
}

.chevron {
    font-family: 'Montserrat';
    font-size: 15px;
    font-weight: 800;
    color: #292929;
    transition: transform 0.2s;
}

.category-item.open .chevron {
    transform: rotate(180deg);
}

.subcategory-list {
    display: none;
    padding-left: 20px;
    flex-direction: column;
    gap: 10px;
}

.category-item.open .subcategory-list {
    display: flex;
}

.sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.sub-check {
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1.5px solid #393939;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 1px 2px rgba(45, 50, 49, 0.08);
}

.sub-label {
    font-family: 'Montserrat';
    font-size: 15px;
    font-weight: 500;
    color: #292929;
}

/* индикатор частичного выбора для родительской категории */
.custom-check.indeterminate {
    background: rgba(123, 70, 248, 0.2);
    border-color: #8907C5;
}

.custom-check.indeterminate::after {
    content: '';
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #8907C5;
}

.custom-check.checked,
.sub-check.checked {
    background: #8907C5;
    border-color: #8907C5;
}

.custom-check.checked::after,
.sub-check.checked::after {
    content: '';
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
}

.category-main:hover .custom-check:not(.checked):not(.indeterminate),
.sub-item:hover .sub-check:not(.checked) {
    border-color: #292929;
    background: #f7f9f8;
}

/* нижняя панель с выбранными элементами */
.filter-footer {
    padding: 0 0 0 15px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.selected-counter {
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: #646464;
    white-space: nowrap;
}

.reset-btn-bottom {
    background: #F0F2F5;
    border: none;
    padding: 8px 20px;
    border-radius: 0px;
    color: #A0AABA;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: #2C3E50;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    margin-right: 15px;
}

.reset-btn-bottom:hover {
    background: #E6E9EF;
    color: #000;
}

/* список выбранных элементов */
.selected-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.selected-tag {
    background: #8907C5;
    border-radius: 20px;
    padding: 5px 13px;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: var(--mainwhite);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.remove-tag {
    cursor: pointer;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    color: var(--mainwhite);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.remove-tag:hover {
    color: #B41818;
    background: rgba(0,0,0,0.05);
}

.empty-selected {
    color: #A0AABA;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
}

.report-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.report-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 50, 49, 0.45);
}

.report-modal-content {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 50px auto;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 2px 3px 25px rgba(0, 0, 0, 0.18);
    z-index: 1;
    overflow-y: auto;
}

.report-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: #393939;
    position: absolute;
    top: 14px;
    right: 18px;
}

.report-modal-content h2 {
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 700;
    color: #292929;
    margin-bottom: 20px;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#reportFormFields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.report-form-group label {
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 400;
    color: #292929;
    margin-left: 15px;
}

.report-reason-label {
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 500;
    color: #292929;
    margin-left: 15px;
}

.report-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-items: center;
    border: 1px solid #D7DDDC;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.report-reason-item:has(.report-reason-checkbox:checked) {
    border-color: #8907C5;
    background-color: rgba(137, 7, 197, 0.06);
}

.report-reason-checkbox {
    margin-top: 2px;
    accent-color: #8907C5;
}

.report-reason-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-reason-title {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 600;
    color: #292929;
}

.report-reason-description {
    font-family: 'Montserrat';
    font-size: 13px;
    font-weight: 400;
    color: #5B6160;
    line-height: 1.35;
}

.report-success-message {
    min-height: 20px;
    margin: 0;
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 600;
    color: #2ae494;
}

.report-success-state {
    display: none;
}

.report-success-state.is-visible {
    display: block;
}

.report-form-group select,
.report-form-group textarea {
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: solid 1px #292929;
    background: inherit;
    padding: 12px 15px;
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 400;
    color: #292929;
    outline: none;
}

.report-form-group select:focus,
.report-form-group textarea:focus {
    transform: scale(1.02);
    border: solid 1px #515151;
    border-radius: 30px;
    outline: none;
}

.report-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.report-submit-btn {
    border: none;
    border-radius: 30px;
    background-color: #292929;
    color: var(--mainwhite);
    font-family: 'Montserrat';
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    width: fit-content;
    width: 100%;
}

.report-submit-btn:hover {
    background-color: inherit;
    border: 1px solid #292929;
    color: #292929;
}
.report-submit-btn:active {
    opacity: 0.5;
}

.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.image-viewer-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.86);
}

.image-viewer-content {
    position: relative;
    width: min(96vw, 1800px);
    height: min(96vh, 1000px);
    margin: 2vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-viewer-track-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-viewer-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.image-viewer-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-slide img {
    width: auto;
    height: 90%;
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
}

.image-viewer-close {
    position: absolute;
    top: 10px;
    right: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.image-viewer-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
}

.image-viewer-arrow-left {
    left: 12px;
}

.image-viewer-arrow-right {
    right: 12px;
}

.image-viewer-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}


.report-success-state {
  height: 100%;
  width: 100%;
  animation: fadeInUp 0.5s ease forwards;
}

.success-content {
  display: flex;
  padding: 50px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.4s ease 0.2s both;
}

.success-content h3 {
    font-family: 'UNISANS';
    font-size: 28px;
    color: #393939;
    margin-bottom: 12px;
}

.success-content p {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 400;
    color: #767676;
    margin-bottom: 25px;
    line-height: 1.5;
    width: 380px;
    text-align: center;
}
