/* ===================== ОБЩИЕ СТИЛИ ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
    html {
    font-size: 62.5%;
  }
    body {
    font-family: "Be Vietnam Pro", Helvetica, Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.75;
    background-color: #f4f4f4;
    color: #2c3e50;
  }
    h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
  }
    p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 1.5rem;
    color: inherit;
  }
    a {
    color: #4c97bf;
    text-decoration: none;
    transition: color 0.3s ease;
  }
    a:hover {
    color: #2c3e50;
  }
    
    .container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
  }
  /* Общие стили для метаданных */
    .meta, .meta span, .meta a {
    font-size: 1.4rem;
    color: #7f8c8d;
    }

/* Стили для кнопок */

.btn {
    font-family: "Be Vietnam Pro", Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
}
/* ========== ХЭДЕР ========== */
.top-banner {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.4rem;
}
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}
.logo p {
    color: #7f8c8d;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
.logo a {
    color: inherit;
    text-decoration: none;
}
.logo a:hover h1 {
    color: #4c97bf;
}
.logo a:hover p {
    color: #4c97bf;
}
/* ========== Кнопки навигации вверху ========== */
.nav-buttons {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    font-size: 1.6rem;
    padding: 10px 20px !important;
    color: white !important;
    background-color: #4c97bf !important;
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(76,151,191,0.3) !important;
}

.nav-btn:hover, .nav-btn.active {
    color: white !important;
    background-color: #4c97bf !important;
    box-shadow: 0 4px 8px rgba(76,151,191,0.5) !important;
    transform: translateY(-2px);
}
.main-nav .nav-buttons a.active {
    font-weight: bold;
    color: #007bff;
}
/* ========== СОЦСЕТИ ========== */

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

.social-btn {
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(0);
}

.social-btn:hover {
    background-color: white;
    box-shadow: 0 4px 8px rgba(76,151,191,0.2);
    transform: translateY(-8px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.social-btn:hover svg {
    fill: #4c97bf;
    transform: scale(1.2);
}

.x-icon {
    position: relative;
}

.x-icon .x-logo {
    width: 18px;
    height: 18px;
}

.x-icon::after {
    content: 'X';
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: #4c97bf;
}

.x-icon:hover::after {
    opacity: 1;
    bottom: -25px;
}

/* ДРУГИЕ стили для текстового контента */
/* Обновляем стили для текстового контента */
.news-card .col-md-8 {
    padding: 5px 10px;
}
/* Убираем лишние стили */
.news-card .card-body {
    background: transparent;
    box-shadow: none;
}
/* Обновляем стили для изображения */
.post-thumb {
    aspect-ratio: 4 / 3; 
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}
.post-thumb img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px;
}
.post-thumb-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}
.news-image {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;       
}
.card-title {
    color: #2c3e50;
    transition: color 0.3s ease;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.4;
}
a:hover .card-title {
    color: #4c97bf;
}
.meta {
    color: #7f8c8d;
    font-size: 1.4rem;
}

.meta i {
    color: #4c97bf;
}

.category-link {
    color: #4c97bf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #2c3e50;
}

.card-text {
    color: #666;
    line-height: 1.75;
    font-size: 1.4rem;
    display: -webkit-box;
   /* -webkit-line-clamp: 3;*/
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ========== Sidebar ========== */


/* Стили для заголовков в сайдбаре */
/* Общий контейнер боковых блоков */
.sidebar-box {
    position: relative;
    background: #fff9f3;
    border: 1px solid #ffe7d2;
    border-radius: 15px;
    padding: 30px 20px 20px;
    margin: 20px 0 30px;
}

/* Общий стиль заголовков */
.sidebar-box h3 {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 25px;
    border: 1px solid #ffe7d2;
    border-radius: 20px;
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    z-index: 1;
}

/* Обновленные стили для поиска */
.search-box {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.search-box form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ffe7d2;
    border-radius: 20px;
    outline: none;
}

.search-box button {
    background: #4c97bf ;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #4c97bf ;
}

.search-box input::placeholder {
    color: #b8a99a;
}

.search-box button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(76,151,191,0.2);
	
	
	}

/* Блок зимних шин */
.ad-winter-tyres {
    display: flex;          
    padding: 18px 20px;             /* внутренняя рамка */
    border-radius: 14px;
    background: #fff9f3;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ad-winter-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.ad-winter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 10px;
}

.ad-winter-text {
    font-size: 14px;
    line-height: 1.45;
    color: #444;
    margin-bottom: 12px;
}

.ad-winter-url {
    font-size: 13px;
    font-weight: 600;
    color: #1e8e3e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-winter-url svg {
    flex-shrink: 0;
}

/* Стили для блока популярных новостей */

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.popular-post {
    display: flex;
    gap: 15px;
}

.popular-post-image {
    flex-shrink: 0;
}

.popular-post-image img {
    border-radius: 8px;
    object-fit: cover;
}

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

.popular-post-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /*-webkit-line-clamp: 2;*/
    -webkit-box-orient: vertical;
}
.popular-post-meta {
    display: flex;
    gap: 15px;
    color: #7f8c8d;
    font-size: 1.3rem;
}

