/* Pop up баннер*/

.exit-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(20, 20, 20, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  position: relative;
}

.popup-content h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.popup-content ul {
  text-align: left;
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.popup-content ul li {
  margin: 10px 0;
}

.popup-button {
  background-color: #ec7550;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
}

.popup-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}


/* Каталог Автопарка*/

.product-item {
    display: block;
    box-sizing: border-box;
    padding-top: 15px;
    width: 90%;
    border: 1px solid #ec7550;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(0,0,0,.19);
    margin-top: 50px;
}

.product-item-title {
    overflow: hidden;
    margin: 0;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* Посадочная Каталог Автопарка*/

.product-item-detail-slider-block.product-item-detail-slider-block-square {
    padding-top: 50%;
}

.product-item-detail-pay-block {
    position: relative;
    margin-bottom: 15px;
    padding: 15px 15px 0;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    background-color: #fff;
}

.product-item-detail-pay-block {
    position: absolute;
    margin-bottom: 28px;
    padding: 22px 30px 55px 59px;
    margin-left: 732px;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    background-color: #fff;
}

.btn {
    position: relative;
    display: inline-block;
    background: #ec7550;
    border: 2px solid #ec7550;
    height: 50px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-transition: background-color .3s ease-out;
    -o-transition: background-color .3s ease-out;
    transition: background-color .3s ease-out;
}

.btn.product-item-detail-buy-button {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: var(--ui-font-weight-bold);
    text-transform: uppercase;
}

/*Отключение загрузчика*/

.loader {
    display: none;
}

/* Общее текст*/

h1, .h1 {
color: black;
}

/*Кнопки в меню*/
.navbar-nav li a {
    color: #000000;
}

/*Супер кнопка оранжевая на посадочной странице автопарка*/

#button-design .b-orange,#button-design .b-orange:before{background:#ffc107;background:-moz-linear-gradient(45deg,#ffc107 0,#ff5722 100%);background:-webkit-gradient(left bottom,right top,color-stop(0,#ffc107),color-stop(100%,#ff5722));background:-webkit-linear-gradient(45deg,#ffc107 0,#ff5722 100%);background:-o-linear-gradient(45deg,#ffc107 0,#ff5722 100%);background:-ms-linear-gradient(45deg,#ffc107 0,#ff5722 100%);background:linear-gradient(45deg,#ffc107 0,#ff5722 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc107',endColorstr='#ff5722',GradientType=1)}
#button-design .button{display:inline-block;position:relative;border-radius:3px;text-decoration:none;padding:0.5rem;margin:0.5rem;font-size:2rem;font-weight:70;transition:all 0.5s;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
#button-design .button:hover{text-shadow:0 0 0 rgba(255,255,255,.75)}
#button-design .button:hover:after{left:100%;top:100%;bottom:100%;right:100%}
#button-design .button:before{content:'';display:block;position:absolute;left:0;top:0;bottom:0;right:0;z-index:-1;border-radius:5px;transition:all .5s}
#button-design .button:after{content:'';display:block;position:absolute;left:2px;top:2px;bottom:2px;right:2px;z-index:-1;border-radius:5px;transition:all 0.5s;background:#fff}

/*Слайдер на посадочной странице автопарка*/

.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  max-width: 600px;
  margin: auto;
  margin-top: 10px;
}

.big-image img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border: 2px solid #ec7550;
  margin-bottom: 10px;
}

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 600px;
}

.thumbnail-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.thumbnail-carousel img {
  width: 80px;
  height: 80px;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
}

.thumbnail-carousel img:hover {
  border-color: #ec7550;
  transform: scale(1.05);
}

.carousel-button {
  background-color: #ec7550;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button.left {
  margin-right: 10px;
}

