.t509 .t-section__bottomwrapper {
    margin-top: 60px;
}


.t857__container {
    display: flex !important;
    flex-wrap: wrap !important;
}

.t857__col {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

.t857__container .t-card__col {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.t857__content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.t857__textwrapper {
    flex: 1 !important;
}

.t-card__btn-wrapper {
    margin-top: auto !important;
}

/* Переопределяем цвет активного пункта меню */
#rec1253248341 .t-menu__link-item.t-active:not(.t978__menu-link) {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Для hover состояний */
#rec1253248341 .t-menu__link-item.t-active:not(.t978__menu-link):hover,
#rec1253248341 .t-menu__link-item:not(.t978__menu-link):hover {
    color: #ffffff !important;
}


.t199__menu-item-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.t199__menu-item {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin: 0 !important;
}





.t-card__col:hover .t-heading {
    color: #d00e1e !important;
}

.t-heading {
    transition: color 0.2s ease-in-out;
}




/* Селектор такой же, но с вашим цветом и !important для гарантии */
#rec1253259531 .t817__tab_active:before {
    background-color: #ff0000 !important; /* Ваш красный цвет */
}



.t1056__text a {
    color: #ff0000 !important; /* Красный цвет */
    text-decoration: none;
}

.t1056__text a:hover {
    color: #ff0000 !important; /* Темно-красный при наведении */
    text-decoration: underline;
}




.t858__img {

    padding-bottom: 30px;

}





#.t-col {

    margin-left: 0px!important;
    margin-right: 0px!important;

}

#.t199__holder {

    max-width: 100%!important;
}

li.t509__row.t-card__col.t-item.t-container_flex {
    border: 1px solid black;
    color: black;
}

.t509__leftcol {
    margin-left: 0;
    margin: 20px;
}

.t509__row {
    margin-top: 60px!important;
}

.t668__trigger-button {

    padding: 15px 25px;

}

.t857__content {
    border: 0px solid black;
    padding: 0px;
}

.t420__descr li {
    line-height: 24px;
}

.t509__col.t-col.t-col_6.t509__rightcol {
    margin: 20px;
}


/* Красный фон только под текстовым блоком */
.t983__card:hover .t983__card-block {
    background-color: rgba(255, 0, 0, 0.8);
    padding: 20px;
    margin: -20px;
    border-radius: 4px;
}