.popular-post-meta i {
    color: #4c97bf;
}
/* конец блока  */
/* Обновленные стили для КАТЕГОРИЙ */
/* Сброс стандартных стилей списка */
.categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Элементы верхнего уровня */
.categories .btn-toggle {
    font-weight: bold;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.6rem;
    text-align: left;
    padding: 10px 15px;
    width: 100%;
    transition: background 0.2s ease;
}
.categories .btn-toggle:hover,
.categories .btn-toggle.menu-active {
    background-color: #f5f5f5;
    color: #4c97bf;
}
/* Список подкатегорий */
.categories .btn-toggle-nav {
    padding-left: 1rem;
    margin-top: 0.3rem;
    border-left: 2px dashed #4c97bf;
}
/* Ссылки подкатегорий */
.categories .btn-toggle-nav li a {
    display: block;
    padding: 6px 15px;
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    margin-left: 5px;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
}
/* Подсветка активного элемента */
.categories .btn-toggle-nav li a:hover,
.categories .btn-toggle-nav li a.menu-active {
    background: #f5faff;
    color: #3498db;
    font-weight: 600;
}

/* Линии между пунктами */
.categories li {
    border-bottom: 1px solid #eee;
}

/* Обновленные стили для ФУТЕРА */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.4rem;
    color: white;
}

.footer-content p {
    color: white;
    margin: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4c97bf;
}
/* Пагинация*/
.pagination {
    margin-top: 20px;
    gap: 4px; /* небольшой отступ между кнопками */
}

.page-item .page-link {
    padding: 6px 12px;
    font-size: 1.3rem;
    border-radius: 6px; /* одинаково по всем углам */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-item .page-link:hover {
    background-color: #f5f5f5;
    color: #2c3e50;
}

/* Активная кнопка */
.page-item.active .page-link {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
    border-color: #2c3e50;
}


/* СТИЛИ ДЛЯ СТАТЕЙ И КАРТОЧЕК */
/* Стили для полной статьи */
.article-full .article-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.7rem;
    line-height: 1.75;
    color: #2c3e50;
    
}
.text-justify {         /* Для всего контейнера выравнивание по ширине */
    text-align: justify;
    word-break: break-word;
}
.responsive-image {
    display: block;
    max-width: 100%;  /* Ограничивает ширину контейнером */
    height: auto;     /* Сохраняет пропорции */
    margin: 10px auto; /* Центрируем изображение и добавляем отступы */
    object-fit: contain;
}