.carousel-button.right {
  margin-left: 10px;
}



 /* Сокращение текста с учетом заголовков на посадочной странице Автопарка */

    /* Контейнер для текстового блока */
    #catalog-description-container {
        overflow: hidden;
        max-height: 450px; /* Установленная высота для сокращенного текста */
        transition: max-height 0.5s ease; /* Плавное раскрытие вниз */
        position: relative;
    }

    /* Сокращение текста внутри контейнера */
    .short-description {
        overflow: hidden;
    }

    /* Стили для контейнера кнопки "Читать дальше" */
    #read-more-container {
        margin-top: 10px; /* Отступ для кнопки на новой строке */
                margin-left: 18px;
    }

    /* Стили для блока "Обсудить на форуме" */
    #button-design {
        margin-top: 15px; /* Отступ для блока под кнопкой "Читать дальше" */
    }

   /* Стили кнопок контента на посадочной странице Автопарка */
    .catalog-item-tabs {
        width: 100%;
        margin-top: 20px;
    }
    .tab-menu {
        display: flex;
        border-bottom: 2px solid #ddd;
        margin-bottom: 10px;
        overflow-x: auto; /* Включаем горизонтальную прокрутку для узких экранов */
        scrollbar-width: thin;
        scrollbar-color: #ec7550 #f5f5f5;
    }
    .tab-menu-item {
        cursor: pointer;
        padding: 10px 15px;
        color: #555;
        background: #f5f5f5;
        border: 1px solid #ddd;
        border-bottom: none;
        border-radius: 5px 5px 0 0;
        margin-right: 5px;
        text-align: center;
        transition: background 0.3s ease, color 0.3s ease;
        white-space: nowrap; /* Отключаем перенос текста для вкладок */
        flex-shrink: 0; /* Предотвращаем сжатие вкладок */
    }
    .tab-menu-item:hover {
        background-color: #eaeaea;
    }
    .tab-menu-item.active {
        font-weight: bold;
        color: #fff;
        background-color: #ec7550;
        border-bottom: 2px solid #ec7550;
    }
    .tab-content-container {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 0 0 5px 5px;
    }
    .tab-content {
        display: none;
    }
    .tab-content.active {
        display: block;
    }

    /* Адаптивные стили для планшетов */
    @media (max-width: 768px) {
        .tab-menu-item {
            padding: 8px 12px;
            font-size: 14px;
        }
        .tab-content-container {
            padding: 15px;
        }
		.slider {
			width: 100%;
		}
    }

    /* Адаптивные стили для мобильных телефонов */
    @media (max-width: 480px) {
        .tab-menu-item {
            padding: 6px 10px;
            font-size: 12px;
        }
        .tab-content-container {
            padding: 10px;
        }
    }

/* Сброс отступов */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================= */
/* Видео баннер */
.containerb {
    position: relative;
    width: 100%;
    height: 75vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 0;
}

.containerb video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.overlayb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.opium {
    color: #fff;
    z-index: 2;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

.opium h2 {
    font-size: 46px;
    font-weight: 700;
    margin: 20px 0;
}

.opium h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #fff;
}

/* блоки иконок */
.z {
    width: 100%;
    margin-bottom: 5%;
}

/* ============================= */
/* Скрытие описаний под заголовком */
@media (max-width: 1220px) {
    .invice {
        display: none;
    }
}

/* ============================= */
/* Адаптивная высота */
@media (max-width: 1400px) {
    .containerb { height: 550px; }
}

@media (max-width: 1024px) {
    .containerb { height: 500px; }
}

@media (max-width: 768px) {
    .containerb { height: 320px; }
}

@media (max-width: 480px) {
    .containerb { height: 240px; }
}

/* ============================= */
/* МОБИЛЬНАЯ ВЕРСИЯ БАННЕРА */
/* оставляем только главный заголовок */

@media (max-width: 768px) {

    /* уменьшаем главный заголовок */
    .opium h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* скрываем второстепенный заголовок */
    .opium h3 {
        display: none;
    }

    /* скрываем иконки */
    .z {
        display: none;
    }

    /* скрываем описания */
    .opium p {
        display: none;
    }

    /* скрываем кнопку */
    .lead-controls {
        display: none;
    }

}

/* ============================= */
/* Белый текст под иконками */
.icon-text,
.button-text,
.some-section p {
    color: #fff !important;
}

/* Форум */
/* Общие стили */
.chx-forum-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.chx-forum-group {
    width: calc(33.33% - 20px);
    background-color: #fff; /* Белый фон для каждой группы */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.chx-forum-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Увеличиваем тень на ховер */
}

.chx-forum-group__head {
    margin-bottom: 10px;
    position: relative;
}

/* Добавление изображения в блок */
.chx-forum-group__image  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Заголовок группы */
.chx-forum-group__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50; /* Темно-синий цвет для текста */
    margin-top: 20px;
}

.chx-forum-group__desc {
    font-size: 1rem;
    color: #7f8c8d; /* Светло-серый для описания */
}

.chx-forum-item {
    margin-bottom: 10px;
}

.chx-forum-item__link {
    font-size: 1.1rem;
    color: #ec7550; /* Цвет для ссылок */
    text-decoration: none;
    font-weight: bold;
}

.chx-forum-item__link:hover {
    text-decoration: underline;
}

.chx-forum-item__desc {
    font-size: 0.9rem;
    color: #95a5a6; /* Светло-серый цвет для описания */
}

/* Стили для подгрупп */
.chx-forum-group__subgroups {
    margin-top: 15px;
}

