:root {
    --ozon-blue: #005bff;
    --ozon-text: #001a34;
    --ozon-gray: #f5f5f5;
    --ozon-yellow: #fff5a1;
}

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

body {
    background-color: var(--ozon-gray);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header {
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 12px 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ozon-blue);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    min-width: 120px;
}

.logo span {
    font-size: 11px;
    color: var(--ozon-text);
    margin-top: 4px;
}

/* Поиск */
.search-wrapper {
    display: flex;
    flex: 1;
    gap: 16px;
    max-width: 800px;
}

.categories-dropdown {
    position: relative;
}

.all-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ozon-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.all-categories:hover {
    background-color: #005bab;
}

.all-categories i {
    font-size: 16px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
    padding: 8px 0;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.dropdown-menu .fa-chevron-right {
    margin-left: auto;
    margin-right: 0;
    font-size: 12px;
    color: #999;
}

.submenu {
    display: none;
    position: absolute;
    top: -8px; /* Компенсируем padding родительского меню */
    left: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1001;
    padding: 8px 0;
}

.has-submenu > a {
    padding-right: 32px; /* Больше места для стрелки */
}

.has-submenu::after {
    content: '';
    position: absolute;
    top: 0;
    right: -16px; /* Создаем невидимую область для плавного перехода */
    width: 16px;
    height: 100%;
    background: transparent;
}

.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -16px; /* Создаем невидимую область для плавного перехода */
    width: 16px;
    height: 100%;
    background: transparent;
}

.submenu.active {
    display: block;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
}

.search-input-wrapper input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input-wrapper input:focus {
    border-color: var(--ozon-blue);
    outline: none;
}

.location-select {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    min-width: 160px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.location-select:hover,
.location-select:focus {
    border-color: var(--ozon-blue);
    outline: none;
}

/* Общие стили для синих кнопок */
.add-ad-button,
.categories-button,
.search-button {
    height: 40px;
    border-radius: 8px;
    background: var(--ozon-blue);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 14px;
}

.add-ad-button {
    background: #F81155;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 12px;
    gap: 6px;
}

.add-ad-button:hover {
    background: #F81155;
}

.add-ad-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s ease;
}

.add-ad-button:hover::before {
    left: 100%;
}

.add-ad-button i {
    font-size: 14px;
}

.categories-button:hover,
.search-button:hover {
    background: #005bab;
}

/* Кнопка категорий */
.categories-button {
    padding: 0 12px;
    gap: 6px;
}

/* Кнопка поиска */
.search-button {
    padding: 0 16px;
    min-width: 40px;
}

.search-button i {
    font-size: 16px;
}

/* Правая часть хедера */
.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Общие стили для кнопок и ссылок в шапке */
.action-link {
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ozon-text);
    font-size: 12px;
    min-width: 48px;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-link i {
    font-size: 16px;
    margin-bottom: 1px;
    color: var(--ozon-text);
}

.action-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.action-link:hover i,
.action-link:hover span {
    color: var(--ozon-blue);
}

.notification-counter {
    position: absolute;
    top: 0;
    right: 2px;
    background: #4CAF50;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Нижняя навигация */
.bottom-header {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--ozon-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--ozon-blue);
}

/* Основной контент */
main {
    padding: 24px 0;
}