/* Плавное изменение */
.t983__card-block {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

a.t199__menu-item.t-title.t-menu__link-item:hover {
    background: #d00b1d;
    color: white;
}

/* Пунктирная рамка для пунктов меню */
.t199__menu-item {
    border: 1px solid #000;
    padding: 8px 12px;
  margin: 0px;
    transition: all 0.3s ease;
}

/* Стили при наведении */
.t199__menu-item:hover {
    background: #d00b1d;
    color: white !important;
    border-color: #d00b1d;
}

/* Для активного пункта меню */
.t199__menu-item.t-active {
    border-style: solid;
    border-width: 2px;
     border-color: #d00b1d;
    color: white !important;
}





/* Стили для ссылок в футере */
.t420__descr a {
    transition: color 0.3s ease;
}

.t420__descr a:hover {
    color: #d00b1d !important;
}

/* Если нужно убрать подчеркивание при наведении */
.t420__descr a:hover {
    text-decoration: none;
}

/* Для жирного текста внутри ссылок */
.t420__descr a strong {
    transition: color 0.3s ease;
}

.t420__descr a:hover strong {
    color: #d00b1d !important;
}



/* Стили для заголовков аккордеона при наведении */
.t668__trigger-button:hover .t668__title {
    color: #d00b1d !important;
}

/* Плавный переход */
.t668__title {
    transition: color 0.3s ease;
}

/* Для кнопки целиком при наведении */
.t668__trigger-button:hover {
    cursor: pointer;
}

/* Вариант 2 - через атрибут hidden */
.t668__content:not([hidden]) ~ .t668__header .t668__title {
    color: #d00b1d !important;
}

/* Вариант 3 - через классы, которые добавляются при открытии */
.t668__accordion-open .t668__title,
.t668__opened .t668__title,
.t668__active .t668__title {
    color: #d00b1d !important;
}

/* Стили только для блока с классом uc-system */
.uc-system .t-card__col {
    position: relative;
    border: 1px solid #000 !important;
    padding: 20px;
    padding-bottom: 60px;
}

.uc-system .t-card__col .t857__btn {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 30px;
    border: 2px solid #000 !important;
    z-index: 2;
}

.uc-system .t-card__col:hover {
    border-color: #d00b1d !important;
}

.uc-system .t-card__col:hover .t857__btn {
    border-color: #d00b1d !important;
    background: #d00b1d !important;
    color: white !important;
}


@media screen and (max-width: 960px) {
  .t1124__title {
    font-size: 22px !important;
  }
  
  .t1124__text {
    font-size: 18px !important;
  }
  
  .t1124__text p {
    text-align: left !important;
  }
}

@media screen and (max-width: 640px) {
  .t1124__title {
    font-size: 32px !important;
    text-align: left;
  }
  
  .t1124__text {
    font-size: 16px !important;
  }
  
  .t-container_flex {
    flex-direction: column;
  }
  
  .t-col {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
  }
}

/* Мобильное меню - уменьшаем размеры */
@media screen and (max-width: 960px) {
  .t199__menu-item {
    font-size: 18px !important; /* Уменьшаем размер шрифта */
    padding: 12px 20px !important; /* Уменьшаем отступы */
    line-height: 1.3 !important; /* Уменьшаем межстрочный интервал */
  }
  
  .t199__menu-items {
    padding: 10px 0 !important; /* Уменьшаем отступы меню */
  }
  
  .t199__menu-item-wrap {
    margin-bottom: 5px !important; /* Уменьшаем расстояние между пунктами */
  }
}

@media screen and (max-width: 640px) {
  .t199__menu-item {
    font-size: 16px !important; /* Еще меньше на очень маленьких экранах */
    padding: 40px 15px !important; /* Еще меньше отступов */
    line-height: 1.2 !important;
  }
  
  .t199__menu-items {
    padding: 8px 0 !important;
  }
  
  .t199__menu-item-wrap {
    margin-bottom: 0px !important;
  }
}

/* Дополнительно: делаем меню более компактным */
.t199__menu-item {
  transition: all 0.3s ease;
}

/* Убедимся, что меню не растягивается слишком сильно */
.t199__menu {
  max-height: 80vh;
  overflow-y: auto;
}



@media only screen and (max-width: 1024px) {
    .t199__mmenu {

        padding: 5vh 0;

}
    


/* Показываем логотип в мобильной версии */
@media screen and (max-width: 960px) {
  .t199__logo {
    display: block !important; /* Принудительно показываем */
    text-align: center; /* Центрируем */
    padding: 15px 0; /* Добавляем отступы */
  }
  
  .t199__logo-image {
    max-width: 150px !important; /* Уменьшаем размер для мобильных */
    height: auto !important;
    display: inline-block !important;
  }
}

@media screen and (max-width: 640px) {
  .t199__logo-image {
    max-width: 120px !important; /* Еще меньше на маленьких экранах */
  }
  
  .t199__logo {
    padding: 10px 0 !important;
  }
}

/* Дополнительно: скрываем текстовый логотип если он есть */
@media screen and (max-width: 960px) {
  .t199__logo-text {
    display: none !important;
  }
}


.t199__logo-text-mobile.t-title {
    display: none;
}



/* Отступы для текста в мобильной версии */
@media screen and (max-width: 960px) {
  .t409__textwrapper {
    padding-top: 30px !important; /* Добавляем отступ сверху */
    padding-bottom: 30px !important; /* И снизу для баланса */
  }
  
  .t409__title {
    margin-bottom: 20px !important; /* Отступ после заголовка */
  }
  
  .t409__descr {
    margin-bottom: 25px !important; /* Отступ перед кнопкой */
  }
}

@media screen and (max-width: 640px) {
  .t409__textwrapper {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  .t409__title {
    margin-bottom: 15px !important;
    font-size: 32px !important; /* Уменьшаем размер заголовка */
  }
  
  .t409__descr {
    margin-bottom: 20px !important;
    font-size: 16px !important; /* Уменьшаем размер текста */
  }
}

/* Дополнительно: центрируем контент на мобильных */
@media screen and (max-width: 960px) {
  .t409__textwrapper {
    /*text-align: center !important;*/
  }
  
  .t409__flexcolumn {
    /*align-items: center !important;*/
  }
}



@media screen and (max-width: 640px) {
    .t-name_md {
        font-size: 32px;
    }
}


.t199__logo-image {

    margin-top: -20px;
}


@media screen and (max-width: 960px) {
  /* Конкретно для этой картинки */
  .t409__img.t409__img_flipped.t-img.loaded {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  /* Конкретно для этого враппера */
  .t409__imgwrapper.t409__imgwrapper_flipped {
    padding: 0 !important;
    margin: 0 !important;
  }
}