.chx-forum-subgroup__link {
    font-size: 1rem;
    color: #ec7550;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.chx-forum-subgroup__link:hover {
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .chx-forum-group {
        width: 100%; /* На мобильных устройствах группы занимают всю ширину */
        margin-bottom: 20px;
    }

    .chx-forum-group__title {
        font-size: 1.3rem;
    }

    .chx-forum-group__desc {
        font-size: 0.9rem;
    }

    .chx-forum-item__link {
        font-size: 1rem;
    }

    .chx-forum-item__desc {
        font-size: 0.8rem;
    }

    .chx-forum-subgroup__link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chx-forum-group__title {
        font-size: 1.1rem;
    }

    .chx-forum-item__link {
        font-size: 0.9rem;
    }

    .chx-forum-item__desc {
        font-size: 0.7rem;
    }

    .chx-forum-subgroup__link {
        font-size: 0.8rem;
    }
}

/* Стиль для последней группы "Бренды производители" */
.chx-forum-group.brands-group {
    width: 100%; /* Занимает всю ширину */
    background-color: #fff; /* Белый фон для группы */
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.chx-forum-group.brands-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Увеличиваем тень на ховер */
}
/* Стиль для последней группы "Бренды производители" */
.chx-forum-group.brands-group {
    width: 100%; /* Занимает всю ширину */
    
    padding: 30px;
}

/* Разбиваем ссылки на форумы в несколько колонок */
.chx-forum-group.brands-group .chx-forum-group__forums {
    column-count: 3; /* Количество колонок */
    column-gap: 20px; /* Расстояние между колонками */
}

/* Для мобильной версии, уменьшаем количество колонок */
@media (max-width: 768px) {
    .chx-forum-group.brands-group .chx-forum-group__forums {
        column-count: 2; /* На мобильных два столбца */
    }
}

@media (max-width: 480px) {
    .chx-forum-group.brands-group .chx-forum-group__forums {
        column-count: 1; /* На самых маленьких экранах одна колонка */
    }
}


/* Для мобильной версии уменьшаем количество колонок */
@media (max-width: 768px) {
    .chx-forum-group.brands-group .chx-forum-group__forums {
        flex-direction: column; /* Один столбец на мобильных устройствах */
    }
}

/*Кнопки мобильной версии с ИИ*/

/* Стили для мобильных устройств (max-width: 767px) */
@media (max-width: 767px) {
    .mobile-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-evenly; /* Равномерное распределение кнопок */
        background-color: #6d6d6d; /* Фон серого цвета за кнопками */
        padding: 15px 0;
        z-index: 9999; /* Убедитесь, что кнопки будут выше остальных элементов */
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2); /* Тень для кнопок */
        border-radius: 15px 15px 0 0; /* Закругленные верхние углы */
    }

    .mobile-buttons a {
        flex: 1; /* Каждая кнопка занимает равную часть экрана */
        text-align: center;
        padding: 18px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 10px;
        transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Тень для кнопок */
        margin: 0 8px; /* Отступ между кнопками */
    }

    /* Стили для кнопки "Спросить у ИИ" */
    .mobile-buttons .ask-ai {
        background-color: #ec744f; /* Цвет кнопки "Спросить у ИИ" */
        color: white;
    }

    /* Стили для кнопки "Ответить" */
    .mobile-buttons .reply {
        background-color: #28a745; /* Зеленый цвет для кнопки "Ответить" */
        color: white;
    }

    /* Эффект при наведении */
    .mobile-buttons a:hover {
        background-color: #e25c39; /* Темнее на hover для кнопки "Спросить у ИИ" */
        transform: translateY(-4px); /* Эффект подъема при наведении */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Усиленная тень при наведении */
    }

    .mobile-buttons a:active {
        transform: translateY(2px); /* Эффект нажатия */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Слабая тень при нажатии */
    }

    /* Стиль для фокуса */
    .mobile-buttons a:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(236, 116, 79, 0.5); /* Окружность вокруг кнопки для фокуса */
    }
}

/* Скрыть кнопки на десктопе */
@media (min-width: 768px) {
    .mobile-buttons {
        display: none;
    }
}

/* Скрыта навигационная панель полностью на форуме*/
.forum-navigation-box.forum-navigation-top {
  display: none;
}

/* Скрыто меню форума на мобильном*/
@media (max-width: 767px) {
  .forum-info-box,
  .forum-menu-box {
    display: none;
  }
}

/* Скрыты хлебные крошки форума на мобильном*/
@media (max-width: 767px) {
  .bx-breadcrumb,
  .breadcrumb,
  .forum-breadcrumb {
    display: none;
  }
}

/* Скрыты rss и подписка форума на мобильном*/
@media (max-width: 767px) {
  .forum-header-box .forum-header-options {
    display: none;
  }
}

/* Скрыты сообщения и дата регистрации пользователя форума на мобильном*/
.forum-author-message,
.forum-author-registration {
  display: none;
}


