@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Libre Baskerville', serif;
}

@font-face {
    font-family: 'Garamond';
    src: url('../fonts/garamond/EBGaramond-Regular.eot');
    src: url('../fonts/garamond/EBGaramond-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/garamond/EBGaramond-Regular.woff') format('woff'),
        url('../fonts/garamond/EBGaramond-Regular.woff2') format('woff'),
        url('../fonts/garamond/EBGaramond-Regular.ttf') format('truetype'),
        url('../fonts/garamond/EBGaramond-Regular.svg') format('svg');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'inter-regular';
    src: url('../fonts/inter/Inter-Regular.eot');
    src: url('../fonts/inter/Inter-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/inter/Inter-Regular.woff') format('woff'),
        url('../fonts/inter/Inter-Regular.woff2') format('woff'),
        url('../fonts/inter/Inter-Regular.ttf') format('truetype'),
        url('../fonts/inter/Inter-Regular.svg') format('svg');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'inter-medium';
    src: url('../fonts/inter/Inter-Medium.eot');
    src: url('../fonts/inter/Inter-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/inter/Inter-Medium.woff') format('woff'),
        url('../fonts/inter/Inter-Medium.woff2') format('woff'),
        url('../fonts/inter/Inter-Medium.ttf') format('truetype'),
        url('../fonts/inter/Inter-Medium.svg') format('svg');
    font-style: normal;
    font-display: swap;
}

:root {
    --accent-color: #2C3E50;
    --body-color: #ffffff;
    --gold-color: #D3B298;
    --grey-color: #8D9FBB;
    --white-color: #ffffff;
    --red-color: #EB5757;
    --green-color: #27AE60;
    --black-color: #1c1c1c;
}

body {
    background-color: var(--body-color);
    padding-top: 47px;
    padding-bottom: 80px;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.6;
}

input,
textarea,
select,
button {
    font-family: 'Libre Baskerville', serif;
}
.home_body{
    background-image: url(../img/background/main_page_bg.svg);
    background-size: cover;
    background-position: center 20px;
    background-repeat: no-repeat;
    background-size: cover;
}
h1 {
    color: var(--accent-color);
    font-size: 42px;
    line-height: 110%;
    font-family: 'Playfair Display', serif;
    transition-duration: 0.3s;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

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

ul {
    list-style: none;
}

.input {
    position: relative;
    margin-bottom: 16px;
}

input {
    width: 100%;
    border: 1px solid #8D9FBB4D;
    border-radius: 10px;
    font-size: 15px;
    padding: 14px 15px;
    padding-right: 45px;
    outline: none;
    font-family: 'Libre Baskerville', serif;
    color: var(--black-color);
    transition-duration: 0.3s;
}

input::placeholder {
    color: var(--grey-color);
}

input:focus {
    border: 1px solid var(--accent-color);
    transition-duration: 0.3s;
}

.icon_input {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 12px;
    right: 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.password_icon {
    background-image: url(../img/icons/password_vis.svg);
    transition-duration: 0.3s;
}

.password_icon.show {
    background-image: url(../img/icons/password_hid.svg);
    transition-duration: 0.3s;
}

.btn {
    width: 100%;
    background-color: var(--accent-color);
    font-family: 'Libre Baskerville', serif;
    color: var(--white-color);
    font-size: 16px;
    border-radius: 10px;
    border: none;
    padding: 16px 32px;
    margin-top: 12px;
}

main {
    width: 100%;
    max-width: 480px;
    padding: 0 15px 50px 15px;
    margin: 0 auto;
}

.login_container {
    width: 100%;
    padding: 0 12px;
}

.login_page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../img/background/login_bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.login_page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.login_container ul {
    margin-top: 35px;
    text-align: center;
    list-style: none;
}

.login_container a {
    margin-bottom: 17px;
    display: block;
}

.forgot_instruction {
    margin-bottom: 10px;
}

.forgot_instruction span {
    color: var(--black-color);
    font-size: 16px;
    font-family: 'inter-regular';
}

.forgot_instruction p {
    color: var(--grey-color);
    font-family: 'inter-regular';
}

/* Шапка */
.header_page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px 12px;
    position: fixed;
    z-index: 999;
    top: 0;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
    border-radius: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: none;
    border: none;
}

.header_page .event_name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.header_page .event_name h4{
    width: 100%;
    font-size: 16px;
    font-family: 'inter-medium';
    color: var(--grey-color);
}
.header_page .event_name h4 span{
    color: var(--black-color);
    font-size: 14px;
    margin-left: 5px;
}
.header_page .event_name h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #2C3E50;
    margin: 0;
    font-weight: 600;
}
.header_page .arrow_icon {
    margin-left: 6px;
    transition-duration: 0.3s;
}

