@font-face {
    font-family: "Moderustic-Medium";
    src: url("../fonts/Moderustic-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Moderustic-Regular";
    src: url("../fonts/Moderustic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
  scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    color: #3e3e3e;   
    list-style: none;
    text-decoration: none;
}

body{
    padding: 0;
    margin: 0;
    background-color: #edeef0;
    font-family: "Moderustic-Regular", monospace, sans-serif;   
}

p,h1{
    margin: 0;
    padding: 0;
}

button{
    cursor: pointer;
}

h1{
    font-size: 24px;
    padding: 0 24px;
    margin: 0;
}

h2{
    font-size: 18px;
}

h4{
    font-size: 16px;
}

p{
    font-size: 17px;
}

time{
    color: #3e3e3e94;
}

header{
    position: fixed;
    background-color: white;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;

    .logo {
        position: absolute;
        left: 20px; 
        display: flex;
        align-items: center;

        h1{
            font-size: 24px;
            padding: 0;
        }
    }

    .logo img {
        height: 40px;
        margin-right: 8px;
    }

    #btnAuth{
        background-color: #d81c1c;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        padding: 8px 20px;
        transition: all 0.3s ease;
        position: absolute;
        right: 20px;
        color: white;
    }

    #btnAuth:hover{
        background-color: #c01919;   
    }

    #btnAuth:active{
        padding: 6px 18px;
        border-radius: 10px;
        right: 22px;
    }

    #btnExit{
        display: flex;
        gap: 5px;
        background-color: #007bff;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        padding: 10px 18px;
        transition: all 0.3s ease;
        position: absolute;
        right: 20px;
        color: white;
        align-items: center;
    }

    #btnExit:hover{
        background-color: #0056b3;   
    }
}

/**/

header * {
    box-sizing: border-box;
}

.nav {
    width: 320px;
    min-width: 320px;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    left: -320px;
    padding: 15px 20px;
    -webkit-transition: left 0.3s;
    -moz-transition: left 0.3s;
    transition: left 0.3s;
    z-index: 2000;
    background-color: white;

    menu{
        margin: 0;
        padding-top: 70px;
    }

    .nav-toggle {
        position: absolute;
        left: 340px;
        top: 24px;
        color: #000000;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
        z-index: 2001;
        -webkit-transition: color .25s ease-in-out;
        -moz-transition: color .25s ease-in-out;
        transition: color .25s ease-in-out;
    }

    .nav-toggle:after {
        content: '\2630';
        text-decoration: none;
    }

    & > ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    & > ul > li {
        line-height: 2.5;
        opacity: 0;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        -webkit-transition: opacity .5s .1s, -webkit-transform .5s .1s;
        -moz-transition: opacity .5s .1s, -moz-transform .5s .1s;
        -ms-transition: opacity .5s .1s, -ms-transform .5s .1s;
        transition: opacity .5s .1s, transform .5s .1s;
    }

    & > ul > li:nth-child(2) {
        -webkit-transition: opacity .5s .2s, -webkit-transform .5s .2s;
        transition: opacity .5s .2s, transform .5s .2s;
    }

    & > ul > li:nth-child(3) {
        -webkit-transition: opacity .5s .3s, -webkit-transform .5s .3s;
        transition: opacity .5s .3s, transform .5s .3s;
    }

    & > ul > li:nth-child(4) {
        -webkit-transition: opacity .5s .4s, -webkit-transform .5s .4s;
        transition: opacity .5s .4s, transform .5s .4s;
    }

    & > ul > li:nth-child(5) {
        -webkit-transition: opacity .5s .5s, -webkit-transform .5s .5s;
        transition: opacity .5s .5s, transform .5s .5s;
    }

    & > ul > li:nth-child(6) {
        -webkit-transition: opacity .5s .6s, -webkit-transform .5s .6s;
        transition: opacity .5s .6s, transform .5s .6s;
    }

    & > ul > li:nth-child(7) {
        -webkit-transition: opacity .5s .7s, -webkit-transform .5s .7s;
        transition: opacity .5s .7s, transform .5s .7s;
    }

    & > ul > li > a {
        display: inline-block;
        position: relative;
        padding: 0;
        font-family: 'Open Sans', sans-serif;
        font-weight: 300;
        font-size: 1.2em;
        color: #dadada;
        width: 100%;
        text-decoration: none;
        -webkit-transition: color .5s ease, padding .5s ease;
        -moz-transition: color .5s ease, padding .5s ease;
        transition: color .5s ease, padding .5s ease;
    }



}