/* чек бокс массовых изменений для сообщений форума (перенесена)*/

.forum-action-links {
    display: flex;
    align-items: center;
}

.forum-post-number {
    margin-right: 15px;
    font-size: 16px;
    font-weight: bold;
}


/* Стили объявлений на форуме forum ads */

.forum-ads-block {
    background: #f8e8dc;
    border: 1px solid #f2cfb6;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.forum-ads-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding: 10px 15px 8px;
    border: 1px solid #f2cfb6;
    background: #f2cfb6;
}

.forum-ads-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: space-between; /* Для равномерного распределения элементов */
}

.forum-ads-item {
    flex: 1 1 calc(33.333% - 10px); /* Пропорциональные блоки */
    min-width: 280px; /* Минимальная ширина блока */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 0;
    border: 1px solid #f2cfb6;
    transition: all 0.2s ease;
    height: 100%; /* Растягиваем блоки до одинаковой высоты */
    box-sizing: border-box; /* Включаем padding и border в размер блока */
}

.forum-ads-item:hover {
    background: #fefcfa;
    border-color: #e6b894;
}

.forum-ads-image-link {
    display: block;
    text-decoration: none;
}

.forum-ads-image {
    width: 100%; /* Ширина изображения всегда 100% */
    height: 180px; /* Задаем фиксированную высоту для всех изображений */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-ads-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Задаем, чтобы изображение покрывало всю область */
    transition: transform 0.2s ease;
}

.forum-ads-image-link:hover .forum-ads-image img {
    transform: scale(1.05);
}

.forum-ads-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.forum-ads-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
    color: #333;
}

.forum-ads-item-title a {
    color: #ff6a33 !important; /* ← основной оранжевый */
    text-decoration: none;
}

.forum-ads-item-title a:hover {
    color: #e85f2d !important; /* ← hover */
    text-decoration: underline;
}

.forum-ads-text {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.forum-ads-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-ads-property {
    font-size: 11px;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
}

.property-name {
    font-weight: 600;
    color: #333;
}

.property-value {
    color: #d32f2f;
}

.forum-ads-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: auto; /* ← кнопка вниз */
}

.forum-ads-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    background: #7fb77e !important; /* ← спокойный зелёный */
    color: #ffffff !important;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    border: none;
    outline: none;
}

.forum-ads-link:hover,
.forum-ads-link:focus {
    background: #6ca56c !important;
    color: #ffffff !important;
    text-decoration: none;
    outline: 2px solid #333;
}

.forum-ads-phone,
.forum-ads-email {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    background: #d32f2f;
    color: white;
    transition: background-color 0.2s ease;
}

.forum-ads-phone:hover,
.forum-ads-email:hover {
    background: #b71c1c;
    color: white;
    text-decoration: none;
}

.forum-ads-phone {
    background: #28a745;
}

.forum-ads-phone:hover {
    background: #1e7e34;
}

.forum-ads-email {
    background: #17a2b8;
}

.forum-ads-email:hover {
    background: #117a8b;
}

.forum-ads-detail-image {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.forum-ads-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-ads-separator {
    height: 1px;
    background: #dee2e6;
    margin: 10px 0;
}

.forum-ads-footer {
    margin-top: 5px;
    padding-top: 0Djn;
    border-top: 1px solid #fefaf8;
}

.forum-ads-disclaimer {
    font-size: 8px;
    color: #868e96;
    font-style: italic;
    margin: 0 0 0 12px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .forum-ads-container {
        grid-template-columns: 1fr;
    }
    
    .forum-ads-image {
        height: 200px;
    }
    
    .forum-ads-detail-image {
        width: 100%;
        height: 150px;
    }
    
    .forum-ads-actions {
        justify-content: space-between;
    }
}

/* Планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
    .forum-ads-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .forum-ads-block {
        background: #f6dfcf; ;
        border-color: #f2cfb6;
        color: #333;
    }
    
    .forum-ads-item {
        background: #f6dfcf;
        border-color: #f2cfb6;
    }
    
    .forum-ads-title {
        color: #333;
    }
    
    .forum-ads-text {
        color: #333;
    }
}

/* --- 1. Белый фон карточек --- */
.forum-ads-item {
    background: #ffffff !important;
}

/* --- 2. Фиксация выравнивания кнопок --- */
.forum-ads-item {
    display: flex;
    flex-direction: column;
}

.forum-ads-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.forum-ads-actions {
    margin-top: auto;
}

.forum-ads-wrapper {
 margin-bottom: 15px;
}

/* --- 3. Фото — по центру и полностью --- */
.forum-ads-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-ads-image img {
    object-fit: contain !important;
}