.header_page .event_selecteds_items {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    left: 0;
    min-width: 180px;
    margin-top: 7px;
    transform: scale(0);
    transition-duration: 0.3s;
    left: -100px;
    top: -40px;
    z-index: 99;
}

.header_page .event_selecteds_items ul {
    list-style: none;
}

.header_page .event_selecteds_items li {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(133, 182, 255, 0.1);
    color: var(--accent-color);
    font-size: 15px;
}

.header_page .event_selecteds_items a {
    color: var(--grey-color);
}

.header_nav ul {
    display: flex;
    align-items: center;
}

.header_nav ul li {
    margin-left: 12px;
}

.header_nav ul li a {
    display: block;
    padding-bottom: 0;
    height: 30px;
}

.event_block {
    position: relative;
}

.event_block.show .arrow_icon {
    transform: rotate(180deg);
    transition-duration: 0.3s !important;
}

.event_block.show .event_selecteds_items {
    transition-duration: 0.3s !important;
    transform: scale(1);
    left: 0;
    top: 42px;
}

/* main page */
.page_posts {
    margin-top: 42px;
}

.page_posts .post {
    margin-bottom: 35px;
}

.post_img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

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

.post_img .post_menu {
    position: absolute;
    top: 0px;
    right: 6px;
    z-index: 999;
}

.post_menu_items {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    right: 0;
    width: max-content;
}

.post_menu_items li {
    padding-bottom: 7px;
    margin-bottom: 7px;
    border-bottom: 1px solid rgba(133, 182, 255, 0.2);
}

.post_menu_items li a {
    color: var(--grey-color);
}

.post_menu_items li:last-of-type {
    border: none;
    margin-bottom: 0;
}

.post_menu .post_menu_items {
    transform: scale(0);
    transition-duration: 0.3s;
    right: -50px;
    top: -30px;
}

.post.show .post_menu_items {
    transform: scale(1);
    transition-duration: 0.3s;
    right: 10px;
    top: 40px;

}

.post.show .post_menu_overlay {
    width: 480px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 35px;
    height: 100vh;
    z-index: 4;
    opacity: 0;
}

.post_img .post_menu_icon {
    padding: 10px;
    width: 44px;
    height: 46px;

}

.post_img .post_menu_icon img {
    width: 24px;
}

.post_acc_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white-color);
    border-radius: 18px;
    width: 95%;
    margin: 0 auto;
    margin-top: -24px;
    position: relative;
    padding: 4px;
    padding-right: 18px;
    z-index: 1;
}

.post_acc_row .avatar {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
}

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

.post_acc_info {
    display: flex;
    align-items: center;
}

.post_acc_info .post_acc_info_nc {
    margin-left: 8px;
}

.post_acc_info .post_acc_info_nc .name {
    font-size: 15px;
    font-family: 'inter-medium';
    display: block;
    color: var(--black-color);
}

.post_acc_info .post_acc_info_nc .city {
    font-size: 13px;
    color: var(--grey-color);
    margin-top: -0px;
    display: block;
}

.post_acc_actions ul {
    display: flex;
    align-items: center;
}

.post_acc_actions li {
    margin-left: 18px;
}

.post_acc_actions li:first-of-type {
    margin-left: 0 !important;
}

.post_acc_actions button {
    border: none;
    background-color: var(--white-color);
}

