/* style.css - Кастомные стили для проекта */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #1f1f1f;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ======================= HEADER (как на youla.ru) ======================= */
.youla-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.location:hover {
    background-color: #e5e5e5;
}

.location i {
    color: #ff6a00;
}

.location span {
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.action-link:hover {
    color: #ff6a00;
}

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

/* ======================= Навигационное меню категорий ======================= */
.category-nav {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 73px;
    z-index: 999;
}

.category-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-list::-webkit-scrollbar {
    height: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.category-list::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 2px;
}

.category-list li a {
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.category-list li a:hover {
    color: #ff6a00;
}

/* ======================= Секция категорий (компактные блоки) ======================= */
.categories-section {
    margin: 32px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f1f1f;
}

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

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.category-item span {
    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
}

.category-item i {
    font-size: 24px;
    color: #ff6a00;
}

/* ======================= Секция товаров ======================= */
.products-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.view-all {
    color: #ff6a00;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: #e05d00;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    /*height: 200px;*/
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
	min-height: 200px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ======================= Секция статей ======================= */
.articles-section {
    margin: 48px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.article-image {
    /*width: 120px;*/
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 16px;
    flex: 1;
}

.article-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.article-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.read-more {
    color: #ff6a00;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.read-more:hover {
    color: #e05d00;
}

/* ======================= FOOTER (светлый) ======================= */
.light-footer {
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f1f1f;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

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

.footer-col ul li a:hover {
    color: #ff6a00;
}

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

.app-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.app-button:hover {
    background: #ff6a00;
    color: white;
}

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

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

.footer-bottom p {
    font-size: 12px;
    color: #999;
}

/* ======================= Адаптивность ======================= */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .location {
        align-self: flex-start;
    }
    
    .header-actions {
        justify-content: space-around;
    }
    
    .action-link span {
        display: none;
    }
    
    .category-nav {
        top: 115px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* ======================= CATALOG.HTML СТИЛИ ======================= */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin: 24px 0;
}

.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 140px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.reset-filters {
    background: none;
    border: none;
    color: #ff6a00;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.reset-filters:hover {
    color: #e05d00;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f1f1f;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6a00;
}

.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
	width: 50px;
}

.price-input:focus {
    outline: none;
    border-color: #ff6a00;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1f1f1f;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6a00;
}

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

.location-input:focus {
    outline: none;
    border-color: #ff6a00;
}

.apply-filters {
    width: 100%;
    padding: 12px;
    background: #ff6a00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-filters:hover {
    background: #e05d00;
}

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

.results-count {
    font-size: 14px;
    color: #666;
}

.sorting {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
}

.page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ff6a00;
}

.page-btn.active {
    background: #ff6a00;
    color: white;
    border-color: #ff6a00;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ======================= PROFILE.HTML СТИЛИ ======================= */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin: 24px 0;
}

.profile-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 140px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.profile-avatar i {
    font-size: 80px;
    color: #999;
    margin-bottom: 12px;
}

.profile-avatar-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ff6a00;
}

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

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #1f1f1f;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-nav-link i {
    font-size: 20px;
}

.profile-nav-link:hover {
    background: #f5f5f5;
    color: #ff6a00;
}

.profile-nav-link.active {
    background: #fff5f0;
    color: #ff6a00;
}

.profile-nav-link.logout {
    margin-top: 16px;
    color: #dc3545;
}

.profile-nav-link.logout:hover {
    background: #ffe5e5;
}

.profile-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.btn-add-item {
    padding: 10px 20px;
    background: #ff6a00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-item:hover {
    background: #e05d00;
    color: white;
}

.user-items-grid {
    display: grid;
    gap: 20px;
}

.user-item-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s;
}

.user-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.item-status.active {
    background: #d4edda;
    color: #155724;
}

.item-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.item-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 4px;
}

.item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.item-date,
.item-views {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.item-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.item-edit,
.item-delete,
.item-upgrade,
.item-relist {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.item-edit {
    background: #f0f0f0;
    color: #1f1f1f;
}

.item-edit:hover {
    background: #e5e5e5;
}

.item-delete {
    background: #ffe5e5;
    color: #dc3545;
}

.item-delete:hover {
    background: #ffd4d4;
}

.item-upgrade {
    background: #fff5f0;
    color: #ff6a00;
}

.item-upgrade:hover {
    background: #ffe5d5;
}

.item-relist {
    background: #e5f0ff;
    color: #007bff;
}

.item-relist:hover {
    background: #d4e6ff;
}

.profile-form,
.security-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ff6a00;
}

textarea.form-control {
    resize: vertical;
}

.btn-save {
    padding: 12px 24px;
    background: #ff6a00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-save:hover {
    background: #e05d00;
}

.two-factor-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.two-factor-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.two-factor-section p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.btn-enable-2fa {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ff6a00;
    color: #ff6a00;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-enable-2fa:hover {
    background: #ff6a00;
    color: white;
}

.notification-settings {
    margin-bottom: 24px;
}

/* ======================= СТИЛИ ДЛЯ ADD-ITEM.HTML ======================= */

.add-item-wrapper {
    margin: 24px 0;
}

.page-header-add {
    text-align: center;
    margin-bottom: 32px;
}

.page-header-add h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header-add h1 i {
    color: #ff6a00;
}

.page-header-add p {
    font-size: 14px;
    color: #666;
}

.add-item-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

/* Форма */
.add-item-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.form-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.form-card-header i {
    font-size: 24px;
    color: #ff6a00;
}

.form-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.required-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: #ff6a00;
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.form-card-body {
    padding: 20px;
}

/* Фото загрузка */
.photo-upload-area {
    border: 2px dashed #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.photo-upload-area:hover {
    border-color: #ff6a00;
    background: #fff5f0;
}

.photo-upload-area i {
    font-size: 48px;
    color: #ff6a00;
    margin-bottom: 12px;
}

.photo-upload-area p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.upload-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    color: #999;
}

.upload-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e5e5;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preview-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Форма элементы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.form-group label i {
    margin-right: 6px;
    color: #ff6a00;
}

.star {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.char-counter,
.char-counter-desc {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

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

.tips-small {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding-left: 20px;
}

.tips-block {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 12px;
}

.tips-block i {
    font-size: 18px;
    color: #4caf50;
    flex-shrink: 0;
}

.tips-block strong {
    display: block;
    margin-bottom: 4px;
}

/* Радио группа */
.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #ff6a00;
    background: #fff5f0;
}

.radio-label input[type="radio"] {
    accent-color: #ff6a00;
    width: 18px;
    height: 18px;
}

/* Чекбоксы */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6a00;
}