.categories-overview {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Статистика категорий */
.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-stats h2 {
    font-size: 24px;
    color: var(--ozon-text);
    margin: 0;
}

.category-stats a {
    color: var(--ozon-blue);
    text-decoration: none;
    font-size: 14px;
}

.category-stats a:hover {
    text-decoration: underline;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Модальное окно */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form h2 {
    text-align: center;
    margin: 0 0 20px;
    color: #333;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.vk-btn {
    background-color: #0077FF;
    color: white;
}

.yandex-btn {
    background-color: #FFCC00;
    color: black;
}

.yandex-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: white;
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #0077FF;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-button {
    background-color: #0077FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #0066CC;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    color: #333;
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #0077FF;
    text-decoration: none;
    margin-left: 5px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Стили для кнопки входа в шапке */


/* Секция с объявлениями */
.listings {
    margin: 24px 0;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.listings-header h2 {
    font-size: 24px;
    color: var(--ozon-text);
}

.view-all {
    color: var(--ozon-blue);
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Карточка объявления */
.listing-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    z-index: 1;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 2;
}

.listing-image {
    position: relative;
    padding-bottom: 100%;
    background: #f5f5f5;
}

.listing-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #999;
}

.favorite-button:hover {
    background: var(--ozon-gray);
    color: var(--ozon-blue);
}

.listing-content {
    padding: 12px;
    overflow: visible;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: #F81155;
    margin-bottom: 8px;
}

.listing-title {
    font-size: 14px;
    color: var(--ozon-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.listing-location {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.listing-date {
    font-size: 12px;
    color: #999;
}

.product-info {
    padding: 12px;
    overflow: visible;
}

.seller-info {
    position: relative;
    overflow: visible;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.seller-name {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.seller-link {
    cursor: pointer;
    transition: color 0.2s;
}

.seller-link:hover {
    color: var(--ozon-blue);
}

.seller-popup {
    display: none;
    position: absolute;
    left: -16px;
    top: calc(100% + 8px);
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 16px;
    z-index: 100000;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 14px;
    z-index: 1;
}

.seller-popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 14px;
    color: #333;
}

.seller-popup-rating i {
    color: #FFB800;
    font-size: 16px;
}

.seller-popup-rating .rating-value {
    font-weight: 500;
}

.seller-popup-rating .reviews-count {
    color: #666;
    font-size: 12px;
    margin-left: 4px;
}

/* Показываем попап только на десктопе при наведении */
@media (min-width: 1024px) {
    .seller-name:hover .seller-popup {
        display: block;
    }
}

/* Стрелочка сверху попапа */
.seller-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.05);
    z-index: 99999;
}

.seller-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-avatar i {
    font-size: 24px;
    color: #666;
}

.seller-details {
    flex: 1;
}

.seller-fullname {
    font-weight: 500;
    margin-bottom: 4px;
}

.seller-status {
    font-size: 12px;
    color: #666;
}

.seller-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 14px;
}

.seller-rating i {
    color: #FFB800;
    font-size: 14px;
}

.reviews-count {
    color: #666;
    font-size: 12px;
    margin-left: 4px;
}

/* Популярные категории */
.popular-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--ozon-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ozon-blue);
    font-size: 24px;
    flex-shrink: 0;
}

.category-info {
    flex-grow: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 16px;
    color: var(--ozon-text);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-info span {
    font-size: 13px;
    color: #666;
}

/* Чат */
.chat-widget {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 320px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-widget.collapsed {
    transform: translateY(calc(100% - 48px));
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.chat-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-item:hover {
    background: #f5f5f5;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ozon-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ozon-blue);
}

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

.chat-content {
    flex-grow: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--ozon-text);
}

.chat-preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.chat-time {
    font-size: 12px;
    color: #999;
}

.chat-status {
    background: var(--ozon-blue);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Окно чата */
.chat-window {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 320px;
    height: 480px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-window-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-window-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-to-chats {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

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

.chat-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.chat-user-name {
    font-weight: 500;
    color: var(--ozon-text);
}

.chat-user-status {
    font-size: 12px;
    color: #4CAF50;
}

.chat-window-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.chat-window-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

.message-date {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 8px 0;
}

.message {
    max-width: 80%;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.incoming {
    align-items: flex-start;
}

.message.outgoing {
    align-items: flex-end;
}

.message-content {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--ozon-text);
}

.message.outgoing .message-content {
    background: var(--ozon-blue);
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.chat-window-input {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 8px 12px;
}

.input-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.input-wrapper input {
    flex-grow: 1;
    border: none;
    background: none;
    outline: none;
    padding: 0;
    font-size: 14px;
}

.input-wrapper input::placeholder {
    color: #999;
}

.send-message {
    color: var(--ozon-blue) !important;
}

/* Emoji picker */
.emoji-picker__wrapper {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    z-index: 1000;
}

.emoji-picker__content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
}

.emoji-button {
    color: #666;
    transition: color 0.2s;
}

.emoji-button:hover {
    color: var(--ozon-blue);
}

/* Поддержка */
.support-chat .chat-avatar {
    background: var(--ozon-blue);
    color: white;
}

@media (max-width: 768px) {
    .chat-widget,
    .chat-window {
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .listings {
        margin: 16px 0;
    }

    .listings-header h2 {
        font-size: 20px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .listing-content {
        padding: 8px;
    }

    .listing-price {
        font-size: 16px;
    }

    .listing-title {
        font-size: 13px;
        height: 34px;
    }

    .popular-categories {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .category-card {
        padding: 12px;
        gap: 12px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .category-info h3 {
        font-size: 14px;
    }

    .category-info span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .listing-price {
        font-size: 15px;
    }

    .listing-title {
        font-size: 12px;
        height: 32px;
    }

    .listing-location,
    .listing-date {
        font-size: 11px;
    }

    .popular-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 10px;
        gap: 10px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .category-info h3 {
        font-size: 13px;
    }

    .category-info span {
        font-size: 11px;
    }
}

/* Стили для иконки и счетчика в виджете сообщений */
.chat-header .fa-comments {
    color: var(--ozon-blue);
    font-size: 20px;
}

.messages-counter {
    background: var(--ozon-blue);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Обновляем стили заголовка чата */
.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }

    .header-main {
        gap: 16px;
    }

    .header-left {
        gap: 16px;
    }

    .search-wrapper {
        max-width: 600px;
    }

    .location-select {
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-wrap: wrap;
    }

    .header-left {
        order: 1;
        width: 100%;
    }

    .header-right {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .search-wrapper {
        max-width: none;
    }

    .user-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .top-header {
        padding: 8px 0;
    }

    .header-main {
        flex-direction: column;
        gap: 8px;
    }

    /* Логотип и категории */
    .header-left {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
        min-width: auto;
    }

    .logo span {
        font-size: 8px;
    }

    /* Поиск */
    .search-wrapper {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .categories-dropdown {
        grid-column: 1 / -1;
    }

    .search-input-wrapper {
        display: flex;
        gap: 8px;
        grid-column: 1 / -1;
    }

    .search-input-wrapper input {
        height: 40px;
        font-size: 14px;
    }

    .location-select {
        height: 40px;
        font-size: 14px;
        padding: 0 8px;
        width: auto;
        min-width: 100px;
    }

    .search-button {
        height: 40px;
        width: 40px;
        padding: 0;
    }

    /* Действия пользователя */
    .header-right {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 12px;
        align-items: center;
    }

    .add-ad-button {
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .user-actions {
        display: flex;
        justify-content: flex-end;
        gap: 20px;
    }

    .action-link {
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
    }

    .action-link i {
        font-size: 18px;
    }

    /* Навигация */
    .nav-links {
        display: flex;
        gap: 16px;
        padding: 8px 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        font-size: 13px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    /* Выпадающее меню на мобильных */
    .dropdown-menu {
        position: fixed;
        top: 56px; /* Высота шапки */
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 56px);
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        background: white;
    }

    .dropdown-menu > ul > li > a {
        padding: 16px;
        font-size: 15px;
    }

    .dropdown-menu > ul > li > a > i:first-child {
        width: 24px;
        font-size: 18px;
    }

    .dropdown-menu > ul > li > a > i:last-child {
        font-size: 14px;
    }

    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f8f8f8;
        margin-left: 40px;
        border-left: 2px solid var(--ozon-blue);
    }

    .submenu a {
        padding: 12px 16px;
    }

    .has-submenu > a {
        padding-right: 32px; /* Больше места для стрелки */
    }

    .has-submenu::after {
        content: '';
        position: absolute;
        top: 0;
        right: -16px; /* Создаем невидимую область для плавного перехода */
        width: 16px;
        height: 100%;
        background: transparent;
    }

    .submenu::before {
        content: '';
        position: absolute;
        top: 0;
        left: -16px; /* Создаем невидимую область для плавного перехода */
        width: 16px;
        height: 100%;
        background: transparent;
    }

    .submenu.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .add-ad-button {
        padding: 0 8px;
        font-size: 12px;
    }

    .user-actions {
        gap: 12px;
    }

    .action-link {
        font-size: 10px;
    }

    .action-link i {
        font-size: 16px;
    }

    .nav-links {
        gap: 12px;
        font-size: 12px;
    }

    .dropdown-menu > ul > li > a {
        padding: 14px;
        font-size: 14px;
    }

    .dropdown-menu > ul > li > a > i:first-child {
        width: 20px;
        font-size: 16px;
    }

    .submenu {
        margin-left: 32px;
    }

    .submenu a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .modal-content {
        margin: 8px;
        padding: 16px;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
    }

    .auth-form h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .form-group input {
        height: 40px;
        font-size: 14px;
    }

    .auth-button {
        height: 40px;
        font-size: 14px;
    }

    .auth-links {
        margin-top: 12px;
        font-size: 12px;
    }
}

/* Стили для блока скачивания приложения */
.app-download {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 48px 0;
    margin-top: 48px;
}

.app-download-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.app-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.app-info p {
    font-size: 18px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.app-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.app-button i {
    font-size: 24px;
}

.button-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 12px;
    opacity: 0.8;
}

.large-text {
    font-size: 16px;
    font-weight: 600;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .app-download-content {
        flex-direction: column;
        text-align: center;
    }

    .app-info h2 {
        font-size: 28px;
    }

    .app-info p {
        font-size: 16px;
    }

    .app-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Стили для футера */
.main-footer {
    background: #f8f9fa;
    padding: 48px 0 0;
    margin-top: 48px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.app-badge img {
    height: 40px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: #0066cc;
    color: white;
}

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.footer-stats {
    display: flex;
    gap: 24px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* Модальное окно авторизации */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    gap: 10px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.auth-tab.active {
    color: var(--ozon-blue);
    border-bottom-color: var(--ozon-blue);
}

.auth-tab[data-tab="forgot"] {
    flex: 0.8;
    font-size: 13px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--ozon-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
}

.auth-submit:hover {
    background: var(--ozon-light-blue);
}

.social-auth {
    margin-top: 20px;
    text-align: center;
}

.social-auth p {
    color: #666;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.social-btn.vk {
    color: #4a76a8;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.yandex {
    color: #ff0000;
}

.social-btn:hover {
    background: #f5f5f5;
}

/* Стили для чекбокса и формы восстановления пароля */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.form-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Стили для выпадающего окна уведомлений */
.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 50px;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.notifications-dropdown.active {
    display: block;
}

.notifications-arrow {
    position: absolute;
    top: -8px;
    right: 85px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ozon-text);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--ozon-blue);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

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

.notifications-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.notification-item {
    padding: 12px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-item.unread:hover {
    background-color: #e5f1ff;
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 14px;
    color: #666;
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin: 0;
    font-size: 14px;
    color: var(--ozon-text);
    line-height: 1.4;
}

.notification-time {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.view-all-notifications {
    color: var(--ozon-blue);
    text-decoration: none;
    font-size: 14px;
}

.view-all-notifications:hover {
    text-decoration: underline;
}

.action-link.notifications {
    position: static;
}

.header-right {
    position: relative;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 50px;
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.notifications-arrow {
    position: absolute;
    top: -8px;
    right: 85px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.action-link.notifications {
    position: static;
}

/* Стили для страницы категории */
.category-page {
    padding: 20px 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs i {
    font-size: 12px;
    color: #666;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 24px;
}

/* Стили для сайдбара с фильтрами */
.filters-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    border: 1px solid #e5e5e5;
}

.filter-section {
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
}

.apply-price {
    width: 100%;
    padding: 8px;
    background: var(--ozon-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
}

.reset-filters {
    width: 100%;
    padding: 8px;
    margin-top: 16px;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.reset-filters:hover {
    border-color: var(--ozon-blue);
    color: var(--ozon-blue);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-switcher {
    display: flex;
    gap: 8px;
}

.view-button {
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.view-button.active {
    border-color: var(--ozon-blue);
    color: var(--ozon-blue);
    font-weight: 500;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ozon-blue);
}

.breadcrumbs i {
    font-size: 12px;
    color: #999;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin: 5px 0;
    padding: 5px 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin: 5px 0;
    padding: 5px 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

svg:not(:root).svg-inline--fa {
    overflow: visible;
  }
  
  .svg-inline--fa {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
  }
  .svg-inline--fa.fa-lg {
    vertical-align: -0.225em;
  }
  .svg-inline--fa.fa-w-1 {
    width: 0.0625em;
  }
  .svg-inline--fa.fa-w-2 {
    width: 0.125em;
  }
  .svg-inline--fa.fa-w-3 {
    width: 0.1875em;
  }
  .svg-inline--fa.fa-w-4 {
    width: 0.25em;
  }
  .svg-inline--fa.fa-w-5 {
    width: 0.3125em;
  }
  .svg-inline--fa.fa-w-6 {
    width: 0.375em;
  }
  .svg-inline--fa.fa-w-7 {
    width: 0.4375em;
  }
  .svg-inline--fa.fa-w-8 {
    width: 0.5em;
  }
  .svg-inline--fa.fa-w-9 {
    width: 0.5625em;
  }
  .svg-inline--fa.fa-w-10 {
    width: 0.625em;
  }
  .svg-inline--fa.fa-w-11 {
    width: 0.6875em;
  }
  .svg-inline--fa.fa-w-12 {
    width: 0.75em;
  }
  .svg-inline--fa.fa-w-13 {
    width: 0.8125em;
  }
  .svg-inline--fa.fa-w-14 {
    width: 0.875em;
  }
  .svg-inline--fa.fa-w-15 {
    width: 0.9375em;
  }
  .svg-inline--fa.fa-w-16 {
    width: 1em;
  }
  .svg-inline--fa.fa-w-17 {
    width: 1.0625em;
  }
  .svg-inline--fa.fa-w-18 {
    width: 1.125em;
  }
  .svg-inline--fa.fa-w-19 {
    width: 1.1875em;
  }
  .svg-inline--fa.fa-w-20 {
    width: 1.25em;
  }
  .svg-inline--fa.fa-pull-left {
    margin-right: 0.3em;
    width: auto;
  }
  .svg-inline--fa.fa-pull-right {
    margin-left: 0.3em;
    width: auto;
  }
  .svg-inline--fa.fa-border {
    height: 1.5em;
  }
  .svg-inline--fa.fa-li {
    width: 2em;
  }
  .svg-inline--fa.fa-fw {
    width: 1.25em;
  }
  
  .fa-layers svg.svg-inline--fa {
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .fa-layers {
    display: inline-block;
    height: 1em;
    position: relative;
    text-align: center;
    vertical-align: -0.125em;
  }
  .fa-layers svg.svg-inline--fa {
    -webkit-transform-origin: center center;
            transform-origin: center center;
  }
  
  .fa-layers-counter, .fa-layers-text {
    display: inline-block;
    position: absolute;
    text-align: center;
  }
  
  .fa-layers-text {
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-transform-origin: center center;
            transform-origin: center center;
  }
  
  .fa-layers-counter {
    background-color: #ff253a;
    border-radius: 1em;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    color: #fff;
    height: 1.5em;
    line-height: 1;
    max-width: 5em;
    min-width: 1.5em;
    overflow: hidden;
    padding: 0.25em;
    right: 0;
    text-overflow: ellipsis;
    top: 0;
    -webkit-transform: scale(0.25);
            transform: scale(0.25);
    -webkit-transform-origin: top right;
            transform-origin: top right;
  }
  
  .fa-layers-bottom-right {
    bottom: 0;
    right: 0;
    top: auto;
    -webkit-transform: scale(0.25);
            transform: scale(0.25);
    -webkit-transform-origin: bottom right;
            transform-origin: bottom right;
  }
  
  .fa-layers-bottom-left {
    bottom: 0;
    left: 0;
    right: auto;
    top: auto;
    -webkit-transform: scale(0.25);
            transform: scale(0.25);
    -webkit-transform-origin: bottom left;
            transform-origin: bottom left;
  }
  
  .fa-layers-top-right {
    right: 0;
    top: 0;
    -webkit-transform: scale(0.25);
            transform: scale(0.25);
    -webkit-transform-origin: top right;
            transform-origin: top right;
  }
  
  .fa-layers-top-left {
    left: 0;
    right: auto;
    top: 0;
    -webkit-transform: scale(0.25);
            transform: scale(0.25);
    -webkit-transform-origin: top left;
            transform-origin: top left;
  }
  
  .fa-lg {
    font-size: 1.3333333333em;
    line-height: 0.75em;
    vertical-align: -0.0667em;
  }
  
  .fa-xs {
    font-size: 0.75em;
  }
  
  .fa-sm {
    font-size: 0.875em;
  }
  
  .fa-1x {
    font-size: 1em;
  }
  
  .fa-2x {
    font-size: 2em;
  }
  
  .fa-3x {
    font-size: 3em;
  }
  
  .fa-4x {
    font-size: 4em;
  }
  
  .fa-5x {
    font-size: 5em;
  }
  
  .fa-6x {
    font-size: 6em;
  }
  
  .fa-7x {
    font-size: 7em;
  }
  
  .fa-8x {
    font-size: 8em;
  }
  
  .fa-9x {
    font-size: 9em;
  }
  
  .fa-10x {
    font-size: 10em;
  }
  
  .fa-fw {
    text-align: center;
    width: 1.25em;
  }
  
  .fa-ul {
    list-style-type: none;
    margin-left: 2.5em;
    padding-left: 0;
  }
  .fa-ul > li {
    position: relative;
  }
  
  .fa-li {
    left: -2em;
    position: absolute;
    text-align: center;
    width: 2em;
    line-height: inherit;
  }
  
  .fa-border {
    border: solid 0.08em #eee;
    border-radius: 0.1em;
    padding: 0.2em 0.25em 0.15em;
  }
  
  .fa-pull-left {
    float: left;
  }
  
  .fa-pull-right {
    float: right;
  }
  
  .fa.fa-pull-left,
  .fas.fa-pull-left,
  .far.fa-pull-left,
  .fal.fa-pull-left,
  .fab.fa-pull-left {
    margin-right: 0.3em;
  }
  .fa.fa-pull-right,
  .fas.fa-pull-right,
  .far.fa-pull-right,
  .fal.fa-pull-right,
  .fab.fa-pull-right {
    margin-left: 0.3em;
  }
  
  .fa-spin {
    -webkit-animation: fa-spin 2s infinite linear;
            animation: fa-spin 2s infinite linear;
  }
  
  .fa-pulse {
    -webkit-animation: fa-spin 1s infinite steps(8);
            animation: fa-spin 1s infinite steps(8);
  }
  
  @-webkit-keyframes fa-spin {
    0% {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  
  @keyframes fa-spin {
    0% {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  .fa-rotate-90 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
  
  .fa-rotate-180 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
  
  .fa-rotate-270 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
    -webkit-transform: rotate(270deg);
            transform: rotate(270deg);
  }
  
  .fa-flip-horizontal {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
    -webkit-transform: scale(-1, 1);
            transform: scale(-1, 1);
  }
  
  .fa-flip-vertical {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
    -webkit-transform: scale(1, -1);
            transform: scale(1, -1);
  }
  
  .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
    -webkit-transform: scale(-1, -1);
            transform: scale(-1, -1);
  }
  
  :root .fa-rotate-90,
  :root .fa-rotate-180,
  :root .fa-rotate-270,
  :root .fa-flip-horizontal,
  :root .fa-flip-vertical,
  :root .fa-flip-both {
    -webkit-filter: none;
            filter: none;
  }
  
  .fa-stack {
    display: inline-block;
    height: 2em;
    position: relative;
    width: 2.5em;
  }
  
  .fa-stack-1x,
  .fa-stack-2x {
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .svg-inline--fa.fa-stack-1x {
    height: 1em;
    width: 1.25em;
  }
  .svg-inline--fa.fa-stack-2x {
    height: 2em;
    width: 2.5em;
  }
  
  .fa-inverse {
    color: #fff;
  }
  
  .sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  .sr-only-focusable:active, .sr-only-focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
  }
  
  .svg-inline--fa .fa-primary {
    fill: var(--fa-primary-color, currentColor);
    opacity: 1;
    opacity: var(--fa-primary-opacity, 1);
  }
  
  .svg-inline--fa .fa-secondary {
    fill: var(--fa-secondary-color, currentColor);
    opacity: 0.4;
    opacity: var(--fa-secondary-opacity, 0.4);
  }
  
  .svg-inline--fa.fa-swap-opacity .fa-primary {
    opacity: 0.4;
    opacity: var(--fa-secondary-opacity, 0.4);
  }
  
  .svg-inline--fa.fa-swap-opacity .fa-secondary {
    opacity: 1;
    opacity: var(--fa-primary-opacity, 1);
  }
  
  .svg-inline--fa mask .fa-primary,
  .svg-inline--fa mask .fa-secondary {
    fill: black;
  }
  
  .svg-inline--fa mask .fa-primary {
    fill: black;
  }
  
  .svg-inline--fa mask .fa-secondary {
    fill: black;
  }
}

/* Стили для страницы профиля */
.profile-page {
    padding: 32px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Боковая панель профиля */
.profile-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-info {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ozon-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-name h2 {
    font-size: 18px;
    margin: 0 0 8px;
}

.profile-status {
    color: #666;
    font-size: 14px;
}

.profile-nav {
    padding: 16px 0;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--ozon-text);
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-nav-item.active {
    background-color: rgba(var(--ozon-blue), 0.1);
    color: var(--ozon-blue);
    font-weight: 500;
}

.profile-nav-item i {
    width: 20px;
    margin-right: 12px;
}

.profile-nav-item .badge {
    margin-left: auto;
    background: #e5e5e5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Основной контент профиля */
.profile-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-data-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-data-item .label {
    width: 120px;
    color: #666;
}

.profile-data-item .value {
    flex-grow: 1;
}

.profile-data-item .edit-btn {
    padding: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-data-item:hover .edit-btn {
    opacity: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-card i {
    font-size: 24px;
    color: var(--ozon-blue);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

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

/* Стили для выпадающего меню пользователя */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ozon-text);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.profile-link:hover {
    background-color: var(--ozon-gray);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    display: none;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--ozon-text);
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-dropdown a:hover {
    background-color: var(--ozon-gray);
}

.profile-dropdown i {
    width: 20px;
    text-align: center;
    color: #666;
}

.profile-dropdown a[data-method="post"] {
    color: #e31837;  /* Красный цвет для кнопки выхода */
    border-top: 1px solid #eee;  /* Разделительная линия */
    margin-top: 8px;
    padding-top: 12px;
}

.profile-dropdown a[data-method="post"] i {
    color: #e31837;  /* Иконка тоже красная */
}

.profile-dropdown a[data-method="post"]:hover {
    background-color: #fff5f5;  /* Светло-красный фон при наведении */
}

/* Стили для аватара пользователя */
.avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ozon-gray);
}

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

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ozon-text);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.profile-link i.far.fa-user {
    width: 32px;
    height: 32px;
    background-color: var(--ozon-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}