[id='nav-toggle']:checked ~ .nav h2 {
    opacity: 1;
    transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
}

[id='nav-toggle']:checked ~ .nav > ul > li {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

[id='nav-toggle'] {
    position: absolute;
    display: none;
}

[id='nav-toggle']:checked ~ .nav > .nav-toggle {
    left: 20px;
}

[id='nav-toggle']:checked ~ .nav {
    left: 0;
    box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

body.menu-open {
    overflow: hidden;
}



/**/

aside{
    position: fixed;
    height: 100vh;
    float: right;
    padding: 20px;
    padding-top: 70px;
    overflow-y: hidden;
    transition: overflow 0.2s;
    box-sizing: border-box;
}

aside:hover {
    overflow-y: auto;
}


aside::-webkit-scrollbar {
    width: 8px;
}

aside::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

aside::-webkit-scrollbar-track {
        background-color: transparent;
}

aside:hover .scroll-wrapper {
  overflow-y: auto;
}

.scroll-wrapper {
  height: 100%;
  overflow-y: hidden;
  padding: 20px;
  box-sizing: border-box;
}

::-webkit-scrollbar {
    width: .65em;
}

::-webkit-scrollbar-track {
    background-color: rgba(217, 217, 217, 0.75);
}

::-webkit-scrollbar-thumb {
    background: rgba(170, 170, 170, 0.6);
    border-radius: 5px;
    box-shadow: inset 0.05em 0.05em 0 rgba(0, 0, 0, 0.1), inset 0 -0.05em 0 rgba(0, 0, 0, 0.07);
}

nav{
    margin-top: 20px;
    width: 265px;

    menu{
        background-color: white;
        border-radius: 8px;
        margin-top: 20px;
        display: grid;
        padding: 20px 0;
        gap: 20px;

        h1{
            font-size: 18px;
        }

        a{
            height: 40px;
            border: 1px solid #eaeaea;
            border-radius: 6px;
            align-items: center;
            display: flex;
            justify-content: flex-start;
            margin: 0 20px;
            color: black;
            font-size: 18px;  
            padding: 0 12px;
            gap: 12px;

            img{
                width: 24px;
                aspect-ratio: 1 / 1;
                border-radius: 50%;
            object-fit: cover;
            }
        }

        a:hover{
            background-color: #f5f5f5;
        }
    }

    menu:nth-child(4){
        img{
            width: 20px;
        }
    }
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 70px;
}

article{
    margin-top: 20px;
    background-color: white;
    border-radius: 12px;
}

.swiper-container {
    max-width: 680px;
    margin: 0 auto;
    background-color: rgba(243, 243, 243, 0.911);
    --swiper-navigation-size: 32px;

    .swiper-wrapper {
    display: flex;
    align-items: center;
    }

    .swiper-slide {
    display: flex;
    justify-content: center; 
    align-items: center;   
    flex: 0 0 100% !important;
    width: 100% !important;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: auto;        
        max-height: 680px;
        object-fit: contain;    
    }

    .swiper-button-next, .swiper-button-prev {
        color: #ffffff33;
    }
}


/*поиск*/

.search {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 50px;
  overflow: hidden;
  padding: 0 12px;

    .search-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        background: url('https://cdn-icons-png.flaticon.com/128/3031/3031293.png') no-repeat center;
        background-size: 16px 16px;
        border: none;
        width: 32px;
        height: 32px;
        cursor: pointer;
        padding: 0;
        outline: none;
    }

    input {
        width: 100%;
        padding: 10px 20px 10px 50px;
        font-size: 18px;
        outline: none;
        display: block;
        box-sizing: border-box;
        border-radius: 50px; 
        border: 2px solid #eaeaea;

    }


    input:focus { 
        border: 2px solid #d5d5d5;
    }

    [type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
        height: 10px;
        width: 10px;
        background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=');
        background-size: 10px 10px;
    }
}

.news, .events{
    margin-top: 20px;

    article{
        width: 680px;
    }

    .info-2{
        padding: 0 24px;
        padding-bottom: 16px;  

        .text {
            max-width: 632px;
            white-space: pre-wrap;
            padding: 0;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        .text.expanded {
            display: block;
            -webkit-line-clamp: unset;
            overflow: visible;
            text-overflow: unset;
            text-align: justify;
        }

        button {
            background: none;
            border: none;
            font-size: 14px;
            margin-top: 16px;  
            color: #3e3e3e94;  
            font-weight: bold;    
            cursor: pointer;
        }

        h4{
            text-align: right;
            margin-top: 16px;
        }
        
        .post-hashtags {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            
            .hashtag {
                background-color: #f0f0f0;
                color: #666;
                padding: 4px 8px;
                border-radius: 12px;
                font-size: 13px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .hashtag:hover {
                background-color: #e0e0e0;
                color: #333;
            }
        }
    }
}

.info{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        padding-bottom: 0;
        margin-bottom: 15px;

        div{
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }

        img{
            width: 50px;
            aspect-ratio: 1/1;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;         
        }

        h1{
            margin: 0 24px;
        }

        button{
            background: none;
            border: none;
            padding: 6px;
            border-radius: 6px;   

            img{
                width: 20px;
                border-radius: 0;
                margin: 0;
            }
        }

        button:hover{
            background-color: #eaeaea8c;
        }

        button:focus,
        button.dialog-open{
            background-color: #eaeaea;
        }
    }

    .post-title {
        padding: 0 24px;
        margin-bottom: 15px;
        
        h3 {
            font-size: 20px;
            font-weight: 600;
            color: #2c2c2c;
            margin: 0;
            line-height: 1.3;
            margin-bottom: 15px;
        }
    }

/**/

.club_info{
    width: 100%;
    max-width: 680px;
    margin-bottom: 20px;
    padding: 0 4px;
    box-sizing: border-box;   

    p{
        white-space: pre-wrap;
        text-align: justify;
        padding: 24px;
    }
}

.publication, .settings{
    box-sizing: border-box;

    width: 100%;
    max-width: 680px;
}

.reference{
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin-top: 20px;

    h1{
        padding: 0;
    }

    p, ol li, p{
        line-height: 1.5;
        font-size: 18px;
        text-align: justify;
    }
    
    article{
        background-color: #ffffff;
        border-radius: 12px;
        padding: 24px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    ol{
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-left: 0;
    }

    a{
        color: #4e79eb;
    }

    ul{
        display: flex;
        flex-direction: column;
        max-width: 740px;
        margin: 0 auto;
        gap: 16px;
        padding: 0;

        li{
            padding: 6px;
            border: 1px solid #E5E7EB;
            border-radius: 12px;
            overflow: hidden;
            list-style: none;

            label {
                display: block;
                padding: 8px;
                padding-bottom: 12px;
                cursor: pointer;
                font-weight: bold;
                font-size: 18px;
            }

            label {
                position: relative;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            label::after {
                content: '';
                display: inline-block;
                width: 8px;
                height: 8px;
                border-right: 2px solid #000;
                border-bottom: 2px solid #000;
                transform: rotate(45deg);
                transition: transform 0.3s ease;
                margin-left: 8px;
            }
            
            input:checked + label::after {
                transform: rotate(-45deg);
            }
            
            
            div {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding 0.3s ease;
                padding: 0 16px;
            }
            
            input:checked + label + div {
                max-height: 1000px;
                padding: 16px;
            }
        }
    }
}

.settings{

    article{
        padding: 20px;
        box-sizing: border-box;
        font-size: 18px;
        flex-wrap: wrap;

        figure{
            display: flex;

            img{
                object-fit: contain;
                margin-right: 12px;
            }

            figcaption{
                display: flex;
                justify-content: flex-start;
                gap: 5px;
            }   
        }

        button{
            background: none;
            border: 2px solid #eaeaea;
            border-radius: 12px;
            font-size: 18px;
            padding: 8px 12px;
            transition: all 0.3s ease;

            &:hover {
                background-color: #eaeaea;
            }
        }

        h1{
            padding: 0;
        }
    }

    article:nth-child(1){
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;   

        figure{
            align-items: center;

            img{
                width: 62px;
            }

            figcaption{
                flex-direction: column;
            }
        }
    }

    article:where(:nth-child(3), :nth-child(4)) {
        display: flex;
        flex-direction: column;
        gap: 20px;

        div{
            display: flex;
            flex-direction: column;
            gap: 20px ;

            figure{
                display: flex;
                flex-direction: row;
            }

            div{
                display: flex;
                flex-direction: row;      
                justify-content: space-between;
                align-items: center;
            }
        }

        button{
            width: 138px;
            padding: 12px 16px;
        }
    }
}



    .feedback{
        margin-top: 20px;
        max-width: 680px;
        width: 100%;

        form{
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                padding: 32px;
                gap: 32px;
                box-sizing: border-box;     

                div{
                    display: flex;
                    flex-direction: column;
                    gap: 14px;
                    width: 100%;
                    box-sizing: border-box;
                }

                &:nth-child(2){
                    height: 220px;

                    div{
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                    }

                    img{
                    width: 16px;    
                    height: 16px; 
                    }

                    div:nth-child(4) img{
                        width: 12px;    
                    }

                }

                &:nth-child(3){
                    height: 92px;
                    
                    div{
                        flex-direction: row;
                    }
                }

                input{
                    outline: none;
                    width: 100%;
                    height: 50px;
                    border: 1px solid #E5E7EB;
                    border-radius: 8px;
                    padding: 0 16px;
                    font-size: 18px;
                    box-sizing: border-box;
                }

                textarea{
                    outline: none;
                    border: 1px solid #E5E7EB;
                    border-radius: 8px;
                    width: 100%;
                    aspect-ratio: 4 / 3;
                    padding: 16px;
                    font-size: 18px;
                    resize: none;
                    box-sizing: border-box;
                }

                button{
                    margin-top: 30px;
                    width: 100%;
                    height: 48px;
                    border: none;
                    background-color: #d81c1c;
                    transition: all 0.3s ease;
                    border-radius: 8px;
                    color: white;
                    font-size: 18px;
                }

                button:hover{
                    background-color: #c01919;   
                } 
            }
    }

.indicatorBtnOne,
.indicatorBtnTwo,
.indicator {
    aspect-ratio: 1 / 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff4444; /* красный по умолчанию (отключено) */
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-right: 8px;
    /* Гарантируем, что в индикаторах не будет текста */
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.indicatorBtnOne.connected,
.indicatorBtnTwo.connected,
.indicator.connected {
    background-color: #44ff44; /* зеленый (подключено) */
}

/* Стили для секции интеграции с соцсетями */
.social-integration {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.social-item figure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.social-item figure img {
    width: 24px;
    height: 24px;
}

.social-item figcaption {
    font-weight: 500;
    color: #333;
}

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

.social-toggle-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.social-toggle-btn:hover {
    background-color: #0056b3;
}

.social-toggle-btn:active {
    transform: translateY(1px);
}



.publication{    
    * {
        box-sizing: border-box;
    }

    article {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-width: 680px;
        width: 100%;
        height: 800px;

        .hide {
            display: none;
        }

        #stepperValue {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            text-align: center;
            font-size: 18px;
        }
        .steps {
            display: inline-block;
            width: 32px;
            height: 32px;
            line-height: 32px;
            border-radius: 50%;
            background-color: #c7c9f1;
            color: #ffffff;
            text-align: center;
            transition: 0.3s ease;
        }
        .steps.highlight {
            background: #3d91f5;
            color: #ffffff;
            font-weight: bold;
        }
        .form-container {
            display: none;
        }
        .form-container:not(.hide) {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        label {
            display: block;
            font-size: 18px;
        }

        input,select {
            display: block;
            width: 100%;
            padding: 12px 10px;
            font-size: 16px;
            border: 2px solid #ccc;
            border-radius: 5px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            box-sizing: border-box;
            outline: none;
        }

        input:focus{
            border-color: #4a90e2;
        }

        .btns {
            display: flex;
            justify-content: space-between;
            gap: 20%;
            margin-top: 20px;
        }

        .btn{
            display: block;
            width: 100%;
            padding: 14px 12px;
            font-size: 18px;
            color: #fff;
            background-color: #007bff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: #0056b3;
        }

        .btn:disabled {
            background: #dddddd;
            cursor: not-allowed;
        }
        .btn.hide {
            display: none;
        }

        #error-message {
            color: #e92828;
            font-size: 0.9rem;
            margin-top: 2.5rem;
            text-align: center;
        }

        #multistep-form-container{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 91%;
        }

        .upload-area{
            color: var(--c-text-primary);
            background-color: var(--c-background-primary);
            line-height: 1.5;
            margin-top: 1.25rem;
            border: none;
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23ccc' stroke-width='3' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
            background-color: transparent;
            padding: 3rem;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            text-align: center;

            *, *::after, *::before {
                box-sizing: border-box;
            }

            :root {
                --c-action-primary: #2e44ff;
                --c-action-primary-accent: #e9e5ff;
                --c-action-secondary: #e5e5e5;
                --c-text-primary: #0d0f21;
                --c-text-secondary: #6a6b76;
                --c-background-primary: #d0d1de;
            }

            input, button, select, textarea {
                font: inherit;
            }

            .upload-area-icon {
                display: block;
                width: 2.25rem;
                height: 2.25rem;
            }

            .upload-area-icon svg {
                max-height: 100%;
                max-width: 100%;
            }

            .upload-area-title {
                margin-top: 1rem;
                font-weight: 700;
                color: var(--c-text-primary);
            }

            .upload-area-description {
                color: var(--c-text-secondary);
            }

            .upload-area-description strong {
                color: var(--c-action-primary);
                font-weight: 700;
            }

            .btn-secondary,
            .btn-primary {
                padding: .5rem 1rem;
                font-weight: 500;
                border: 2px solid var(--c-action-secondary);
                border-radius: .25rem;
                background-color: transparent;
                cursor: pointer;
            }

            .btn-primary {
                color: #FFF;
                background-color: var(--c-action-primary);
                border-color: var(--c-action-primary);
            }
            
        }

        .upload-area:hover,
        .upload-area:focus {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%232e44ff' stroke-width='3' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        }   

        .uploaded-files-list {
            margin-top: 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 1rem;
        }

        .uploaded-file-item {
            position: relative;
            background-color: var(--c-action-primary-accent);
            border-radius: 0.75rem;
            overflow: hidden;
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            transition: transform 0.2s ease, opacity 0.2s ease;
            animation: fadeIn 0.3s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .file-thumb {
            width: 100%;
            height: 70px;
            object-fit: cover;
            border-radius: 0.5rem;
            background-color: #d0d0d0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            color: var(--c-action-primary);
        }

        .file-name {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--c-text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

        .remove-file-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
        }

        .remove-file-btn:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

        textarea{
            outline: none;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            width: 100%;
            height: 584px;
            padding: 16px;
            font-size: 18px;
            resize: none;
            box-sizing: border-box;
        }

    }
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    &.show {
        opacity: 1;
        pointer-events: auto;
    }

    &.show .modal-content {
        transform: translateY(0);
        opacity: 1;
    }

    .modal-content {
        background-color: #ffffff;
        padding: 48px 0;
        border-radius: 16px;
        position: relative;
        width: 320px;
        max-width: 90%;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .close-button {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 24px;
        font-weight: bold;
        color: #888;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .close-button:hover {
        color: #333;
    }

    p {
        font-size: 20px;
        margin-bottom: 48px;
    }

    .modal-actions {
        display: flex;
        justify-content: center;
        gap: 48px;
    }

    .btn {
        padding: 10px 28px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 18px;
        transition: background-color 0.2s ease;

        &.btn-yes {
            background-color: #3d91f5;
            color: #fff;
        }

        &.btn-no {
            background-color: #e0e0e0;
            color: #333;
        }

        &.btn-yes:hover {
            background-color: #2f76c8;
        }

        &.btn-no:hover {
            background-color: #cfcfcf;
        }
    }

}

/*3 этап*/

.publish-time-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 6px 10px;

    .btn.publish-time-button{
        width: auto;
        padding: 8px 12px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-window {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 1rem;
}

.modal-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.profileEditing{
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin-top: 20px;

    article{
        display: flex;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
        font-size: 18px;
        flex-wrap: wrap;
        gap: 40px;

        .telProfile,.passwordProfile,.tgProfile,.vkProfile,.descriptionProfile,.mailProfile{
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;

            figure,p{
                width: 120px;
            }
        }

        #telProfileValue,#mailProfileValue{
            width: 180px;
        }

        .tgProfile figure,.vkProfile figure{
            display: flex;
            flex-direction: row;
            align-items: center;

 

            img {
                object-fit: contain;
                margin-right: 12px;
            }

            figcaption {
                display: flex;
                justify-content: flex-start;
                gap: 5px;
            }
        }

        .profileEditingOne{
            display: flex;
            gap: 40px;

            .photoProfile{
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                
                img{
                    width: 120px;    
                    aspect-ratio: 1/1;
                    border-radius: 50%;
                    object-fit: cover;
                }
                
                .editAvatarBtn {
                    padding: 8px;
                    border: none;
                    border-radius: 4px;
                    background-color: #007bff;
                    color: white;
                    cursor: pointer;
                    font-size: 14px;
                    transition: background-color 0.3s ease;
                }

                .editAvatarBtn:hover {
                    background-color: #0056b3;
                }

                .editAvatarBtn:active {
                    transform: translateY(1px);
                }
            }
        }

        .nameProfile{
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
        }

        .nameProfileValue{
            font-size: 18px;
        }
    }

    button {
        background: none;
        border: 2px solid #eaeaea;
        border-radius: 12px;
        font-size: 17px;
        padding: 8px 12px;
        transition: all 0.3s ease;
    }

    button:hover{
        background-color: #eaeaea;
    }

    textarea{
        border: 2px solid #eaeaea;
        outline: none;
        border-radius: 12px;
        width: 100%;
        height: 420px;
        resize: none;
        padding: 12px;
        box-sizing: border-box;
        font-size: 17px;
        margin-bottom: 20px;
    }

    .infoProfile{
        border: none;
        outline: none;
        border-bottom: 2px solid #ccc;
        background: none;
        width: 100%;
        max-width: 160px;
        font-size: 17px;
        margin-right: 40px;
        padding: 6px;
    }

    .backBtn,.savePrifile{
        background-color: rgb(0, 123, 255);
        border: none;
        border-radius: 12px;
        font-size: 16px;
        padding: 10px 14px;        
        color: white;

        &:hover{
            background-color: #0056b3;
        }
    }

    .backBtn{
        margin-top: 20px;
        margin-left: 20px;
    }
}

#mainProfileAvatar{
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

/* Стили для страницы поиска */
.search-info {
    border-radius: 8px;
    padding: 0 24px;
    margin-bottom: 20px;
}

.search-info p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.search-info strong {
    color: #495057;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results p {
    margin: 10px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

.no-results p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* Стили для модального окна поделиться */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    display: none;
}

.modal-content {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    min-width: 200px;
    max-width: 250px;
    z-index: 2;
    animation: modalSlideIn 0.2s ease-out;
    border: 1px solid #e1e5e9;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.share-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-button {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.share-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.share-button:active {
    transform: translateY(0);
}

.share-button img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
}

.share-button span {
    flex: 1;
    text-align: left;
}

/* Стили для диалогового окна поделиться */
.share-dialog {
    position: fixed;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    min-width: 200px;
    max-width: 250px;
    z-index: 1000;
    margin: 0;
    animation: modalSlideIn 0.2s ease-out;
}

.share-dialog::backdrop {
    background: transparent;
}

.share-dialog[open] {
    display: block;
}
