

@font-face {
  font-family: Exo-Bold;
  src: url(../font/Exo-Bold.ttf);
}

@font-face {
  font-family: Exo-Black;
  src: url(../font/Exo-Black.ttf);
}


         .categ {
            display: block;
            width: 100%;
            background-color: #ffffff;
            margin-top: 52px;
            margin-bottom: 48px;
         }


         .categ_inner {
            display: flex;
            flex-direction: column; /* Размещение элементов по вертикали */
            max-width: 1154px;
            height: auto;
            gap: 50px;
            margin: 0 auto; /* Центрируем по горизонтали */
            box-sizing: border-box; /* Включаем отступы в расчет размера */
            overflow: hidden;    /* Скрытие статей (справа) при меньшей ширине экрана */
         }


         .categ_category {
            display: flex;
            flex-direction: column; /* Размещение элементов по вертикали */
            justify-content: flex-start; /* Выровнять элементы по верхнему краю */
            max-width: 1154px;
            height: auto;
         }



         @media (max-width: 1154px) {
            .categ_inner {
            margin-left: 40px;
            margin-right: 40px;
         }
         }


         /* ===========  HEAD  ===========  */


         .categ_head {
            display: flex;
            justify-content: space-between;  /* Размещение элементов по краям */
            align-items: center;
            max-width: 1154px;  /* Максимальная ширина */
              margin-top: 0px;
              margin-bottom: 20px;
         }


         .categ_title {
            display: flex;
            flex-direction: row;
            align-items: center; /* Центрируем элементы по вертикали */
         }

         .categ_txt {
            font-family: Exo-Black;
            text-align: left;
            font-size: 31px;
            font-weight: bold;
            color: #181818;
         }

         .categ_divider {
            width: 4px;
            height: 4px;
            background-color: #181818;
            margin-top: 4px;
            margin-left: 13px;
            margin-right: 13px;
            border-radius: 50%;
         }

         .categ_all a {
            font-family: Helvetica, Arial, sans-serif;
            text-align: left;
            font-size: 18px;
            font-weight: normal;
            color: #181818;
              text-decoration-line: underline;       /* всегда подчеркивание */
              text-decoration-color: transparent;    /* но изначально невидимое */
              text-decoration-thickness: 1px;        /* толщина линии */
              text-underline-offset: 3px;            /* небольшой отступ от текста */
              transition: text-decoration-color 0.3s ease; /* плавное появление/исчезновение */
         }

         .categ_all a:hover {
              text-decoration-color: #181818;
         }


         /* ===========  ARROWS  ===========  */

    /* Контейнер-оверлей для навигационных кнопок */
    .categ_nav_overlay {
      position: relative;
            width: 92px;
            height: 42px;
      pointer-events: none; /* оверлей не блокирует клики */
    }
    .categ_nav_overlay .categ_nav {
      pointer-events: auto;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 42px;
      height: 42px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      z-index: 10;
    }
    .categ_nav_overlay .categ_nav_left {
      left: 0px;
      background-image: url("../img/category/arrow_l.png");
    }
    .categ_nav_overlay .categ_nav_left::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: url("../img/category/arrow_l_hover.png");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .categ_nav_overlay .categ_nav_left:hover::after {
      opacity: 1;
    }
    .categ_nav_overlay .categ_nav_right {
      right: 0px;
      background-image: url("../img/category/arrow_r.png");
    }
    .categ_nav_overlay .categ_nav_right::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: url("../img/category/arrow_r_hover.png");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .categ_nav_overlay .categ_nav_right:hover::after {
      opacity: 1;
    }


    /* =====  MEDIA  =====  */
    @media (max-width: 600px) {
    .categ_nav_overlay {
      display: none;
    }
    }


         /* ===========  TOPIC  ===========  */

         .categ_topic_cont {
            display: flex;
            flex-direction: row; /* Размещение элементов по горизонтали */
            justify-content: flex-start; /* Выровнять элементы по верхнему краю */
            gap: 33px;
            max-width: 1154px;
              overflow-x: auto;                  /* для работы горизонтального скролла */
              scroll-behavior: smooth;      /* для работы горизонтального скролла */
                -webkit-overflow-scrolling: touch; /* инерционная прокрутка в iOS */
                touch-action: pan-x pan-y;              /* явно разрешить тач-скролл */
         }

         .categ_topic_cont::-webkit-scrollbar {
            display: none;   /* СКРЫТЬ SCROLL BAR - Chrome, Safari, Edge */
         }


         .categ_topic {
            display: flex;
            flex-direction: column; /* Размещение элементов по вертикали */
            justify-content: flex-start; /* Выровнять элементы по верхнему краю */
            width: 323.5px;
            margin-top: 0px;
            margin-bottom: 0px;
         }

         .categ_topic_img {
            width: 263.5px;
            height: 198px;
            overflow: hidden; /* Скрывает части изображения, выходящие за рамки */
            position: relative; /* Для правильного позиционирования изображения */
            flex-shrink: 0; /* Препятствует сжатию изображения */
            border-radius: 4px;
         }

         .categ_topic_img img {
            width: 100%; /* Растягиваем изображение по ширине контейнера */
            height: 100%; /* Растягиваем изображение по высоте контейнера */
            object-fit: cover; /* Сохраняет соотношение сторон, обрезая лишнее */
            position: absolute; /* Убирает влияние размеров изображения на контейнер */
            top: 50%; /* Центрируем по вертикали */
            left: 50%; /* Центрируем по горизонтали */
            transform: translate(-50%, -50%); /* Сдвигаем для точного центрирования */
                transition: transform 0.3s ease;  /* Увеличение при ховере */
         }

         .categ_topic_img:hover img {
                transform: translate(-50%, -50%) scale(1.03);  /* Увеличение при ховере */
         }


         /* ======  Tag  ======  */

         .categ_topic_tag {
            display: flex;
            align-items: center;
            align-items: center;       /* центрирование по вертикали */
            cursor: pointer;
            margin-top: 20px;
            margin-bottom: 11px;
         }

         .categ_topic_tag_square {
            width: 9.5px;
            height: 9.5px;
            border-radius: 0px;
            background-color: #d42121;
            margin-right: 6.5px;
            transition: width 0.3s ease; /* плавное изменение ширины */
         }
         
         .categ_topic_tag:hover .categ_topic_tag_square {
            width: 5px;    /* При ховере по контейнеру квадратик сжимается */
         }

         .categ_topic_tag_txt {
            font-family: Helvetica, Arial, sans-serif;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
            color: #181818;
         }


         /* ======  Title  ======  */

        .categ_topic_title {
            font-family: Exo-Black;
            text-align: left;
            font-size: 21.4px;
            font-weight: normal;
            line-height: 27.5px;
            color: #181818;
                display: block; /* Позволяет тексту вести себя как блочный элемент */
                max-height: calc(27.5px * 3); /* Ограничиваем высоту N строками */
                overflow: hidden; /* Обрезаем лишний текст */
               transition: transform 0.3s ease;
        }

        .categ_topic_title:hover {
               transform: translateX(2px);
        }

        .categ_topic_title a {
            color: #181818;
            text-decoration-line: underline;       /* всегда подчеркивание */
            text-decoration-color: transparent;    /* но изначально невидимое */
            text-decoration-thickness: 1.5px;        /* толщина линии */
            text-underline-offset: 2px;            /* небольшой отступ от текста */
            transition: text-decoration-color 0.3s ease; /* плавное появление/исчезновение */
        }

        .categ_topic_title a:hover {
            text-decoration-color: #181818;
        }


         /* ======  Info  ======  */

         .categ_topic_info {
            display: flex;
            flex-direction: row; /* Размещение элементов по горизонтали */
            justify-content: flex-start; /* Выровнять элементы по верхнему краю */
            height: auto;
            width: 100%;
            margin-top: 13px;
            margin-bottom: 7px;
         }


         .categ_topic_info_author {
            font-family: Helvetica, Arial, sans-serif;
            text-align: left;
            font-size: 10.8px;
            font-weight: bold;
            text-transform: uppercase;
            color: #434343;
         }

         .categ_topic_info_author a {
            color: #434343;
            text-decoration-line: underline;       /* всегда подчеркивание */
            text-decoration-thickness: 0.5px;        /* толщина линии */
            text-underline-offset: 2.5px;            /* небольшой отступ от текста */
            text-decoration-color: #434343;
            transition: text-decoration-color 0.3s ease; /* плавное появление/исчезновение */
         }

         .categ_topic_info_author a:hover {
            color: #434343;
            text-decoration-color: transparent; 
         }


         .categ_topic_info_divider {
            width: 2px;
            height: 1.5px;
            background-color: #434343;
            margin-top: 6px;
            margin-left: 6px;
            margin-right: 6px;
         }

         .categ_topic_info_date {
            font-family: Helvetica, Arial, sans-serif;
            text-align: left;
            font-size: 10.8px;
            font-weight: bold;
            color: #434343;
            margin-bottom: 0px;
            text-transform: uppercase;
         }


         /* ======  Related  ======  */

         .categ_topic_line {
            max-width: 263.5px;
            height: 0.5px;
            background-color: #d0d0d0;
            margin-top: 10px;
            margin-bottom: 10px;
         }


        .categ_topic_related_title {
            font-family: Exo-Bold;
            text-align: left;
            font-size: 15.8px;
            font-weight: normal;
            line-height: 23px;
            color: #181818;
                display: block; /* Позволяет тексту вести себя как блочный элемент */
                max-height: calc(23px * 2); /* Ограничиваем высоту N строками */
                overflow: hidden; /* Обрезаем лишний текст */
               transition: transform 0.3s ease;
        }

        .categ_topic_related_title:hover {
               transform: translateX(2px);
        }

        .categ_topic_related_title a {
            color: #181818;
            text-decoration-line: underline;       /* всегда подчеркивание */
            text-decoration-color: transparent;    /* но изначально невидимое */
            text-decoration-thickness: 1.5px;        /* толщина линии */
            text-underline-offset: 2px;            /* небольшой отступ от текста */
            transition: text-decoration-color 0.3s ease; /* плавное появление/исчезновение */
        }

        .categ_topic_related_title a:hover {
            text-decoration-color: #181818;
        }