.article-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Стили для заголовков категорий и поиска */
.category-header {
    background: transparent;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-header h1 {
    color: #2c3e50;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-header .lead {
    color: #7f8c8d;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Стили для алертов */
.alert {
    padding: 2rem;
    border-radius: 8px;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.alert-info {
    background-color: #e8f4f8;
    border-color: #d1e8f1;
    color: #2c3e50;
}

.alert-warning {
    background-color: #fff8e8;
    border-color: #f1e8d1;
    color: #856404;
}


/* Стили для подсветки результатов поиска */
.search-highlight {
    background-color: rgba(76,151,191,0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* конец блока  */


/* Стили для страницы политики конфиденциальности */
.privacy-policy {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.privacy-policy h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.4;
}

.privacy-policy h2 {
    color: #2c3e50;
    font-size: 2.4rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    line-height: 1.4;
}

.privacy-policy p {
    color: #2c3e50;
    font-size: 1.7rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.privacy-policy ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.privacy-policy li {
    color: #2c3e50;
    font-size: 1.7rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}
/* конец блока  */

/* Стили для СТАТЬИ ARTICLE*/
/* Стили для хлебных крошек */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
}

.breadcrumb-item a {
    color: #4c97bf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2c3e50;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #7f8c8d;
}

/* Стили для навигации между статьями */
.article-navigation {
    background: #fff9f3;
    border: 1px solid #ffe7d2;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

/* Стили для кнопок поделиться */
.article-share {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-share h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

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

.share-btn {
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(0);
}

.share-btn:hover {
    background-color: white;
    box-shadow: 0 4px 8px rgba(76,151,191,0.2);
    transform: translateY(-8px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.share-btn:hover svg {
    fill: #4c97bf;
    transform: scale(1.2);
}
.next-article .article-nav-link {
    flex-direction: row-reverse;
}

.article-nav-thumb {
    flex: 0 0 100px;
    margin: 0 15px;
}

.article-nav-thumb img {
    border-radius: 8px;
    height: 70px;
    object-fit: cover;
}

.article-nav-link h4 {
    font-size: 1.6rem;
    margin: 0;
    transition: color 0.3s ease;
}

.article-nav-link:hover h4 {
    color: #4c97bf;
}

.prev-article, .next-article {
    padding: 15px;
    transition: transform 0.3s ease;
}

.prev-article:hover, .next-article:hover {
    transform: translateY(-2px);
}
/* Стили для блока рекомендаций */
.recommendations-block {
    margin-bottom: 50px;
    background: #fff9f3;
    border: 1px solid #ffe7d2;
    border-radius: 15px;
    padding: 30px;
}

.recommendations-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3rem;
    padding: 8px 25px;
    display: inline-block;
    background: white;
    border: 1px solid #000;
    border-radius: 30px;
}

.recommendation-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.recommendation-image {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 66.67%; /* Соотношение сторон 3:2 */
}

.recommendation-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.recommendation-card:hover .recommendation-image img {
    transform: scale(1.05);
}

.recommendation-content {
    padding: 20px;
}

.recommendation-title {
    text-decoration: none;
}

.recommendation-title h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.recommendation-title:hover h4 {
    color: #4c97bf;
}

.recommendation-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 1.4rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author-name {
    color: #2c3e50;
    font-weight: 500;
}

.recommendation-date {
    color: #7f8c8d;
}
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.tag-link {
    display: inline-block;
    padding: 8px 25px;
    background: #e8e8e8;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #4c97bf;
    color: white;
    text-decoration: underline;
}

.article-tags i {
    color: #7f8c8d;
    font-size: 1.4rem;
}
  /* ===================== МОБИЛЬНАЯ АДАПТАЦИЯ ===================== */
@media (max-width: 768px) {
    html {
        font-size: 56.25%;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .sidebar {
        margin-top: 30px;
    }

    .news-card .row {
        flex-direction: column;
    }

    .news-card .col-md-4,
    .news-card .col-md-8 {
        width: 100%;
    }

    .post-thumb {
        aspect-ratio: 3 / 2; 
        margin-bottom: 15px;
        position: relative;
        overflow: hidden;
        
    }

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

    .news-card .card-body {
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .card-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .meta {
        margin-bottom: 10px;
    }

    .article-navigation .row > div {
        margin-bottom: 20px;
    }
    
    .next-article {
        text-align: left !important;
    }
    
    .next-article .article-nav-link {
        flex-direction: row;
    }
    
    .article-nav-thumb {
        flex: 0 0 80px;
    }
    
    .article-nav-link h4 {
        font-size: 1.4rem;
    }
    .popular-container {
        padding: 20px;
    }
    
    .popular-post-image img {
        width: 80px;
        height: 60px;
    }
    
    .popular-post-content h4 {
        font-size: 1.4rem;
    }
    .privacy-policy {
        padding: 20px;
    }

    .privacy-policy h1 {
        font-size: 2.4rem;
    }

    .privacy-policy h2 {
        font-size: 2rem;
    }
    .recommendations-block {
        margin-bottom: 30px;
    }

    .recommendations-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .col-md-3 {
        margin-bottom: 20px;
    }

    .recommendation-content {
        padding: 15px;
    }

    .recommendation-title h4 {
        font-size: 1.4rem;
    }
    .category-header {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .category-header h1 {
        font-size: 2.4rem;
    }

    .category-header .lead {
        font-size: 1.6rem;
    }

    .alert {
        padding: 1.5rem;
        font-size: 1.4rem;
    }
    .row.g-4 {
        flex-direction: column;
    }
    .col-md-8 {
        padding: 15px;
    }
    .news-card {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.5s ease-in-out;
}
    .auto-history-note {
    display: none;
  }
    .viewed-block {
    display: none;
  }
}
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .news-card {
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .meta span {
        font-size: 1.2rem;
    }
    .meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}


/* Стили для мобильного меню */
.mobile-menu-btn {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #2c3e50;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:first-child {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:last-child {
    bottom: 0;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Убираем ненужные стили */
.news-card {
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}
.auto-history-note {
    font-size: 1.3rem;
    color: #2c3e50;
    background: #e9f7ff;
    border-left: 4px solid #4c97bf;
    padding: 5px 10px;
    border-radius: 6px;
    max-width: 350px; /* ограничиваем ширину */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 20px;
}

/* Вариант: если хочешь, чтобы текст переносился на следующую строку */
.auto-history-note.multiline {
    white-space: normal;
    word-break: break-word;
    max-width: 380px;
}
/* Блок Просмотрено */
.viewed-block {
    background: #fff9f3;
    border: 1px solid #fff9f3;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    margin-bottom: 40px;
}

.viewed-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #4c97bf;
    margin-bottom: 2rem;
    padding: 8px 25px;
    display: inline-block;
    background: white;
    border: 1px solid #4c97bf;
    border-radius: 30px;
}

.viewed-card {
    background-color: #fffaf5;
    box-shadow: 0 2px 4px rgba(194, 92, 0, 0.1);
}

.viewed-more {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2rem;
    color: #4c97bf;
    transition: color 0.3s ease;
}

.viewed-more:hover {
    color: #4c97bf;
}
.viewed-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.viewed-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.viewed-slide {
    flex: 0 0 auto;
    width: 300px;
}

.viewed-arrow-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #4c97bf;
    cursor: pointer;
    z-index: 2;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.viewed-arrow-icon:hover {
    color: #4c97bf;
}

.viewed-arrow-icon.left {
    left: 0;
}

.viewed-arrow-icon.right {
    right: 0;
}
/* Конец блока */