.like_post {
    width: 22px;
    height: 22px;
    background-image: url(../img/icons/like.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition-duration: 0.3s;
}

.like_post.active {
    background-image: url(../img/icons/like_active.svg);
    transition-duration: 0.3s;
}

.info_post {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition-duration: 0.3s;
    background-image: url(../img/icons/post_info.svg);
    width: 22px;
    height: 22px;
}

.info_post.active {
    background-image: url(../img/icons/post_info_active.svg);
}

.post_description p {
    font-size: 15px;
    color: #86888A;
    font-family: 'inter-regular';
    line-height: 145%;
}

.post_description p span {
    font-family: 'inter-regular';
    color: var(--black-color);
    text-decoration: underline;
}

.post_description footer {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.post_description .time_post {
    color: var(--grey-color);
    font-size: 14px;
    font-family: 'inter-regular';
}

.post_description .quantity_comment {
    margin-left: 26px;
    font-size: 14px;
    font-family: 'inter-regular';
    color: var(--grey-color);
}

.post_description .quantity_comment span {
    color: var(--accent-color);
}

.post_description {
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
    transition-duration: 0.3s;
    max-height: 0;
    transition: max-height padding 0.4s linear;
    padding-top: 0px;
    padding-bottom: 0;
}

.post.show_text .post_description {
    padding-top: 16px;
    padding-bottom: 16px;
    transition-duration: 0.4s;
    max-height: 350px;
}

.owl-nav {
    display: none;
}

.owl-carousel .owl-item img {
    height: 400px;
    object-fit: cover;
}

.owl-dots {
    position: absolute;
    bottom: 35px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.owl-dots .owl-dot {
    height: 8px !important;
    width: 8px !important;
    border-radius: 900px !important;
    background-color: var(--white-color) !important;
    margin: 0 4px;
    transition-duration: 0.3s;
}

.owl-dots .owl-dot.active {
    background-color: var(--accent-color) !important;
    width: 22px !important;
    transition-duration: 0.3s;
}

.owl-carousel .owl-item {
    border-radius: 20px !important;
}

.header_page-fix {
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--body-color);
    z-index: 9991;
}

.header_page-fix h1 {
    font-size: 28px;
    transition-duration: 0.3s;
}

.header_page-fix .event_block.show .event_selecteds_items {
    top: 30px;
}

.slider-post {
    border-radius: 20px !important;
    overflow: hidden;
}

.event_block.show .event_overlay {
    width: 480px;
    position: absolute;
    left: -15px;
    top: 35px;
    height: 100vh;
}

.navigation_page {
    background: var(--white-color);
    border-radius: 40px 40px 0px 0px;
    padding: 12px 39px 9px;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

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

.navigation_page li {
    position: relative;
}

.navigation_page .avatar {
    border-radius: 900px;
}

.navigation_page .active path {
    stroke: var(--accent-color);
}

.navigation_page .active::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 90px;
}

.body_login {
    background: none !important;
}

.comment_post {
    margin-top: -90px;
}

.comment_post .post_img {
    border-radius: 0 0 20px 20px;
    height: 245px;

}

.comment_content {
    padding-top: 32px;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.comment_item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.comment_item .avatar {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 8px;
}

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

.comment_item .comment_info {
    padding-top: 3px;
}

.comment_item .comment_info .name {
    font-size: 15px;
    color: var(--black-color);
    font-family: 'inter-medium';
}

.comment_item .comment_info p {
    color: rgba(28, 28, 28, 0.5);
    font-size: 14px;
    margin-top: 8px;
    line-height: 145%;
}

.comment_item .comment_info footer {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.comment_item .comment_info footer .date {
    color: var(--grey-color);
    font-size: 14px;
    font-family: 'inter-regular';
    margin-right: 18px;
}

.comment_item .comment_info footer button {
    color: var(--grey-color);
    font-family: 'inter-regular';
    font-size: 14px;
    border: none;
    background: none;
    text-decoration: underline;
    cursor: pointer;
}
.comment_item .comment_menu{
    position: absolute;
    right: 0;
    top: 0px;
}

.comment_menu_items {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 20px;
    position: absolute;
    right: 0;
    width: max-content;
    transform: scale(0);
    transition-duration: 0.3s;
}

.comment_menu_items li {
    padding-bottom: 7px;
    margin-bottom: 7px;
    border-bottom: 1px solid rgba(133, 182, 255, 0.2);
}

.comment_menu_items li a {
    color: var(--grey-color);
}

.comment_menu_items li:last-of-type {
    border: none;
    margin-bottom: 0;
}
.comment_menu.show .comment_menu_items{
    transform: scale(1);
    transition-duration: 0.3s;
    z-index: 99;
}
.comment_item.show .comment_overlay{
    width: 480px;
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%);
    top: 35px;
    height: 100vh;
    z-index: 4;
    opacity: 0; 
}
.comment_form{
    position: relative;
}
.comment_form input{
    border: none;
    border-bottom: thin solid #8d9fbb42 !important;
    background-color: var(--body-color);
    border-radius: 0;
    padding-left: 0;
}
.comment_form input::placeholder{
    font-family: 'inter-regular';
}
.comment_form .last_emoji{
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: 15px;
}
.comment_form .last_emoji label{
    margin-left: 10px;
}
.gallery_items{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 42px;
    padding-bottom: 20px;
}
.gallery_items .gallery_item{
    display: block;
    width: 32%;
    padding: 0;
    margin: 0;
    height: 129px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
    margin-right: 6px;
}
.gallery_items .gallery_item:nth-child(3n){
    margin-right: 0;
}
.gallery_items .gallery_item img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.comment_post_form{
    width: 95%;
    margin: 0 auto;
    margin-top: 10px;
}
.back_page{
    margin-top: 10px;
}
.header_page-fix .back_page{
    margin-top: 0;
}
.add_post_content .file_load_form input{
    display: none;
}
.add_post_content label{
    display: flex;
    align-items: center;
    background: #D5E4F9;
    border-radius: 4px;
    width: fit-content;
    padding: 10px 12px;
    color: var(--grey-color);
    font-family: 'inter-regular';
}
.add_post_content label img{
    margin-right: 8px;
}
.add_post_content .image_box{
    margin-top: 42px;
    margin-bottom: 16px;
}
.add_post_content .image_box img{
    width: 100%;
    height: 190px;
    border-radius: 12px;
    object-fit: cover;
}
textarea{
    width: 100%;
    height: 150px;
    border: 1px solid #8D9FBB4D;
    border-radius: 10px;
    font-size: 15px;
    padding: 14px 15px;
    padding-right: 45px;
    outline: none;
    font-family: 'inter-medium';
    color: var(--black-color);
    transition-duration: 0.3s;
    color: var(--black-color);
}
textarea::placeholder{
    color: var(--grey-color);
}
.load_form_text{
    margin-top: 32px;
    padding-bottom: 100px;
}
.load_form_text textarea{
    margin-bottom: 16px;
    
}

.load_form_text .load_img{
    display: none;
}
.load_form_text button{
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 480px;
}
.table_container{
    margin-top: 42px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
.table_item{
    background-color: var(--white-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 16px 15px; */
    padding-right: 16px;
    width: 48.5%;
    margin-right: 1.5%;
    margin-bottom: 8px;
    position: relative;
}
.table_item:nth-child(2n){
    margin-right: 0;
}
.table_item .table_header{
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 15px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.table_item .table_icon{
    margin-right: 8px;
}
.table_item h4{
    color: var(--black-color);
    font-size: 15px;
    display: flex;
    align-items: center;
}
.table_item h4 span{
    margin-left: 5px;
    display: block;
    color: var(--grey-color);
    font-size: 15px;
}
.table_item .icons_row{
    display: flex;
    align-items: center;
}
.table_item .icons_row .hidden{
    display: none;
}
.actions_page{
    position: fixed;
    display: flex;
    justify-content: flex-end;
    right: 0;
    bottom: 80px;
    margin: 0 auto;
    width: 82%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
}
.actions_page button{
    width: 44px !important;
    height: 44px !important;
    border-radius: 900px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}
.actions_page .edit_page{
    background-color: var(--white-color);
    margin-right: 7px;
    background-image: url(../img/icons/edit.svg);
    transition-duration: 0.3s;
}
.actions_page .add_item{
    background-color: var(--accent-color);
    background-image: url(../img/icons/add_white.svg);
}
.actions_page .edit_page.active{
    background-image: url(../img/icons/check.svg);
    transition-duration: 0.3s;
}
.my_table h4{
    color: var(--accent-color);
}
.my_table h4 span{
    color: var(--accent-color);
}
.overlay {
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(34, 39, 56, 0.781);
    opacity: 0;
    pointer-events: none;
    -webkit-transition: 0.35s ease-in-out;
    -o-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 99999;
}

.overlay.open {
    opacity: 1;
    pointer-events: inherit;
}

.overlay .modal {
    background: white;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: 0.35s ease-in-out;
    -o-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
    max-height: 100vh;
    overflow-y: auto;
}

.overlay .modal.open {
    opacity: 1;
    pointer-events: inherit;
}

.overlay .modal.open .content {
    -webkit-transform: translate(0, 0px);
    -ms-transform: translate(0, 0px);
    transform: translate(0, 0px);
    opacity: 1;
}

.overlay .modal .content {
    -webkit-transform: translate(0, -10px);
    -ms-transform: translate(0, -10px);
    transform: translate(0, -10px);
    opacity: 0;
    -webkit-transition: 0.35s ease-in-out;
    -o-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
}

.overlay .modal {
    width: 95%;
    max-width: 325px;
    background-color: var(--white-color);
    padding: 32px 20px;
    border-radius: 30px;
    position: relative;
}
.overlay .modal .title{
    font-size: 18px;
    color: var(--black-color);
}
.overlay .modal .title span{
    color: var(--grey-color);
    margin-left: 7px;
}
.close-modal{
    position: absolute;
    right: 0;
    top: -17px;
    border: none;
    background-color: var(--white-color);
}
.table_list{
    margin-top: 15px;
    height: 320px;
    overflow-y: scroll;
}
.table_list_item{
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    padding-top: 15px;
    border-bottom: 1px solid rgba(141, 159, 187, 0.15);
}
.table_list_item .human_info{
    display: flex;
    align-items: center;
}
.table_list_item .avatar{
    width: 32px;
    height: 32px;
    margin-right: 10px;
}
.table_list_item .avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.table_list_item .human_info .name{
    opacity: 0.6;
    color: var(--black-color);
    font-size: 15px;
}
.table_list_item .human_info .my_name{
    opacity: 1;
    color: var(--accent-color);
}
.add_table_form{
    margin-top: 20px;
}
.upload_file{
    display: flex;
    align-items: center;
    background: #D5E4F9;
    border-radius: 4px;
    width: fit-content;
    padding: 10px 12px;
    color: var(--grey-color);
    font-family: 'inter-regular';
}
.input_hidden{
    display: none;
}
.table_list h5{
    font-size: 15px;
    margin-top: 15px;
}
.new_table_list{
    height: 200px;
}
.schedule_content{
    margin-top: 62px;
    padding-bottom: 20px;
}
.schedule_item{
    display: flex;
    justify-content: space-between;
}
.schedule_item .circle{
    min-width: 13px;
    min-height: 13px;
    border-radius: 900px;
    box-shadow: inset 0 0 0px 2px var(--gold-color);
    display: inline-block;
    background-color: var(--body-color);
}
.schedule_item .down_line{
    width: 1px;
    background: var(--gold-color);
    height: 100%;
    display: inline-block;
    margin-top: -4px;
}
.schedule_divider{
    text-align: center;
    margin: 0 20px 0 10px;
    margin-top: 5px;
}
.schedule_time{
    min-width: 20%;
}
.schedule_time span{
    text-align: center;
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 90px;
    color: var(--white-color);
    padding: 4px;
}
.schedule_info{
    padding-bottom: 30px;
    padding-top: 2px;
}
.schedule_info h3{
    font-size: 20px;
    color: var(--black-color);
    font-family: 'inter-medium';
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.schedule_info .row_icons{
    margin-left: 15px;
    display: flex;
    align-items: center;
}
.schedule_info button{
    border: none;
    background-color: var(--body-color);
    margin-right: 12px;
}
.schedule_info button img{
    width: 20px;
}
.schedule_info p{
    color: var(--grey-color);
    font-family: 'inter-regular';
}
.schedule_info{
    width: 75%;
}
.schedule_item:first-of-type .circle{
    background-color: var(--gold-color);
}
.schedule_item:last-of-type .circle{
    background-color: var(--gold-color);
}
.schedule_item:last-of-type .down_line{
    display: none;
}

.schedule_modal input{
    padding-right: 13px;
}
::-webkit-calendar-picker-indicator {
    filter: invert(0.7);  
}
.row_icons.hidden{
    display: none;
}
.admin_gifts{
    margin-top: 47px;
    display: flex;
    flex-wrap: wrap;
}
.admin_gifts .gift_item{
    background-color: var(--white-color);
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    width: 48.5%;
    margin-right: 1.5%;
    margin-bottom: 8px;
    position: relative;
    min-height: 95px;
}
.admin_gifts .gift_item:nth-child(2n){
    margin-right: 0;
}
.admin_gifts .gift_item h3{
    color: var(--black-color);
    font-size: 16px;
    margin-bottom: 4px;
    padding-right: 25px;
}
.admin_gifts .gift_item p{
    font-size: 15px;
    color: var(--grey-color);
    font-family: 'inter-regular';
}
.admin_gifts .gift_item  button{
    position: absolute;
    right: 10px;
    top: 10px;
    background-color:var(--white-color);
    border: none;
}
.admin_gifts .gift_item .edit_gift.hidden{
    display: none;
}

.user_gifts{
    margin-top: 47px;
}
.select_gifts{
    padding: 5px;
    padding-bottom: 0;
    border-radius:10px;
    background-color: var(--white-color);
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
}
.select_gift_item{
    background-color: var(--white-color);
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    width: 49%;
    margin-right: 2%;
    position: relative;
    min-height: 95px;
    background-color: var(--accent-color);
    margin-bottom: 5px;
    margin-top: 5px;
}
.select_gift_item:nth-child(2n){
    margin-right: 0;
}
.select_gift_item h3{
    color: var(--white-color);
    font-size: 16px;
    margin-bottom: 4px;
    padding-right: 25px;
}
.select_gift_item p{
    color: var(--white-color);
    font-size: 15px;
    font-family: 'inter-regular';
}
.select_gift_item button{
    border: none;
    background: none;
    position: absolute;
    right: 10px;
    top: 10px;
}
.all_gifts{
    padding-top: 29px;
}
.all_gifts h2{
    font-size: 16px;
    color: var(--grey-color);
    margin-bottom: 16px;
}
.gift_items{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.gift_items .gift_item{
    background-color: var(--white-color);
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 15px;
    width: 48.5%;
    margin-right: 1.5%;
    margin-bottom: 8px;
    position: relative;
    min-height: 95px;
}
.gift_items .gift_item h3{
    color: var(--black-color);
    font-size: 16px;
    margin-bottom: 4px;
    padding-right: 25px;
}
.gift_items .gift_item p{
    font-size: 15px;
    color: var(--grey-color);
    font-family: 'inter-regular';
}
.gift_items .gift_item button{
    border: none;
    background-color: var(--white-color);
    width: 27px;
    height: 27px;
    border-radius: 90px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.178);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -4px;
    top: -4px;
    transition-duration: 0.3s;
}

.gift_items .gift_item.select .edit_my_gift{
    background-color: var(--accent-color);
    transition-duration: 0.3s;
}
.gift_items .gift_item.select .edit_my_gift svg path{
    stroke: var(--white-color);
    opacity: 1;
}
.gift_items .gift_item.select .edit_my_gift svg g{
    opacity: 1;
}
.profil_content{
    margin-top: 47px;
    padding-bottom: 50px;
}
.profil_info{
    display: flex;
    align-items: center;
}
.profil_info .avatar{
    min-width:111px;
    height: 111px;
    margin-right: 12px;
    border-radius: 14px;
    overflow: hidden;
}
.profil_info .profil_text h2{
    font-size: 20px;
    font-family: 'inter-medium';
    color: var(--black-color);
    margin-bottom: 2px;
    line-height: 140%;
}
.profil_info .profil_text .role{
    font-size: 16px;
    color: var(--grey-color);
}
.events_list{
    margin-top: 16px;
}
.events_list .subheader{
    font-size: 16px;
    color: var(--grey-color);
    display: block;
    margin-bottom: 13px;
}
.events_list .events_list-event-name{
    color: var(--accent-color);
    font-size: 20px;
    font-family: 'inter-medium';
    font-weight: 500;
}
.events_list .events_date{
    margin-top: 4px;
    margin-bottom: 24px;
    font-size: 17px;
}
.subheader_guest{
    font-size: 16px;
    color: var(--grey-color);
    display: block;
    margin-bottom: 13px;
}
.status_guest{
    margin-left: 5px;
    margin-top: 2px;
}
.add_guest_modal label{
    margin-bottom: 15px;
}
.add_guest_modal textarea{
    height: 105px;
}
.edit_user_page{
    margin-top: 57px;
}
.edit_user_page input{
    padding-right: 15px;
}
.edit_user_page label{
    margin-bottom: 16px;
}
.decision{
    text-align: center;
}
.decision span{
    color: var(--grey-color);
}
.decision .btn_fill{
    background-color: var(--green-color);
}
.decision .btn_stroke{
    background-color: var(--body-color);
    border: 1px solid var(--red-color);
    color: var(--red-color);
}
.welcom_content{
    margin-top: 57px;
}
.welcom_content .welcome_img{
    width: 100%;
    height: 260px;
    border-radius:8px ;
    overflow: hidden;
}
.welcom_content .welcome_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.welcom_header{
    margin-top: 25px;
}
.welcom_content p{
    color: var(--black-color);
    margin-top: 25px;
    margin-bottom: 35px;
}
.welcom_content .btn{
    width: 100%;
    display: block;
    text-align: center;
}
.date_input{
    width: 100% !important;
    max-width: 490px !important;
    display: block !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background: var(--white-color) !important;
    display: flex !important;
    align-items: center !important;
    height: 49px !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.pr0_modal{
    padding-right: 0  !important;
}
.pr0_modal .close-modal{
    right: 15px;
}
.pr0_modal .add_table_form{
    padding-right: 20px;
}
.table_list {
    padding-right: 20px;
}
a.gift_item h3{
    color: var(--accent-color) !important;
}
.event_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.event_actions form,
.event_actions a {
    margin: 0;
    flex: none;
}

/* Стили для фоновых изображений дизайнов */
.background_options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.option_radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option_radio:hover {
    border-color: var(--accent-color);
    background-color: #f8f9ff;
}

.option_radio input[type="radio"] {
    margin: 0;
}

.option_radio input[type="radio"]:checked + span {
    color: var(--accent-color);
    font-weight: bold;
}

.background_images_section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.background_images_section p {
    color: #1c1c1c !important;
}

.ai_instructions {
    margin-top: 15px;
}

.ai_instructions p {
    color: #1c1c1c !important;
    margin-bottom: 10px;
}

.ai_instructions ul {
    list-style: none;
    padding: 0;
}

.ai_instructions li {
    color: #1c1c1c !important;
    margin-bottom: 8px;
    padding-left: 0;
}

/* Максимальный приоритет для AI инструкций - всегда черный текст */
.background_images_section * {
    color: #1c1c1c !important;
}

.ai_instructions * {
    color: #1c1c1c !important;
}

.background_themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.theme_group h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.theme_images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.image_option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.image_option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(133, 182, 255, 0.2);
}

.image_option input[type="checkbox"] {
    display: none;
}

.image_option input[type="checkbox"]:checked + img {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 2px rgba(133, 182, 255, 0.3);
}

.image_option img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.image_option span {
    font-size: 12px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.image_option input[type="checkbox"]:checked + img + span {
    color: var(--accent-color);
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .background_themes {
        grid-template-columns: 1fr;
    }
    
    .theme_images {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .image_option img {
        width: 60px;
        height: 45px;
    }
}