
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;

}

.header .container {
    position: relative;
    height: 80px;
    align-items: center;

}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    height: 40px;
}

.logo {
    font-family: Philosopher;
    font-size: 26px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: 0%;
    text-align: left;
    color: rgb(33, 33, 33);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.logo a,
.logo a:visited,
.logo a:hover,
.logo a:active,
.logo a:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}
.nav-buttons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    color: rgb(33, 33, 33);
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: left;
    background: transparent;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    border: none;
}

.menu-btn {
    background: #FFF;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    color: #333;
    display: block !important;
    border-radius: 5px;
    z-index: 1001;
}
.login-btn:hover {
    background: #666;
}
.menu-btn:hover {
    background: #666;
}

.dropdown-menu {
    box-sizing: border-box;
    border: 1px solid rgb(107, 39, 55);
    border-radius: 10px;
    background: rgb(255, 255, 255);
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.nav-item {
    color: rgb(33, 33, 33);
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: left;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #f5f5f5;
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #666;
}
.profile-btn {
    color: rgb(33, 33, 33);
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    transition: all 0.3s;
    margin-left: 10px;
}

.profile-dropdown-menu {
    display: none;
    box-sizing: border-box;
    position: absolute;
    min-width: 200px;
    background: #fff;
    border: 1px solid #6B2737;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(107,39,55,0.08);
    z-index: 1000;
    max-width: 220px;
    padding: 10px 0;
    top: 100%;
    left: 75%;      /* Меняем на left: 0; */
    right: auto;  /* Добавляем, чтобы сбросить right */
    margin-top: 8px;
}

.profile-dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.profile-username {
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    padding: 10px 20px 8px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.profile-menu-item {
    color: #6B2737;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    display: block;
}

.profile-menu-item:hover {
    background: #f5f5f5;
}








.container {
    max-width: 1161px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
#loginModal .login-btn-submit:hover, .register-btn-submit:hover {
    background-color: #5a1f2e;
}

#loginModal .close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #6B2737;
    cursor: pointer;
}

/* Стили для модального окна входа */
#loginModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#loginModal h3 {
    color: #6B2737;
    padding: 0px;
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Philosopher', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#loginModal .form-group-login {
    margin-bottom: 15px;
}

#loginModal .form-group-login label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    color: rgb(33, 33, 33);
font-family: Work Sans;
font-size: 14px;
font-weight: 400;
line-height: 20px;
letter-spacing: 0%;
text-align: left;
}

#loginModal .form-group-login input {
    box-sizing: border-box;
    display: block;
    width: 100%;

    padding: 8px 10px;
    border: 1px solid #6B2737;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
}

#loginModal .login-btn-submit, .register-btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #6B2737;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px 40px;
    width: 814px;
    max-width: 90%;
    max-height: 80vh; /* Ограничиваем максимальную высоту */
    overflow-y: auto; /* Добавляем прокрутку при необходимости */
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #6B2737;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    z-index: 2;
}

.close-modal img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}
.notifications-item{
    color: rgb(107, 39, 55);
    text-decoration: none;

}
.notifications-count {
    border-radius: 50%;
    border: 1px solid rgb(107, 39, 55);
    display: inline-block;
    height: 12px;
    width: 12px;
    line-height: 12px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 10px;
    vertical-align: middle;
    align-items: center;
    align-content: center;
}
.notifications-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
/* Стили для модального окна входа */
#loginModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link a {
    color: #6B2737;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
}

.register-link a:hover {
    text-decoration: underline;
}

#registerModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-modal-content {
    position: relative;
    width: 362px;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6B2737;
    box-shadow: 0 4px 8px rgba(107, 39, 55, 0.2);
    background-image: url('/static/photo/login-bg.jpg');
    background-size: 426px 378px;
    background-position: center;
    background-repeat: no-repeat;
}
.register-modal-content {
    position: relative;
    width: 362px;
    height: 430px;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6B2737;
    box-shadow: 0 4px 8px rgba(107, 39, 55, 0.2);
    background-image: url('/static/photo/login-bg.jpg');
    background-size: 426px 378px;
    background-position: center;
    background-repeat: no-repeat;
}






#loginModal .login-btn-submit, .register-btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #6B2737;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