/* Премиум опции */
.premium-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
}

.option-card:hover {
    border-color: #ff6a00;
    background: #fff5f0;
}

.option-checkbox {
    cursor: pointer;
    display: block;
}

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

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.option-content i {
    font-size: 28px;
    color: #ff6a00;
}

.option-content div {
    flex: 1;
}

.option-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.option-content span:not(.price-badge) {
    font-size: 12px;
    color: #666;
}

.price-badge {
    font-size: 14px;
    font-weight: 700;
    color: #ff6a00;
    background: #fff5f0;
    padding: 4px 12px;
    border-radius: 20px;
}

.option-checkbox input[type="checkbox"]:checked + .option-content {
    background: #fff5f0;
    border-radius: 12px;
}

/* Кнопки */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-preview,
.btn-submit {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-preview {
    background: white;
    border: 1px solid #e5e5e5;
    color: #1f1f1f;
}

.btn-preview:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

.btn-submit {
    background: #ff6a00;
    border: none;
    color: white;
}

.btn-submit:hover {
    background: #e05d00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Правая колонка с советами */
.tips-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tips-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tips-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tips-card-header i {
    font-size: 22px;
}

.tips-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Советы по продаже */
.tips-success .tips-card-header i {
    color: #4caf50;
}

.tips-list {
    padding: 16px;
}

.tip-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    font-size: 20px;
    color: #ff6a00;
    flex-shrink: 0;
}

.tip-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.tip-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Примеры названий */
.tips-examples .tips-card-header i {
    color: #ffc107;
}

.examples-list {
    padding: 16px;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #1f1f1f;
}

.example-item i {
    color: #4caf50;
    font-size: 14px;
    flex-shrink: 0;
}

/* Чего стоит избегать */
.tips-warning .tips-card-header i {
    color: #ff9800;
}

.mistakes-list {
    padding: 16px;
}

.mistake-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.mistake-item i {
    color: #f44336;
    font-size: 14px;
    flex-shrink: 0;
}

/* Статистика */
.tips-stats .tips-card-header i {
    color: #2196f3;
}

.stats-items {
    padding: 16px;
}

.stat-item {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 4px;
}

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

/* Гарантия */
.tips-guarantee {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tips-guarantee .tips-card-header i {
    color: white;
}

.tips-guarantee .tips-card-header h4 {
    color: white;
}

.tips-guarantee p {
    padding: 0 16px 16px;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.learn-more {
    display: block;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    transition: background 0.2s;
}

.learn-more:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .upload-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-preview,
    .btn-submit {
        justify-content: center;
    }
    
    .option-content {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header-add h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .form-card-header {
        flex-wrap: wrap;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .preview-item {
        width: 80px;
        height: 80px;
    }
}

/* ======================= MESSAGES.HTML СТИЛИ ======================= */
.messages-container {
    margin: 24px 0;
}

.messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 280px);
    min-height: 500px;
}

.dialogs-list {
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

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

.search-dialogs {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
}

.search-dialogs:focus {
    outline: none;
    border-color: #ff6a00;
}

.dialog-item {
    display: flex;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

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

.dialog-item.active {
    background: #fff5f0;
}

.dialog-avatar i {
    font-size: 48px;
    color: #999;
    margin-right: 12px;
}

.dialog-info {
    flex: 1;
    position: relative;
}

.dialog-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

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

.dialog-time {
    font-size: 11px;
    color: #999;
    position: absolute;
    top: 0;
    right: 0;
}

.dialog-unread {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #ff6a00;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.chat-avatar i {
    font-size: 40px;
    color: #999;
}

.chat-user-name {
    font-weight: 600;
    font-size: 16px;
}

.chat-user-status {
    font-size: 11px;
    color: #999;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.chat-action-btn:hover {
    background: #f5f5f5;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: #ff6a00;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: white;
    color: #1f1f1f;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
}

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

.message.sent .message-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: white;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attach-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

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

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: #ff6a00;
}

.send-btn {
    background: #ff6a00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: #e05d00;
}

/* ======================= FAVORITES.HTML СТИЛИ ======================= */
.favorites-container {
    margin: 24px 0;
}

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

.favorites-count {
    font-size: 14px;
    color: #666;
}

.clear-favorites {
    padding: 8px 20px;
    background: white;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-favorites:hover {
    background: #dc3545;
    color: white;
}

.product-card.favorite {
    position: relative;
}

.remove-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.remove-favorite:hover {
    background: #ff6a00;
    color: white;
    transform: scale(1.1);
}

.recommended-section {
    margin-top: 48px;
}

/* ======================= AUTH.HTML СТИЛИ ======================= */
.auth-container {
    max-width: 480px;
    margin: 48px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.auth-tab.active {
    color: #ff6a00;
    border-bottom: 2px solid #ff6a00;
}

.auth-form {
    padding: 32px;
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

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

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

.social-auth p {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    position: relative;
}

.social-auth p::before,
.social-auth p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e5e5e5;
}

.social-auth p::before {
    left: 0;
}

.social-auth p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.social-btn:hover {
    border-color: #ff6a00;
    background: #fff5f0;
}

.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-btn.vk:hover {
    border-color: #4c75a3;
    color: #4c75a3;
}

.social-btn.apple:hover {
    border-color: #000;
    color: #000;
}

/* ======================= PAGES.HTML СТИЛИ ======================= */
.static-page {
    max-width: 900px;
    margin: 24px auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-header {
    margin-bottom: 32px;
    text-align: center;
}

.page-header .page-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.page-header .breadcrumbs {
    font-size: 13px;
    color: #999;
}

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

.page-header .breadcrumbs a:hover {
    color: #ff6a00;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6a00;
    display: inline-block;
}

.content-section p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    text-align: center;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
}

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

.feature-card i {
    font-size: 48px;
    color: #ff6a00;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #ff6a00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.contact-item i {
    font-size: 24px;
    color: #ff6a00;
}

.contact-item strong {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 14px;
    color: #1f1f1f;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ff6a00;
}

/* ======================= АНИМАЦИИ ======================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================= АДАПТИВНОСТЬ ДЛЯ НОВЫХ СТРАНИЦ ======================= */
@media (max-width: 1024px) {
    .item-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .seller-card {
        grid-column: span 2;
        position: static;
    }
    
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        display: none;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .dialogs-list {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        max-height: 300px;
    }
    
    .chat-window {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .item-layout {
        grid-template-columns: 1fr;
    }
    
    .seller-card {
        grid-column: span 1;
    }
    
    .item-gallery {
        position: static;
    }
    
    .user-item-card {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        gap: 16px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .static-page {
        padding: 20px;
    }
    
    .auth-container {
        margin: 24px;
    }
    
    .auth-form {
        padding: 24px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .item-title {
        font-size: 20px;
    }
    
    .item-price {
        font-size: 24px;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-add-item {
        width: 100%;
        justify-content: center;
    }
    
    .item-actions {
        flex-wrap: wrap;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-preview,
    .btn-submit {
        width: 100%;
    }
}

.item-container {
    margin: 20px 0;
}

.item-two-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 40px;
}

/* Левая колонка */
.item-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================================
   СТИЛИ ДЛЯ ГАЛЕРЕИ С FANCYBOX (КАРУСЕЛЬ ПРЕВЬЮ)
   ======================================================== */

/* 1. ОСНОВНОЙ КОНТЕЙНЕР БЛОКА С ФОТОГРАФИЯМИ */
.photo-block {
    /* Задаем максимальную ширину, чтобы блок не был слишком широким на больших экранах
    max-width: 800px;
    margin: 0 auto 30px auto;Центрируем блок и добавляем отступ снизу */
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 2. СТИЛИ ДЛЯ ГЛАВНОГО ФОТО */
.main-photo {
    position: relative;
    width: 100%;
    /* Задаем высоту для красивого соотношения сторон, можно изменить */
    aspect-ratio: 4 / 3;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Ссылка внутри .main-photo занимает всё пространство */
.main-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Само изображение */
.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Картинка заполнит блок без искажений, обрезая края */
    transition: transform 0.3s ease;
}

/* Эффект при наведении на главное фото */
.main-photo:hover img {
    transform: scale(1.02);
}

/* 3. КОНТЕЙНЕР ДЛЯ МИНИАТЮР (КАРУСЕЛЬ) */
.thumbs {
    display: flex;
    flex-wrap: nowrap;          /* Запрещаем перенос на новую строку */
    gap: 12px;
    overflow-x: auto;           /* Включаем горизонтальную прокрутку */
    scroll-behavior: smooth;
    padding-bottom: 8px;        /* Место для скроллбара */
    
    /* Скрываем скроллбар в браузерах на WebKit (Chrome, Safari), но оставляем функциональность */
    -webkit-overflow-scrolling: touch;
}

/* Стилизация скроллбара (для Chrome, Edge, Safari) */
.thumbs::-webkit-scrollbar {
    height: 6px;
}

.thumbs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.thumbs::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 10px;
}

.thumbs::-webkit-scrollbar-thumb:hover {
    background: #e05d00;
}

/* Стили для Firefox */
.thumbs {
    scrollbar-width: thin;
    scrollbar-color: #ff6a00 #f0f0f0;
}

/* 4. ЭЛЕМЕНТЫ МИНИАТЮР (ПРЕВЬЮ) */
.thumbs a {
    flex-shrink: 0;             /* Запрещаем сжиматься, чтобы сохранить размер */
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
}

/* Изображение внутри миниатюры */
.thumbs a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Эффекты при наведении на миниатюру */
.thumbs a:hover {
    border-color: #ff6a00;
    transform: translateY(-3px);
}

/* Активная миниатюра (для текущего фото) — если нужно добавить класс "active" через JS */
.thumbs a.active {
    border-color: #ff6a00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.3);
}

/* ========================================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ======================================================== */
@media (max-width: 768px) {
    .photo-block {
        padding: 12px;
        margin-bottom: 20px;
    }

    .main-photo {
        aspect-ratio: 1 / 1;    /* На мобильных делаем фото квадратным */
    }

    .thumbs a {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .thumbs a {
        width: 60px;
        height: 60px;
    }
}

/* Информационный блок */
.info-block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.item-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
}

.item-price {
    font-size: 18px;
    font-weight: 400;
    color: #ff6a00;
    margin-bottom: 5px;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.item-meta span {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-meta i {
    color: #ff6a00;
}

.item-description h3,
.item-features h3,
.map-block h3,
.comments-block h3,
.owner-actions h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.item-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-label {
    font-size: 13px;
    color: #999;
}

.feature-value {
    font-size: 13px;
    color: #1f1f1f;
    font-weight: 500;
}

/* Карта */
.map-block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.map-placeholder {
    position: relative;
}

.map-address {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-address i {
    color: #ff6a00;
}

/* Комментарии */
.comments-block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comments-count {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.add-comment-form {
    margin-bottom: 24px;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #ff6a00;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    font-size: 18px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars i.bi-star-fill {
    color: #ffc107;
}

.btn-send-comment {
    padding: 6px 20px;
    background: #ff6a00;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-send-comment:hover {
    background: #e05d00;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment-avatar i {
    font-size: 40px;
    color: #999;
}

.comment-avatar img {
    block-size: 40px;
	float: none;
    border-radius: 50%;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    display: initial;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-rating {
    display: flex;
    gap: 2px;
}

.comment-rating i {
    font-size: 12px;
    color: #ffc107;
}

.comment-date {
    font-size: 11px;
    color: #999;
}

.comment-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-like,
.comment-reply {
    background: none;
    border: none;
    font-size: 12px;
    color: #e51212;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-like:hover,
.comment-reply:hover {
    color: #ff6a00;
}

.comment-like.liked {
    color: #ff6a00;
}

.load-more {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #ff6a00;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more:hover {
    background: #fff5f0;
    border-color: #ff6a00;
}

/* Кнопки управления объявлением */
.owner-actions {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-edit,
.btn-disable,
.btn-promote {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-edit {
    background: #f0f0f0;
    border: none;
    color: #1f1f1f;
}

.btn-edit:hover {
    background: #e5e5e5;
}

.btn-disable {
    background: white;
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn-disable:hover {
    background: #dc3545;
    color: white;
}

.btn-promote {
    background: #ff6a00;
    border: none;
    color: white;
}

.btn-promote:hover {
    background: #e05d00;
}

/* Правая колонка - сайдбар */
.item-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seller-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 140px;
}

.seller-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.seller-avatar img {
    block-size: 56px;
    float: none;
    border-radius: 50%;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    display: initial;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.seller-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.seller-rating i {
    font-size: 12px;
    color: #ffc107;
}

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

.seller-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.seller-meta i {
    margin-right: 4px;
}

.seller-contact-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-chat,
.btn-phone {
    flex: 1;
    padding: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-chat {
    background: #ff6a00;
    border: none;
    color: white;
}

.btn-chat:hover {
    background: #e05d00;
}

.btn-phone {
    background: white;
    border: 1px solid #e5e5e5;
    color: #1f1f1f;
}

.btn-phone:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

.seller-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 12px;
    color: #2e7d32;
}

.seller-status i {
    font-size: 16px;
}

/* Другие объявления */
.other-items {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.other-items h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.other-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.other-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.other-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.other-item-info {
    flex: 1;
}

.other-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.other-item-price {
    font-size: 12px;
    color: #ff6a00;
    font-weight: 600;
}

.view-all-link {
    font-size: 13px;
    color: #ff6a00;
    text-decoration: none;
}

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

/* Рекламный блок */
.resko-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.resko-block:hover {
    transform: translateY(-2px);
}

.resko-content i {
    font-size: 40px;
    margin-bottom: 12px;
}

.resko-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.resko-content p {
    font-size: 12px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.resko-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

.resko-link:hover {
    color: white;
}

/* Блок безопасности */
.safety-tips {
    background: #fff9e6;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #ffc107;
}

.safety-tips h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #856404;
}

.safety-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-tips li {
    font-size: 12px;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-tips li i {
    font-size: 12px;
    color: #ffc107;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .item-two-columns {
        grid-template-columns: 1fr;
    }
    
    .item-sidebar {
        order: -1;
    }
    
    .seller-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-photo {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .seller-contact-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-photo {
        height: 250px;
    }
    
    .item-title {
        font-size: 20px;
    }
    
    .item-price {
        font-size: 24px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ======================= СТИЛИ ДЛЯ БЛОГА И СТАТЬИ ======================= */

/* Герой секция блога */
.blog-hero {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c42 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: moveDots 60s linear infinite;
}

@keyframes moveDots {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease;
}

.blog-hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.blog-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.blog-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Категории блога */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.category-chip {
    padding: 10px 24px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.category-chip:hover {
    border-color: #ff6a00;
    color: #ff6a00;
    transform: translateY(-2px);
}

.category-chip.active {
    background: #ff6a00;
    border-color: #ff6a00;
    color: white;
    box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}

/* Популярные статьи */
.featured-articles {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #ff6a00;
    font-size: 28px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.featured-card.large {
    grid-row: span 2;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6a00, #ff8c42);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.featured-image {
    height: 250px;
    overflow: hidden;
}

.featured-card.large .featured-image {
    height: 250px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-category.tips { background: #e3f2fd; color: #1976d2; }
.article-category.guides { background: #f3e5f5; color: #7b1fa2; }
.article-category.news { background: #e8f5e9; color: #388e3c; }
.article-category.safety { background: #ffebee; color: #d32f2f; }
.article-category.trends { background: #fff3e0; color: #f57c00; }

.featured-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-card.large .featured-content h3 {
    font-size: 28px;
}

.featured-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Все статьи */
.all-articles {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
	border: 1px solid #e5e5e5;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 12px;
    right: 12px;
}

.article-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.read-time {
    font-size: 12px;
    color: #ff6a00;
    font-weight: 500;
}

/* Кнопка загрузки */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 12px 32px;
    background: white;
    border: 2px solid #ff6a00;
    border-radius: 50px;
    color: #ff6a00;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #ff6a00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}

/* Подписка */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.newsletter-content i {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
}

.subscribe-btn {
    padding: 14px 28px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background: #e05d00;
    transform: translateY(-2px);
}

/* ======================= СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЬИ ======================= */
.article-wrapper {
    margin: 24px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Основной контент статьи */
.article-header {
    margin-bottom: 32px;
}

.article-category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-category-badge.tips { background: #e3f2fd; color: #1976d2; }

.article-header h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 32px;
}

.author-avatar i {
    font-size: 48px;
    color: #999;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.author-title {
    font-size: 12px;
    color: #999;
}

.article-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #1f1f1f;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
}

/* Боксы в статье */
.tip-box, .warning-box, .checklist-box, .summary-box, .stat-box {
    padding: 24px;
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    gap: 16px;
}

.tip-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.tip-box i {
    font-size: 28px;
    color: #4caf50;
}

.warning-box {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.warning-box i {
    font-size: 28px;
    color: #f44336;
}

.checklist-box {
    background: #f5f5f5;
    flex-direction: column;
}

.checklist-box h3 {
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-box li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-box li i {
    color: #4caf50;
}

.summary-box {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c42 100%);
    color: white;
    flex-direction: column;
    text-align: center;
}

.summary-box h3 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
}

/* Теги и шаринг */
.article-tags {
    margin: 40px 0 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.article-tags span {
    font-weight: 600;
    color: #666;
}

.article-tags a {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: #ff6a00;
    color: white;
}

.article-share {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-share span {
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.share-btn.vk { background: #4c75a3; color: white; }
.share-btn.telegram { background: #2ca5e0; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.twitter { background: #000; color: white; }

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Комментарии в статье */
.article-comments {
    margin-top: 50px;
}

.article-comments h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.comment-form-content {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #ff6a00;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-rating-stars span {
    font-size: 13px;
    color: #666;
}

.comment-rating-stars i {
    font-size: 18px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.comment-rating-stars i.bi-star-fill {
    color: #ffc107;
}

.submit-comment-btn {
    padding: 8px 24px;
    background: #ff6a00;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-comment-btn:hover {
    background: #e05d00;
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 16px;
}

.comment-rating {
    display: flex;
    gap: 2px;
}

.comment-rating i {
    font-size: 12px;
    color: #ffc107;
}

.load-more-comments {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #ff6a00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-comments:hover {
    background: #fff5f0;
    border-color: #ff6a00;
}

/* Боковая колонка статьи */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommended-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 12px;
}

.recommended-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.recommended-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.recommended-item h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recommended-item span {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tags-cloud a:hover {
    background: #ff6a00;
    color: white;
    transform: translateY(-2px);
}

.subscribe-widget {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.subscribe-widget i {
    font-size: 48px;
    margin-bottom: 16px;
}

.subscribe-widget h4 {
    color: white;
    justify-content: center;
}

.subscribe-widget p {
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.subscribe-widget input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.subscribe-widget input:focus {
    outline: none;
}

.subscribe-widget button {
    width: 100%;
    padding: 12px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-widget button:hover {
    background: #e05d00;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #1f1f1f;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ff6a00;
    color: white;
    transform: translateX(4px);
}

.social-links a i {
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 32px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card.large {
        grid-row: span 1;
    }
    
    .featured-card.large .featured-image {
        height: 250px;
    }
    
    .featured-card.large .featured-content h3 {
        font-size: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-author-info {
        flex-wrap: wrap;
    }
    
    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .tip-box, .warning-box {
        flex-direction: column;
        text-align: center;
    }
    
    .add-comment-form {
        flex-direction: column;
    }
    
    .comment-avatar {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .article-stats {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ======================= ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ HEADER ======================= */

/* Базовые стили */
.youla-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Десктопная версия header */
.desktop-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

/* Логотип */
.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
	height: 32px;
}

/* Геолокация */
.location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.location:hover {
    background-color: #e5e5e5;
}

.location i {
    color: #ff6a00;
}

.location span {
    font-size: 14px;
    font-weight: 500;
}

/* Поиск */
.search-container {
    flex: 1;
    min-width: 200px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 18px;
	top: 10px;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.1);
}

.search-button {
    position: absolute;
    right: 4px;
    padding: 6px 16px;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
	top: 5px;
}

.search-button:hover {
    background-color: #e05d00;
}

/* Действия в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.action-link:hover {
    color: #ff6a00;
}

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

/* ======================= МОБИЛЬНАЯ ВЕРСИЯ HEADER ======================= */
.mobile-header {
    display: none;
    padding: 10px 0;
}

.mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-header-row.second-row {
    margin-bottom: 0;
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #1f1f1f;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:active {
    background: #f5f5f5;
}

.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    display: block;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-action-icon {
    color: #1f1f1f;
    text-decoration: none;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-action-icon:active {
    background: #f5f5f5;
}

.mobile-location {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.mobile-location i:first-child {
    color: #ff6a00;
    font-size: 14px;
}

.mobile-location span {
    flex: 1;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.mobile-search-btn i {
    font-size: 14px;
    color: #ff6a00;
}

/* ======================= МОБИЛЬНЫЙ ПОИСК (ОВЕРЛЕЙ) ======================= */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-search-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    background: white;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f1f1f;
}

.mobile-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 16px;
	top: 15px;
}

.mobile-search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
}

.mobile-search-input-wrapper input:focus {
    outline: none;
    border-color: #ff6a00;
    background: white;
}

.mobile-search-submit {
    padding: 8px 20px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.mobile-search-history {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
}

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

.history-header span {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.clear-history {
    background: none;
    border: none;
    color: #ff6a00;
    font-size: 12px;
    cursor: pointer;
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 12px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.history-item:active {
    background: #f0f0f0;
}

/* ======================= МОБИЛЬНОЕ БОКОВОЕ МЕНЮ ======================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: white;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 2001;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #666;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border-bottom: 1px solid #e5e5e5;
}

.mobile-user-avatar i {
    font-size: 48px;
    color: #ff6a00;
}

.mobile-user-info {
    flex: 1;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mobile-user-login {
    font-size: 12px;
    color: #ff6a00;
    text-decoration: none;
}

.mobile-menu-nav {
    padding: 8px 0 20px;
}

.mobile-nav-section {
    margin-bottom: 24px;
}

.mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-title i {
    font-size: 18px;
    color: #ff6a00;
}

.mobile-categories-list,
.mobile-pages-list,
.mobile-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-categories-list li a,
.mobile-pages-list li a,
.mobile-help-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 48px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-categories-list li a i,
.mobile-pages-list li a i,
.mobile-help-list li a i {
    font-size: 18px;
    color: #999;
    width: 24px;
}

.mobile-categories-list li a:active,
.mobile-pages-list li a:active,
.mobile-help-list li a:active {
    background: #fff5f0;
    color: #ff6a00;
    border-left-color: #ff6a00;
}

.mobile-menu-footer {
    padding: 20px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
}

.mobile-app-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-app-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-app-btn:active {
    border-color: #ff6a00;
    color: #ff6a00;
    background: #fff5f0;
}

.mobile-footer-text p {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 0;
}

/* ======================= ДЕСКТОПНАЯ НАВИГАЦИЯ ======================= */
.category-nav {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 73px;
    z-index: 999;
}

.category-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-list::-webkit-scrollbar {
    height: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.category-list::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 2px;
}

.category-list li a {
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.category-list li a:hover {
    color: #ff6a00;
}

/* ======================= АДАПТИВНОСТЬ ======================= */
@media (max-width: 1024px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .category-nav.desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-header-row {
        margin-bottom: 10px;
    }
    
    .mobile-header-right {
        gap: 12px;
    }
    
    .mobile-action-icon {
        font-size: 18px;
        padding: 6px;
    }
    
    .mobile-location {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .mobile-search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mobile-search-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-header-right {
        gap: 8px;
    }
    
    .mobile-action-icon {
        font-size: 16px;
        padding: 4px;
    }
    
    .mobile-location span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-menu-panel {
        width: 280px;
    }
    
    .mobile-categories-list li a,
    .mobile-pages-list li a,
    .mobile-help-list li a {
        padding: 10px 12px 10px 44px;
        font-size: 13px;
    }
}

/* ======================= СТИЛИ ДЛЯ ПУБЛИЧНОГО ПРОФИЛЯ ======================= */
.public-profile-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    margin: 24px 0;
}

.profile-info-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 140px;
	max-height: 940px;
}

.profile-cover {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c42 100%);
    height: 100px;
    position: relative;
}

.profile-avatar-large {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-avatar-large img {
    color: #ff6a00;
    block-size: 100px;
    float: none;
    border-radius: 50%;
    border: 1px solid #ccc;
    outline: none;
    display: initial;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.profile-stats-large {
    display: flex;
    justify-content: space-around;
    padding: 60px 20px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-stats-large .stat-item {
    text-align: center;
}

.profile-stats-large .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ff6a00;
}

.profile-stats-large .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

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

.profile-info-details h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f5e9;
    border-radius: 20px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #2e7d32;
}

.profile-badge i {
    font-size: 14px;
}

.profile-location,
.profile-joined,
.profile-response {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.profile-bio {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-bio h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-bio p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.profile-contact-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.btn-chat-user {
    flex: 1;
    padding: 12px;
    background: #ff6a00;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-chat-user:hover {
    background: #e05d00;
}

.btn-report {
    padding: 12px 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-report:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.profile-social {
    padding: 20px;
}

.profile-social h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

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

.social-icon:hover {
    background: #ff6a00;
    color: white;
    transform: translateY(-2px);
}

/* Объявления пользователя */
.profile-items-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.active {
    background: #4caf50;
    color: white;
}

.product-badge.sold {
    background: #999;
    color: white;
}

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

/* Отзывы */
.reviews-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reviews-stats {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.rating-summary {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff6a00;
    margin-bottom: 8px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 18px;
}

.rating-count {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.rating-bar-item span:first-child {
    width: 20px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.review-item {
    display: flex;
    gap: 16px;
}

.review-avatar i {
    font-size: 48px;
    color: #999;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
}

.review-rating i {
    font-size: 12px;
    color: #ffc107;
}

.review-date {
    font-size: 11px;
    color: #999;
}

.review-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-item-link {
    font-size: 12px;
    color: #ff6a00;
}

.load-more-reviews {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #ff6a00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-reviews:hover {
    background: #fff5f0;
    border-color: #ff6a00;
}

/* ======================= СТИЛИ ДЛЯ РЕДАКТИРОВАНИЯ ПРОФИЛЯ ======================= */
.profile-edit-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin: 24px 0;
}

.profile-sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-sidebar-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-sidebar-avatar i {
    font-size: 80px;
    color: #ff6a00;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ff6a00;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-avatar-btn:hover {
    background: #e05d00;
    transform: scale(1.05);
}

.profile-sidebar-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-sidebar-email {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.profile-sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.profile-sidebar-stats .stat {
    text-align: center;
}

.profile-sidebar-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ff6a00;
    display: block;
}

.profile-sidebar-stats .stat-label {
    font-size: 11px;
    color: #999;
}

.profile-edit-nav {
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.edit-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.edit-nav-link i {
    font-size: 18px;
    width: 24px;
}

.edit-nav-link:hover {
    background: #f5f5f5;
    color: #ff6a00;
}

.edit-nav-link.active {
    background: #fff5f0;
    color: #ff6a00;
}

.profile-edit-form {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.edit-tab {
    display: none;
}

.edit-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.notification-group,
.privacy-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.notification-group:last-child,
.privacy-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notification-group h4,
.privacy-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-change-password {
    padding: 10px 24px;
    background: white;
    border: 1px solid #ff6a00;
    border-radius: 8px;
    color: #ff6a00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-password:hover {
    background: #ff6a00;
    color: white;
}

.btn-cancel {
    padding: 12px 32px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-save-profile {
    padding: 12px 32px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save-profile:hover {
    background: #e05d00;
}

.tips-block.warning {
    background: #fff3e0;
}

.tips-block.warning i {
    color: #ff9800;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .public-profile-layout,
    .profile-edit-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-info-card {
        position: static;
    }
    
    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .profile-items-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats-large {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .profile-contact-actions {
        flex-direction: column;
    }
    
    .review-item {
        flex-direction: column;
    }
    
    .review-avatar {
        text-align: center;
    }
}

.search_nocsrf {
	width: 100%;
}

.flashmessage {font-size: 16px;padding: 18px 50px 18px 10px;width: 100%;top:0px;z-index: 8;text-align: center;color: #ffffff;position: relative;}
.flashmessage + .flashmessage, .flashmessage + #flash_js + .flashmessage {margin-top:10px;}
.flashmessage-warning,.help-box {background-color: #d0a52a;border: solid 1px #93741e;}
.flashmessage-error {background-color: #c44e20;border: solid 1px #873616;}
.flashmessage-ok {background-color: #839b44;border: solid 1px #4f5e29;}
.flashmessage-info {background-color: #30a0ef;border: solid 1px #2477b2;}
.flashmessage a {color:#fff;text-decoration:underline;}
.flashmessage a:hover {color:#fff;text-decoration:none;}
.help-box {padding: 5px 10px;display: inline-block;color: #fff;font-size: 14px;margin: 10px 0;}
.flashmessage .ico-close {transition:0.1s;position: absolute; top: 50%; right: 5px; float: right; font-size: 18px; color: white; text-shadow: none; text-decoration: none; font-weight: bold; cursor: pointer; padding: 0; line-height: 40px; border: none; width: 40px; height: 40px; margin-top: -20px; background: rgba(0,0,0,0.2); }
.flashmessage .ico-close:hover {background:rgba(0,0,0,0.3);}
.flashmessage-error .close {color: #B94A48;}
.flashmessage-warning .close {color: #C09853;}
.flashmessage-success .close,.flashmessage-information .close {color: #3A87AD;}
#error_list,.error_list, #comment_error_list {text-align:left;background-color: #F2DEDE;border: solid 2px #EED3D7;color: #B94A48;padding: 10px;list-style: none;display: none;}

/* ======================= ПЛАВАЮЩАЯ КНОПКА И МОДАЛЬНОЕ ОКНО ======================= */

/* Плавающая кнопка */
.floating-map-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #ff6a00;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.floating-map-button:hover {
    background: #e05d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.floating-map-button svg {
    width: 18px;
    height: 18px;
}

/* Модальное окно */
.modal-map-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-map-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    z-index: 2001;
}

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

/* Заголовок */
.modal-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #ff6a00;
    color: white;
}

.modal-map-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-map-title svg {
    width: 22px;
    height: 22px;
    color: white;
}

.modal-map-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.modal-map-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.modal-map-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-map-close svg {
    width: 16px;
    height: 16px;
}

/* Тело модального окна */
.modal-map-body {
    background: #f8f9fa;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-block {
    text-align: center;
    padding: 40px 20px;
}

.map-icon-animation {
    margin-bottom: 20px;
    animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.map-placeholder-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.map-address-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: #ff6a00;
}

.map-address-hint svg {
    width: 14px;
    height: 14px;
}

/* Футер */
.modal-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: white;
    border-top: 1px solid #e5e5e5;
    gap: 16px;
}

.modal-map-address {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.modal-map-address svg {
    flex-shrink: 0;
}

.address-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.address-value {
    font-size: 13px;
    color: #1f1f1f;
    line-height: 1.4;
}

.modal-map-route {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-map-route:hover {
    background: #e05d00;
    transform: translateY(-1px);
}

.modal-map-route:active {
    transform: translateY(0);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .floating-map-button span {
        display: none;
    }
    
    .floating-map-button {
        padding: 12px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-map-button svg {
        width: 20px;
        height: 20px;
        margin: 0;
    }
    
    .modal-map-container {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-map-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-map-address {
        justify-content: center;
        text-align: center;
    }
    
    .modal-map-route {
        justify-content: center;
    }
    
    .modal-map-body {
        min-height: 280px;
    }
    
    .map-placeholder-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .floating-map-button {
        bottom: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .modal-map-header {
        padding: 14px 20px;
    }
    
    .modal-map-title h3 {
        font-size: 16px;
    }
    
    .modal-map-footer {
        padding: 14px 20px;
    }
    
    .address-value {
        font-size: 12px;
    }
    
    .modal-map-route {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ======================= ПРЕМИУМ ШИЛЬДИК И ИКОНКА ИЗБРАННОГО ======================= */

.product-image {
    position: relative;
}

.premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6b00;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.premium-badge i {
    font-size: 12px;
    color: #ff6a00;
}

.favorite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

.custom-layout {
    display: grid;
    gap: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 15px;
}

/* Сортировка в виде списка ссылок */
.sorting {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sorting label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sort-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sort-list li a {
    display: block;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sort-list li a:hover {
    background: #fff5f0;
    color: #ff6a00;
}

.sort-list li a.active {
    background: #ff6a00;
    color: white;
}
/* ======================= СТИЛИ ПАГИНАЦИИ ======================= */
.paginate {
    text-align: center;
    clear: both;
    margin: 25px 0;
    float: left;
    width: 100%;
}

.paginate li {
    display: inline;
    list-style-type: none;
}

.paginate a,
.paginate span {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    margin: 0 2px;
    padding: 9px 5px;
    text-align: center;
    border-radius: 8px;
    height: 40px;
    min-width: 40px;
    line-height: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #1f1f1f;
    transition: all 0.2s ease;
}

.paginate a:hover {
    border-color: #ff6a00;
    background: #fff5f0;
    color: #ff6a00;
    transform: translateY(-2px);
}

.paginate span.searchPaginationSelected {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
    cursor: default;
}

.btn.see_by {
    float: right;
    white-space: nowrap;
    outline: 0;
    display: block;
    position: relative;
    font-size: 14px;
    line-height: 18px;
    font-weight: normal;
    padding: 10px 12px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #1f1f1f;
    transition: all 0.2s ease;
}

.btn.see_by:hover {
    border-color: #ff6a00;
    background: #fff5f0;
    color: #ff6a00;
}

.comment-form {
	width: 100%;
}

/* ======================= МОДАЛЬНОЕ ОКНО ЧАТА ======================= */
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.chat-modal {
    background: white;
    border-radius: 20px;
    width: 500px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c42 100%);
    border-radius: 20px 20px 0 0;
}

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

.chat-modal-avatar img {
    block-size: 56px;
    float: none;
    border-radius: 50%;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    display: initial;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.chat-modal-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.chat-modal-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-modal-info p i {
    font-size: 12px;
    color: #ffc107;
}

.chat-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-product {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.chat-modal-product img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.chat-product-info {
    flex: 1;
}

.chat-product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6a00;
}

.chat-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-system-message {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #1976d2;
}

.chat-system-message i {
    font-size: 16px;
}

.chat-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.chat-message.sent {
    align-self: flex-end;
}

.chat-message.received {
    align-self: flex-start;
}

.chat-message-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.sent .chat-message-content {
    background: #ff6a00;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-message-content {
    background: white;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    color: #1f1f1f;
}

.chat-message-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-modal-input {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: white;
}

.chat-modal-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.chat-modal-input textarea:focus {
    outline: none;
    border-color: #ff6a00;
}

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.chat-input-tools {
    display: flex;
    gap: 8px;
}

.chat-attach-btn,
.chat-emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.chat-attach-btn:hover,
.chat-emoji-btn:hover {
    background: #f5f5f5;
    color: #ff6a00;
}

.chat-send-btn {
    padding: 8px 20px;
    background: #ff6a00;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-send-btn:hover {
    background: #e05d00;
    transform: translateY(-1px);
}

/* ======================= МОДАЛЬНОЕ ОКНО ТЕЛЕФОНА ======================= */
.phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.phone-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.phone-modal {
    background: white;
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.phone-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-modal-header h3 i {
    color: #ff6a00;
}

.phone-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.phone-modal-close:hover {
    background: #f5f5f5;
    color: #ff6a00;
}

.phone-modal-body {
    padding: 24px;
}

.phone-number-hidden {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.phone-blur {
    filter: blur(8px);
    font-size: 24px;
    font-weight: 600;
    color: #999;
    margin-bottom: 16px;
}

.phone-blur i {
    font-size: 20px;
    margin-right: 8px;
}

.show-phone-btn {
    padding: 10px 24px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-phone-btn:hover {
    background: #e05d00;
    transform: translateY(-2px);
}

.phone-number-visible {
    text-align: center;
    margin-bottom: 20px;
}

.phone-number-display {
    background: #e8f5e9;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.phone-number-display i {
    font-size: 24px;
}

.copy-phone-btn {
    padding: 10px 24px;
    background: white;
    border: 1px solid #ff6a00;
    border-radius: 12px;
    color: #ff6a00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-phone-btn:hover {
    background: #ff6a00;
    color: white;
}

.phone-copy-success {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.phone-copy-success.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.phone-warning {
    background: #fff3e0;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #f57c00;
}

.other-contacts-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    margin-top: 20px;
}

.other-contacts-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-contacts-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.other-contact-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.other-contact-btn.telegram {
    background: #2ca5e0;
    color: white;
}

.other-contact-btn.whatsapp {
    background: #25d366;
    color: white;
}

.other-contact-btn.vk {
    background: #4c75a3;
    color: white;
}

.other-contact-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.other-contacts-note {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999;
}

/* ======================= БЛОК "ОБЪЯВЛЕНИЕ ИСТЕКЛО" ======================= */
.expired-ad-banner {
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

.expired-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.expired-content i {
    font-size: 48px;
    color: #dc3545;
}

.expired-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 8px;
}

.expired-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.expired-link {
    color: #ff6a00;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.expired-link:hover {
    text-decoration: underline;
}

body #restricted-fine-uploader { margin-bottom: 20px; float: left; width: 100%; clear: both;padding-left:0; }
.item-post .form-horizontal .control-group.img {padding-left:30%;}
body .qq-upload-button {padding: 20px 10px; color: #fff; background: #0d9ecc; font-weight: bold;width:100%;}

.img-preview2 {
    overflow: hidden;
    width: 100px !important;
    height: 100px !important;
    background: #ddd;
    display: flex;
}

.img-preview2 img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
}

.alert-frequency {display:flex;float: left; align-items: center; flex-wrap: nowrap;margin:4px 0;}
.alert-frequency > a {padding:5px 10px;font-size:14px;line-height:16px;margin:0 -1px 0 0;border:1px solid #ccc;background:#fff;}
.alert-frequency > a:first-child {border-radius:4px 0 0 4px;}
.alert-frequency > a:last-child {border-radius:0 4px 4px 0;}
.alert-frequency > a.active {background:#f0f0f0;font-weight:600;}
.alert-frequency > a:hover {text-decoration:none;background:#f0f0f0;}


/* ========================================================
   СТИЛИ ДЛЯ ФОРМЫ ПОИСКА НА СТРАНИЦЕ ПУБЛИЧНОГО ПРОФИЛЯ
   ======================================================== */

/* Основной контейнер формы */
.user-public-profile-search-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.user-public-profile-search-form:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Группа полей */
.control-group {
    margin-bottom: 20px;
}

/* Стили для меток (label) */
.control-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 8px;
}

/* Контейнер для поля ввода */
.controls {
    width: 100%;
}

/* ========================================================
   СТИЛИ ДЛЯ ВСЕХ ПОЛЕЙ ВВОДА И SELECT
   ======================================================== */

/* Поле поиска (keyword) */
.user-public-profile-search-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f1f1f;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.user-public-profile-search-form input[type="text"]:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.user-public-profile-search-form input[type="text"]::placeholder {
    color: #aaa;
}

/* Select выпадающие списки (категория, город) */
.user-public-profile-search-form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f1f1f;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.user-public-profile-search-form select:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

/* ========================================================
   СТИЛИ ДЛЯ КНОПКИ
   ======================================================== */

.actions {
    margin-top: 24px;
}

.user-public-profile-search-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #ff6a00;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-public-profile-search-form .btn-primary:hover {
    background: #e05d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.user-public-profile-search-form .btn-primary:active {
    transform: translateY(0);
}

/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ======================================================== */

@media (min-width: 768px) {
    /* На планшетах и десктопе можно расположить поля в ряд */
    .user-public-profile-search-form {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 16px;
        padding: 20px;
    }

    .control-group {
        flex: 1;
        margin-bottom: 0;
        min-width: 180px;
    }

    .actions {
        flex-shrink: 0;
        margin-top: 0;
        min-width: auto;
    }

    .user-public-profile-search-form .btn-primary {
        width: auto;
        padding: 12px 28px;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .user-public-profile-search-form {
        padding: 20px;
    }
    
    .control-group {
        margin-bottom: 16px;
    }
    
    .control-label {
        font-size: 13px;
    }
    
    .user-public-profile-search-form input[type="text"],
    .user-public-profile-search-form select {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ========================================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ======================================================== */

/* Плавная анимация появления */
.user-public-profile-search-form {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Стили для состояния disabled (если нужно) */
.user-public-profile-search-form input:disabled,
.user-public-profile-search-form select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Сообщения об ошибках (если есть валидация) */
.user-public-profile-search-form .error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ======================= СТРАНИЦА 404 ======================= */

.error-container {
    max-width: 900px;
    margin: 10px auto;
    padding: 20px;
}

/* Анимированная иконка */
.error-icon {
    text-align: center;
    margin-bottom: 10px;
}

.error-icon-inner {
    position: relative;
    display: inline-block;
}

.error-icon-inner i {
    font-size: 80px;
    color: #ff6a00;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.error-icon-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,106,0,0.1) 0%, rgba(255,106,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

/* Цифры 404 */
.error-code {
    text-align: center;
    margin-bottom: 10px;
}

.digit {
    display: inline-block;
    font-size: 100px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 0.5s ease-out;
    margin: 0 5px;
}

.digit:nth-child(1) { animation-delay: 0s; }
.digit:nth-child(2) { animation-delay: 0.1s; }
.digit:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Заголовок и сообщение */
.error-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 16px;
}

.error-message {
    text-align: center;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Кнопки действий */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.error-btn.primary {
    background: #ff6a00;
    color: white;
}

.error-btn.primary:hover {
    background: #e05d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.error-btn.secondary {
    background: white;
    color: #ff6a00;
    border: 1px solid #ff6a00;
}

.error-btn.secondary:hover {
    background: #fff5f0;
    transform: translateY(-2px);
}

.error-btn.outline {
    background: white;
    color: #666;
    border: 1px solid #e5e5e5;
}

.error-btn.outline:hover {
    border-color: #ff6a00;
    color: #ff6a00;
    transform: translateY(-2px);
}

/* Поиск */
.error-search {
    max-width: 500px;
    margin: 0 auto 48px;
    text-align: center;
}

.error-search-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.error-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.error-search-wrapper i {
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 18px;
}

.error-search-wrapper input {
    flex: 1;
    padding: 14px 20px 14px 48px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.error-search-wrapper input:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.error-search-wrapper button {
    margin-left: 12px;
    padding: 14px 28px;
    background: #ff6a00;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.error-search-wrapper button:hover {
    background: #e05d00;
}

/* Популярные категории */
.error-categories {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.error-categories h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1f1f1f;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #1f1f1f;
    transition: all 0.3s;
}

.category-link i {
    font-size: 20px;
    color: #ff6a00;
}

.category-link span {
    font-size: 14px;
    font-weight: 500;
}

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

/* Блок помощи */
.error-help {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    justify-content: center;
}

.help-content i {
    font-size: 48px;
}

.help-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.help-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.help-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.help-link:hover {
    opacity: 0.9;
    transform: translateX(4px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .digit {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 14px;
    }
    
    .error-actions {
        gap: 12px;
    }
    
    .error-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .category-link {
        padding: 10px;
    }
    
    .help-content {
        flex-direction: column;
        text-align: center;
    }
    
    .error-search-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .error-search-wrapper button {
        width: 100%;
        margin-left: 0;
    }
    
    .error-search-wrapper input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .digit {
        font-size: 40px;
    }
    
    .error-icon-inner i {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 20px;
    }
    
    .error-categories {
        padding: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .category-link span {
        font-size: 12px;
    }
    
    .error-help {
        padding: 24px;
    }
}