/* ==== main.css (глобальная часть, без @import) ==== */

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

#root {
  height: 100%;
}

html {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height: 100%;
  color-scheme: light; /* фиксируем только светлую схему */
  /* Тестовый стиль для проверки HMR - измените цвет фона для теста */
  background-color: #ffffff;
  /* Резервируем место под вертикальный скроллбар, чтобы при переходе
     между страницами с/без прокрутки (например, /rag без скролла)
     контент не «прыгал» по горизонтали. */
  scrollbar-gutter: stable;
}

body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  color: #231F20;
  height: 100%;
  overflow-x: hidden; /* предотвращение горизонтальной прокрутки */
}

/*
  Keep УЭП sidebar toggles above standalone info-ui layouts.
  This mirrors the main app override so plugin screens do not cover the toggle.
*/
.hk-sidebar-togglable {
  z-index: 1100 !important;
}

.taskboardapp-wrap .taskboardapp-content .taskboardapp-detail-wrap header.taskboard-header {
  z-index: 100;
  isolation: isolate;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden],
template {
  display: none;
}
a {
  background: transparent;
  outline: none;
  text-decoration: none;
  color: #369D8C;
  transition: all .2s linear;
}
a:active,
a:hover {
  outline: 0;
}
a:hover {
  text-decoration: underline;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
mark {
  color: #000;
  background: #ff0;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sup {
  top: -.5em;
}
sub {
  bottom: -.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
hr {
  height: 0;
  box-sizing: content-box;
}
pre {
  overflow: auto;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  filter: none;
}
button {
  overflow: visible;
  outline: none;
  border: none;
  background: transparent;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}
input {
  line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  box-sizing: content-box;
  -webkit-appearance: textfield;
  appearance: textfield;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
fieldset {
  padding: 0.35em 0.625em 0.75em;
  margin: 0 2px;
  border: 1px solid #c0c0c0;
}
legend {
  padding: 0;
  border: 0;
}
input,
textarea {
  outline: none;
}
textarea {
  overflow: auto;
}
optgroup {
  font-weight: bold;
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
td,
th {
  padding: 0;
}
/* CSS HMR Test */
.test-hmr-element {
}

body {
}

/* Еще один тест HMR */
body {
}

.test-hmr-element {
}
/* ==== assets/styles/variables.css ==== */
/* Глобальные CSS переменные для проекта INFO_AI */

:root {
  /* Цвета проекта */
  --ai-primary: #006655;
  --ai-secondary: #369D8C;
  --ai-text: #231F20;
  --ai-text-light: #606060;
  --ai-text-lighter: #828282;
  --ai-border: #D9D9D9;
  --ai-border-light: #B3B3B3;
  --ai-bg-light: #f5f5f5;
  
  /* Системные цвета */
  --ai-success: #2e7d32;
  --ai-warning: #ed6c02;
  --ai-error: #d32f2f;
  --ai-info: #0288d1;
  
  /* Размеры */
  --header-height: 50px;
  --sidebar-width: 300px;
  --content-max-width: 1166px;
  --border-radius: 4px;
  
  /* Отступы */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Тени */
  --shadow-light: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
  --shadow-medium: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
  
  /* Брейкпоинты (для использования в calc()) */
  --breakpoint-mobile: 460px;
  --breakpoint-tablet: 720px;
  --breakpoint-small-desktop: 830px;
  --breakpoint-desktop: 1085px;
  --breakpoint-large-desktop: 1200px;
  
  /* Z-индексы */
  --z-header: 999;
  --z-drawer: 1200;
  --z-modal: 1300;
  --z-snackbar: 1400;
  --z-tooltip: 1500;
  
  /* Шрифты */
  --font-family-main: "Roboto", "Helvetica", "Arial", sans-serif;
  --font-family-icons: "Material Icons";
  
  /* Переходы */
  --transition-fast: 0.2s linear;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}
/* ==== assets/fonts/MaterialIcons/stylesheet.css ==== */
@font-face {
  font-family: 'Material Icons';
  src: url('/site-assets/fonts/MaterialIcons-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  /* block: пока шрифт грузится, лигатуры невидимы — иначе вместо иконки
     на миг проступает её имя текстом (picture_as_pdf). */
  font-display: block;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
/* ==== assets/styles/components.css ==== */
.content {
  width: 100%;
  max-width: 1166px;
  padding: 0 20px;
  margin: 0 auto;
}

@media (max-width: 1085px) {
  .content {
    padding: 0 12px;
  }
}

.layout {
  background-color: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
}

.layout__content {
  flex: 1 1 auto;
}

.layout__wrap {
  flex: 1 1 auto;
  display: flex;
}

.layout__wrap > .sidebar {
  margin-right: 50px;
}

.layout__wrap-left {
  flex: 1 1 auto;
  overflow: hidden;
}

/* ===== ХЕДЕР ===== */
.header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #006655;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  position: relative;
}

@media (max-width: 1085px) {
  .header__wrap {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

.header__links-list,
.header__socials-list {
  list-style: none;
  display: flex;
  align-items: center;
}

.header__links-item {
  display: flex;
  align-items: center;
}

.header__links-item:not(:last-child) {
  margin-right: 46px;
}

.header__links-list_center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  max-width: calc(100% - 260px);
  overflow: hidden;
  white-space: nowrap;
}

.header__links-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: red;
  border-radius: 50%;
  margin-right: 6px;
}

.header__links-indicator._active {
  background-color: lightgreen;
}

.header__link {
  font-size: 14px;
  line-height: 16px;
  color: #606060;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s linear;
}

.header__link:hover {
  color: #006655;
  text-decoration: none;
}

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.header-notification {
  position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #606060; cursor: pointer;
  transition: color .2s linear, background-color .2s linear;
}
.header-notification[hidden] { display: none; }
.header-notification:hover { background: #f0f7f5; color: #006655; }
.header-notification:focus-visible { outline: 2px solid #006655; outline-offset: 2px; }
.header-notification__icon { width: 18px; height: 18px; }
.header-notification__dot {
  position: absolute; top: 2px; right: 2px; display: none; width: 12px; height: 12px;
  border: 2px solid #fff; border-radius: 50%; background: #dc2626;
}
.header-notification._unread .header-notification__dot { display: block; animation: header-notification-pulse 1.15s ease-in-out infinite; }
@keyframes header-notification-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}

.header__ai-link {
  background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
  color: white !important;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-weight: 500;
  margin: 0 16px;
  transition: all 0.3s ease;
}

.header__ai-link:hover {
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.header__socials-item {
  line-height: 1;
}

.header__socials-item:not(:last-child) {
  margin-right: 17px;
}

.header__menu-btn {
  margin-left: -10px !important;
}

/* Стили для новой иконки гамбургера */
.header__hamburger {
  margin-left: -8px !important;
  order: -1; /* Позиционируем слева */
}

/* Иконка профиля */
.header__profile-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.header__modal-button {
  display: block !important;
  margin: 24px auto 0 !important;
}

/* ===== ФУТЕР ===== */
.footer {
  background-color: #006655;
  padding: 18px 0;
}

.footer__wrap {
  display: flex;
  align-items: center;
}

@media (max-width: 460px) {
  .footer__wrap {
    display: block;
  }
}

.footer__socials-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 460px) {
  .footer__socials-list {
    justify-content: center;
  }
}

.footer__socials-item:not(:last-child) {
  margin-right: 17px;
}

.footer__text {
  font-size: 14px;
  color: #fff;
}

.footer__text:last-child {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 460px) {
  .footer__text {
    margin: 0;
    text-align: center !important;
  }
  
  .footer__text:first-child {
    margin-bottom: 8px;
  }
}

/* ===== КНОПКИ ===== */
.custom-button {
  padding: 11px 38px !important;
  background-color: #369D8C !important;
  text-transform: none !important;
  color: #fff !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 16px !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s linear;
}

.custom-button:disabled {
  background-color: #f5f5f5 !important;
  border: 1px solid #ebebeb !important;
  color: #d3d3d3 !important;
  cursor: default;
  box-shadow: none;
}

.custom-button._grey {
  background-color: #AFAFAF !important;
  color: #3D3D3D !important;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs__link {
  font-size: 14px;
  color: #6B7280; /* Серый цвет */
  text-decoration: none;
  transition: color .2s linear;
}

.breadcrumbs__link:hover {
  text-decoration: none; /* Убираем подчеркивание */
  color: #4B5563; /* Более темный серый при hover */
}

.breadcrumbs__text {
  font-size: 14px;
  color: #006655;
}

/* ===== БЛОКИ КАТЕГОРИЙ ===== */
.category-block:not(:last-child) {
  margin-bottom: 48px;
}

@media (max-width: 1085px) {
  .category-block:not(:last-child) {
    margin-bottom: 24px;
  }
}

.category-block__title {
  display: inline-block;
  color: #231f20;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 17px;
  margin-bottom: 16px;
  min-height: 17px;
  transition: color .2s linear;
}

.category-block__title:hover {
  color: #006655;
}

.category-block__list {
  list-style: none;
  columns: 2 auto;
  column-gap: 32px;
}

@media (max-width: 720px) {
  .category-block__list {
    columns: auto;
  }
}

.category-block__item {
  break-inside: avoid-column;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  margin-bottom: 12px;
}

.category-block__marker {
  align-items: center;
  align-self: start;
  color: #606060;
  display: flex;
  height: 17px;
  justify-content: center;
  width: 16px;
}

.category-block__marker svg {
  display: block;
}

.category-block__bullet {
  background-color: #606060;
  border-radius: 50%;
  display: block;
  width: 5px;
  height: 5px;
}

.category-block__link {
  display: block;
  font-size: 14px;
  line-height: 17px;
  color: #606060;
  text-decoration: none;
  transition: color .2s linear;
}

.category-block__link:hover {
  color: #006655;
  text-decoration: none;
}

/* ===== ПОДДЕРЖКА ===== */
.support {
  padding: 35px 60px;
  border: 1px solid #D9D9D9;
  background: url("/site-assets/img/support-bg.svg") no-repeat center right 60px;
}

@media (max-width: 720px) {
  .support {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .support {
    padding: 32px 12px;
  }
}

.support__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 20px;
}

@media (max-width: 460px) {
  .support__title {
    font-size: 18px;
  }
}

.support__text {
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 26px;
}

@media (max-width: 720px) {
  .support__text {
    text-align: center;
  }
}

@media (max-width: 460px) {
  .support__text {
    font-size: 14px;
  }
}

.support__button {
  text-decoration: none !important;
  display: inline-block;
  color: #fff;
  background-color: #369D8C;
  border-radius: 4px;
  padding: 11px 38px;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  transition: all 0.2s linear;
}

/* ===== ФАЙЛОВЫЕ ССЫЛКИ ===== */
.file-link {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px;
  text-decoration: none !important;
  color: #606060;
  transition: color .2s linear;
}

.file-link:hover {
  color: #006655;
}

.file-link svg {
  width: 54px;
  height: 54px;
  margin-bottom: 3px;
}

.file-link span {
  font-size: 12px;
  line-height: 15px;
  word-break: break-all;
}

/* ===== ПОИСК ===== */
.search-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin: 32px 0;
}

.search-page__content {
  padding: 24px 0;
}

@media (max-width: 1085px) {
  .search-page__content {
    padding-top: 0;
  }
}

.search-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

@media (max-width: 1085px) {
  .search-page__top {
    margin-bottom: 32px;
  }
}

.search-page__count {
  font-size: 14px;
}

/* ===== ПОЛЬЗОВАТЕЛЬСКИЙ ЛОГИН ===== */
.user-login .MuiButtonBase-root {
  padding: 0 !important;
}

.user-login .MuiAvatar-root {
  width: 36px;
  height: 36px;
}

/* ===== СОРТИРОВКА ПО БУКВАМ ===== */
.sort-by-letter {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .sort-by-letter {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.sort-by-letter__letter {
  color: #606060;
  padding: 5px;
  cursor: pointer;
  transition: color .2s linear;
}

.sort-by-letter__letter:hover {
  color: #006655;
}

.sort-by-letter__letter:first-child {
  padding-left: 0;
}

.sort-by-letter__letter:last-child {
  padding-right: 0;
}

/* ===== УТИЛИТЫ ===== */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЯ MUI ===== */
.MuiSvgIcon-root {
  color: #fff !important;
}

.footer__socials-item .MuiSvgIcon-root {
  line-height: 1;
  height: 18px !important;
  width: auto !important;
  color: #fff !important;
}

.header__socials-item a .MuiSvgIcon-root {
  line-height: 1;
  height: 18px !important;
  width: auto !important;
  color: #828282 !important;
}

/* ===== ФУТЕР ===== */
.footer {
  background-color: var(--ai-primary);
  padding: 18px 0;
  min-height: 54px; /* Фиксированная минимальная высота как в оригинале */
}

.footer__wrap {
  display: flex;
  align-items: center;
}

@media (max-width: 460px) {
  .footer__wrap {
    display: block;
  }
}

.footer__socials-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

@media (max-width: 460px) {
  .footer__socials-list {
    justify-content: center;
  }
}

.footer__socials-item:not(:last-child) {
  margin-right: 17px;
}

.footer__socials-item svg {
  line-height: 1;
  height: 18px !important;
  width: auto !important;
  color: #fff !important;
  transition: color 0.2s ease;
}

/* .footer__socials-item a:hover svg {
  color: var(--ai-200) !important;
} */

.footer__text {
  font-size: 14px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.footer__text:last-child {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 460px) {
  .footer__text {
    margin: 0;
    text-align: center !important;
  }
  
  .footer__text:first-child {
    margin-bottom: 18px;
  }
}

.footer__text-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__text-link:hover {
  color: var(--ai-200);
  text-decoration: underline;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.main-page {
  padding-bottom: 50px;
}

@media (max-width: 1085px) {
  .main-page {
    padding-bottom: 12px;
  }
}

.main-page__header-img {
  display: block;
  width: 100%;
}

.main-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 70px;
}

@media (max-width: 1085px) {
  .main-page__title {
    margin-bottom: 32px;
  }
}

.main-page__categories {
  display: flex;
  flex-wrap: wrap;
  margin-right: -35px;
}

@media (max-width: 830px) {
  .main-page__categories {
    margin-right: -12px;
  }
}

.main-page .support {
  max-width: 774px;
  margin: 30px auto 0;
}

@media (max-width: 1085px) {
  .main-page .support {
    margin-top: 0;
  }
}

/* ===== КАРТОЧКИ КАТЕГОРИЙ ===== */
.category-card {
  text-decoration: none !important;
  display: flex;
  width: calc(33.33% - 35px);
  min-height: 130px;
  border: 1px solid var(--ai-primary);
  margin: 0 35px 20px 0;
  padding: 25px 118px 25px 20px;
  transition: all 0.2s linear;
  background-repeat: no-repeat;
  background-position: center right 20px;
}

/* Фоновые изображения для категорий */
.category-card._1 {
  background-image: url("/site-assets/img/1.svg");
}
.category-card._13 {
  background-image: url("/site-assets/img/13.svg");
}
.category-card._300 {
  background-image: url("/site-assets/img/300.svg");
}
.category-card._301 {
  background-image: url("/site-assets/img/301.svg");
}
.category-card._306 {
  background-image: url("/site-assets/img/306.svg");
}
.category-card._307 {
  background-image: url("/site-assets/img/307.svg");
}
.category-card._335 {
  background-image: url("/site-assets/img/335.svg");
}
.category-card._345 {
  background-image: url("/site-assets/img/345.svg");
}
.category-card._346 {
  background-image: url("/site-assets/img/346.svg");
}
.category-card._349 {
  background-image: url("/site-assets/img/349.svg");
}
.category-card._350 {
  background-image: url("/site-assets/img/350.svg");
}
.category-card._351 {
  background-image: url("/site-assets/img/351.svg");
}
.category-card._352 {
  background-image: url("/site-assets/img/352.svg");
}
.category-card._353 {
  background-image: url("/site-assets/img/353.svg");
}
.category-card._354 {
  background-image: url("/site-assets/img/354.svg");
}
.category-card._355 {
  background-image: url("/site-assets/img/355.svg");
}
.category-card._356 {
  background-image: url("/site-assets/img/356.svg");
}
.category-card._357 {
  background-image: url("/site-assets/img/357.svg");
}
.category-card._358 {
  background-image: url("/site-assets/img/358.svg");
}
.category-card._411 {
  background-image: url("/site-assets/img/411.svg");
}
.category-card._435 {
  background-image: url("/site-assets/img/435.svg");
}
.category-card._644 {
  background-image: url("/site-assets/img/644.svg");
}

@media (max-width: 830px) {
  .category-card {
    margin: 0 12px 12px 0;
    width: calc(33.33% - 12px);
  }
}

@media (max-width: 780px) {
  .category-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 530px) {
  .category-card {
    width: 100%;
  }
}

.category-card:hover {
  border-bottom: 4px solid #FF8A00;
  margin-top: -4px;
}

.category-card:hover .category-card__title {
  color: var(--ai-primary);
}

.category-card__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #606060;
  margin: 0;
  transition: color 0.2s linear;
}

/* ===== ГЛОБАЛЬНЫЙ ПОИСК (moved to src/components/GlobalSearch/GlobalSearch.css) ===== */
/*
.global-search {
  padding: 52px 0 60px;
  position: relative;
  z-index: 1600;
}

.global-search__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1085px) {
  .global-search { padding: 24px 0 32px; }
}

.global-search__wrap {
  width: 100%;
  max-width: 765px;
  margin: 0 auto;
  position: relative;
}

.global-search__form {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.global-search__input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ai-border-light);
  border-radius: 50px;
  overflow: visible;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 48px;
  contain: layout;
}

.global-search__input-container:focus-within {
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(0,102,85,0.1);
}

.global-search__logo {
  position: absolute;
  left: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; z-index: 10; pointer-events: none;
}

.global-search__search-input {
  flex: 1; width: 100%; padding: 12px 128px 12px 50px;
  border: none; outline: none; font-size: 16px; line-height: 1.5;
  color: var(--ai-text); background: transparent; transition: all var(--transition-fast);
  border-radius: 50px;
}

.global-search:not(._focused) .global-search__search-input { padding-right: 50px; }

.global-search__search-input::placeholder { color: var(--ai-text-lighter); opacity: 1; }

.global-search__clear-btn {
  position: absolute; right: 83px; top: 50%; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: transparent; border: none; border-radius: 50%; color: var(--ai-text-lighter);
  cursor: pointer; opacity: .7; z-index: 2;
}

.global-search:not(._focused) .global-search__clear-btn { right: 6px; }

.global-search__clear-btn:hover { background: rgba(0,0,0,.05); color: var(--ai-text); opacity: 1; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }

.global-search__clear-icon { width: 20px; height: 20px; }

.global-search__search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; min-width: 72px; height: 38px; background: var(--ai-primary);
  border: none; color: #fff; cursor: pointer; border-radius: 20px; font-size: 14px; font-weight: 500; padding: 0 16px; z-index: 1;
}

.global-search__search-btn:hover:not(:disabled) { box-shadow: 0 4px 8px rgba(0,102,85,.2); }
.global-search__search-btn:active:not(:disabled) { box-shadow: 0 2px 4px rgba(0,102,85,.2); }
/* disabled (менее 3 символов) — та же оранжевая кнопка на opacity .5, как в
   референсе (GlobalSearch.css). Раньше здесь был серый фон, из-за чего короткий
   запрос красил «Найти» в серый вместо бледно-оранжевого. */
.global-search__search-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.global-search__search-btn .material-icons { font-size: 16px; }

@media (max-width: 768px) {
  .global-search { width: 100%; padding: 24px 0 32px; }
  .global-search__wrap { width: 100%; max-width: none; padding: 0; }
  .global-search__input-container { height: 44px; width: 100%; max-width: none; }
  .global-search__search-input { font-size: 16px; padding: 12px 66px 12px 42px; }
  .global-search:not(._focused) .global-search__search-input { padding-right: 36px; }
  .global-search__logo { width: 34px; height: 34px; }
  .global-search__search-btn { min-width: 64px; height: 36px; font-size: 13px; transform: translateY(-50%); right: 2px; }
  .global-search__clear-btn { width: 32px; height: 32px; right: 58px; }
  .global-search:not(._focused) .global-search__clear-btn { right: 2px; }
  .global-search__clear-icon { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .global-search { width: 100%; padding: 20px 0 28px; }
  .global-search__wrap { padding: 0 4px 0 2px; width: 100%; max-width: none; }
  .global-search__input-container { width: 100%; max-width: none; }
  .global-search__search-input { padding: 10px 54px 10px 36px; font-size: 16px; }
  .global-search:not(._focused) .global-search__search-input { padding-right: 30px; }
  .global-search__logo { width: 34px; height: 34px; left: 14px; }
  .global-search__search-btn { min-width: 56px; height: 32px; font-size: 12px; right: 1px; }
  .global-search__clear-btn { width: 26px; height: 26px; right: 52px; }
  .global-search:not(._focused) .global-search__clear-btn { right: 1px; }
}

.global-search._compact { padding: 16px 0; }
.global-search._compact .global-search__input-container { height: 40px; }
.global-search._compact .global-search__search-input { padding: 8px 72px 8px 40px; font-size: 14px; }
.global-search._compact .global-search__logo { width: 24px; height: 24px; }
.global-search._compact .global-search__search-btn { min-width: 60px; height: 32px; font-size: 12px; transform: translateY(-50%); }

.global-search._loading .global-search__search-btn { pointer-events: none; }
.global-search._loading .global-search__search-btn .material-icons { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* ===== ПОДДЕРЖКА ===== */
.support {
  padding: 35px 60px;
  border: 1px solid #D9D9D9;
  background: url("/site-assets/img/support-bg.svg") no-repeat center right 60px;
}

@media (max-width: 720px) {
  .support {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .support {
    padding: 32px 12px;
  }
}

.support__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 20px;
}

@media (max-width: 460px) {
  .support__title {
    font-size: 18px;
  }
}

.support__text {
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  color: #333333;
  margin-bottom: 26px;
}

@media (max-width: 720px) {
  .support__text {
    text-align: center;
  }
}

@media (max-width: 460px) {
  .support__text {
    font-size: 14px;
  }
}

.support__button {
  text-decoration: none !important;
  display: inline-block;
  color: #fff;
  background-color: var(--ai-secondary);
  border-radius: 4px;
  padding: 11px 38px;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  transition: background-color 0.2s ease;
}

.support__button:hover {
  background-color: var(--ai-primary);
}

/* Стили для модального окна создания заявки */
.support__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.support__modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.support__modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.support__modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.support__modal-close:hover {
  background-color: #f3f4f6;
}

.support__form {
  padding: 20px;
}

.support__field {
  margin-bottom: 16px;
}

.support__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.support__input,
.support__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.support__input:focus,
.support__textarea:focus {
  outline: none;
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.support__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.support__buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.support__button-cancel,
.support__button-submit {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.support__button-cancel {
  background-color: #f3f4f6;
  color: #374151;
}

.support__button-cancel:hover:not(:disabled) {
  background-color: #e5e7eb;
}

.support__button-submit {
  background-color: var(--ai-secondary);
  color: white;
}

.support__button-submit:hover:not(:disabled) {
  background-color: var(--ai-primary);
}

.support__button-submit:disabled,
.support__button-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .support__modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .support__buttons {
    flex-direction: column;
  }
  
  .support__button-cancel,
  .support__button-submit {
    width: 100%;
  }
}

.support-modal[hidden] {
  display: none;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.support-modal-open {
  overflow: hidden;
}

.support-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.support-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.support-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 20px 72px 20px 40px;
  border-radius: 20px 20px 0 0;
  background: #006655;
  box-sizing: border-box;
}

.support-modal__title {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 800;
}

.support-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f6f8;
  color: #374151;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.support-modal__close:hover {
  color: var(--ai-primary);
}

.support-modal__close-icon {
  width: 20px;
  height: 20px;
}

.support-modal__content {
  padding: 22px 40px 24px;
  box-sizing: border-box;
}

.support-modal__field {
  margin-bottom: 20px;
}

.support-modal__field_file {
  margin-bottom: 18px;
}

.support-modal__label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.support-modal__input,
.support-modal__textarea {
  display: block;
  width: 100%;
  border: 2px solid #d1d7e0;
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  box-sizing: border-box;
}

.support-modal__input::placeholder,
.support-modal__textarea::placeholder {
  color: #777777;
}

.support-modal__input {
  height: 48px;
  padding: 0 14px;
}

.support-modal__textarea {
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
}

.support-modal__input:focus,
.support-modal__textarea:focus,
.support-modal__file-button:focus-within {
  outline: none;
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 102, 0.12);
}

.support-modal__file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 182px;
  height: 48px;
  border: 2px solid #d1d7e0;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

.support-modal__file-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.support-modal__file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-modal__file-name {
  display: inline-block;
  max-width: min(360px, 100%);
  margin-left: 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.3;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.support-modal__error,
.support-modal__success {
  margin: -12px 0 22px;
  font-size: 14px;
  line-height: 1.4;
}

.support-modal__error {
  color: #b42318;
}

.support-modal__success {
  color: var(--ai-primary);
}

.support-modal__actions {
  display: flex;
  justify-content: center;
}

.support-modal__submit {
  width: 174px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #006655;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.support-modal__submit:not(:disabled):hover {
  background: #005447;
  transform: translateY(-1px);
}

.support-modal__submit:disabled {
  background: #a8b0bd;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .support-modal__dialog {
    width: min(600px, calc(100vw - 32px));
  }

  .support-modal__header {
    min-height: 76px;
    padding: 20px 72px 20px 32px;
  }

  .support-modal__title {
    font-size: 24px;
  }

  .support-modal__content {
    padding: 22px 32px 24px;
  }

  .support-modal__close {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  .support-modal__field {
    margin-bottom: 20px;
  }
}

@media (max-width: 520px) {
  .support-modal {
    align-items: center;
    padding: 10px;
  }

  .support-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .support-modal__header {
    min-height: 72px;
    padding: 18px 66px 18px 24px;
    border-radius: 18px 18px 0 0;
  }

  .support-modal__title {
    font-size: 22px;
  }

  .support-modal__close {
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
  }

  .support-modal__content {
    padding: 20px 24px 24px;
  }

  .support-modal__textarea {
    min-height: 120px;
  }

  .support-modal__file-name {
    display: block;
    margin: 12px 0 0;
  }

  .support-modal__submit {
    width: 100%;
    min-height: 50px;
    font-size: 18px;
  }
}

/* ===== ЗАГРУЗКА ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.loading__wrap {
  text-align: center;
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--ai-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading__text {
  color: #606060;
  font-size: 16px;
  margin: 0;
}

/* ===== СТРАНИЦА ПОИСКА ===== */
.search-page {
  padding-bottom: 50px;
}

@media (max-width: 1085px) {
  .search-page {
    padding-bottom: 24px;
  }
}

.search-page__content {
  padding: 24px 0;
}

@media (max-width: 1085px) {
  .search-page__content {
    padding-top: 0;
  }
}

.search-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

@media (max-width: 1085px) {
  .search-page__top {
    margin-bottom: 32px;
  }
}

@media (max-width: 720px) {
  .search-page__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.search-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.search-page__count {
  font-size: 14px;
  color: var(--ai-text-light);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.search-card {
  border: 1px solid var(--ai-border);
  border-radius: var(--border-radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.search-card:hover {
  box-shadow: var(--shadow-light);
}

.search-card__title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ai-primary);
  margin: 0 0 16px 0;
}

.search-card__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ai-text);
  margin: 0;
}

.search-card__content img {
  max-width: 100% !important;
  height: auto !important;
}

.search-card__content ol, 
.search-card__content ul {
  list-style-position: inside;
}

.search-card__content td {
  padding: 12px !important;
}

.search-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--ai-text-light);
  font-size: 16px;
}

/* ==== assets/styles/forms.css ==== */
/* Стили для форм и UI элементов */

/* ===== ОБЩИЕ СТИЛИ ФОРМ ===== */
.form-field {
  margin-bottom: 32px;
}

.form-controls {
  text-align: center;
}

.form-success-title {
  font-weight: 500;
  margin-bottom: 32px;
}

/* ===== СТИЛИ ДЛЯ MUI КОМПОНЕНТОВ ===== */
.MuiTextField-root {
  width: 100% !important;
}

.MuiInputLabel-root {
  font-size: 14px !important;
  line-height: 16px !important;
  top: -4px;
}

.MuiInputBase-input {
  font-size: 14px !important;
  line-height: 16px !important;
  color: #333333 !important;
  height: auto !important;
}

.MuiInputBase-input:not(textarea) {
  padding: 12px 12px !important;
}

.Mui-focused:not(.Mui-error) {
  color: #006655 !important;
}

.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline {
  border-color: #006655 !important;
}

/* ===== СТИЛИ СТРАНИЦ ===== */
.page {
  padding-bottom: 50px;
}

@media (max-width: 1085px) {
  .page {
    padding-bottom: 24px;
  }
}

.page .breadcrumbs {
  margin: 24px 0 50px;
}

@media (max-width: 1085px) {
  .page .breadcrumbs {
    margin-bottom: 32px;
  }
}

.page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 32px;
}

.page__content {
  margin-bottom: 50px;
}

@media (max-width: 1085px) {
  .page__content {
    margin-bottom: 24px;
  }
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.main-page {
  padding-bottom: 50px;
}

@media (max-width: 1085px) {
  .main-page {
    padding-bottom: 12px;
  }
}

.main-page__header-img {
  display: block;
  width: 100%;
}

.main-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 70px;
}

@media (max-width: 1085px) {
  .main-page__title {
    margin-bottom: 32px;
  }
}

.main-page__categories {
  display: flex;
  flex-wrap: wrap;
  margin-right: -35px;
}

@media (max-width: 830px) {
  .main-page__categories {
    margin-right: -12px;
  }
}

.main-page .support {
  max-width: 774px;
  margin: 30px auto 0;
}

@media (max-width: 1085px) {
  .main-page .support {
    margin-top: 0;
  }
}

/* ===== СТАТЬИ ===== */
.article-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 32px;
}

.article-page__files {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  margin-right: -16px;
}

.article-page__files .file-link {
  margin-right: 16px;
}

.article-page__content {
  margin-bottom: 50px;
}

@media (max-width: 1085px) {
  .article-page__content {
    margin-bottom: 24px;
  }
}

.article-page__content ol, 
.article-page__content ul {
  list-style-position: inside;
}

.article-page__content a {
  color: #3366ff;
}

.article-page__content table {
  font-size: 14px;
}

.article-page__content table a {
  text-decoration: none;
  color: #231F20;
}

.article-page__content td {
  padding: 12px !important;
}

.article-page__content img {
  max-width: 100% !important;
  height: auto !important;
}

/* ===== ПОИСК ===== */
.search-card ol, 
.search-card ul {
  list-style-position: inside;
}

.search-card td {
  padding: 12px !important;
}

.search-card img {
  max-width: 100% !important;
  height: auto !important;
}

.search-card:not(:last-child) {
  /* Расстояние между карточками задаёт gap у .search-results__list;
     прежний margin складывался с ним и давал двойной отступ. */
  margin-bottom: 0;
}

/* ===== МОИ ВОПРОСЫ ===== */
.my-questions__user-name {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.my-questions__button {
  margin-bottom: 32px;
}

.my-questions__controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

@media (max-width: 450px) {
  .my-questions__controls {
    display: block;
  }
}

.my-questions__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

@media (max-width: 450px) {
  .my-questions__title {
    margin-bottom: 32px;
  }
}

.my-questions__filter {
  margin-bottom: 24px;
  min-height: auto;
}

.my-questions__filter-tab {
  text-transform: none;
  padding: 8px !important;
  min-width: auto;
  min-height: auto;
}

.my-questions__filter-tab.Mui-selected {
  color: #006655 !important;
}

.my-questions .MuiTabs-indicator {
  background-color: #006655 !important;
}

/* ===== СПРАВКА ===== */
.help-page__questions {
  list-style: none;
  padding: 0;
  margin-bottom: 36px;
}

.help-page__question:not(:last-child) {
  margin-bottom: 12px;
}

.help-page__question-link {
  display: block;
  padding: 12px;
  background-color: #eee;
  color: #606060;
  text-decoration: none !important;
  transition: all .2s linear;
}

.help-page__question-link:hover {
  background-color: #c0c0c0;
}

.help-page__articles {
  list-style: none;
  columns: 2 auto;
  column-gap: 32px;
  margin-bottom: 60px;
}

@media (max-width: 720px) {
  .help-page__articles {
    columns: auto;
    margin-bottom: 32px;
  }
}

.help-page__article {
  break-inside: avoid-column;
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.help-page__article:before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #606060;
  position: absolute;
  top: 11px;
  left: 3px;
}

.help-page__article-link {
  font-size: 14px;
  line-height: 17px;
  color: #606060;
  text-decoration: none;
  transition: color .2s linear;
}

.help-page__article-link:hover {
  color: #006655;
  text-decoration: none;
}

.help-page__solution {
  border: 1px solid #D9D9D9;
  padding: 35px 60px;
  margin-bottom: 32px;
}

@media (max-width: 460px) {
  .help-page__solution {
    padding: 32px 12px;
  }
}

.help-page__not-auth-text {
  margin-bottom: 24px;
}

/* ===== МЕНЮ САЙДБАР ===== */
.menu-sidebar {
  width: 300px;
  min-width: 300px;
  padding: 37px 25px 50px 0;
}

@media (max-width: 1085px) {
  .menu-sidebar {
    padding: 0 12px 12px;
  }
}

.menu-sidebar__logo {
  display: block;
  width: 230px;
  text-align: center;
  text-decoration: none !important;
  margin: 0 auto 32px;
}

.menu-sidebar__logo p {
  font-size: 27px;
  color: #000;
  text-align: left;
}

.menu-sidebar__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 16px;
}

.menu-sidebar__list {
  list-style: none;
}

.menu-sidebar__item {
  padding: 12px 0;
  border-bottom: 1px solid #B3B3B3;
}

.menu-sidebar__item:first-child {
  border-top: 1px solid #B3B3B3;
}

.menu-link {
  color: #333;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  transition: color .2s linear;
}

.menu-link:hover {
  color: #006655;
  text-decoration: none;
}

.menu-link.active {
  color: #006655;
}

.menu-link__list {
  list-style: none;
  padding-left: 8px;
}

.menu-link__item {
  padding-left: 16px;
  position: relative;
}

.menu-link__item:before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #606060;
  position: absolute;
  top: 11px;
  left: 3px;
}

.menu-link__item:not(:last-child) {
  margin-bottom: 10px;
}

.menu-link__item .menu-link {
  color: #606060;
  font-size: 14px;
  line-height: 18px;
}

.menu-link__item .menu-link:hover, 
.menu-link__item .menu-link.active {
  color: #006655;
}

/* ===== ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ ===== */
.language-switcher__item {
  cursor: pointer;
  text-transform: uppercase;
  color: #606060;
  font-size: 14px;
  line-height: 16px;
  transition: color .2s linear;
}

.language-switcher__item._active {
  color: #006655;
}

.language-switcher__divider {
  margin: 0 4px;
  color: #006655;
}
/* ==== components/Layout/Layout.css ==== */
/* Layout основные стили */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg, #fff);
}

.layout__container {
  display: flex;
  flex: 1;
  min-height: 0; /* для корректной работы flex */
  position: relative;
  width: 100%;
  max-width: 1166px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* На /rag оставляем ту же ширину контейнера, что и на главной (1166px),
   чтобы при переходе между страницами контент не «прыгал» вправо. */

/* На /rag фиксируем высоту страницы во весь экран и убираем внешний скролл —
   скроллится только список сообщений внутри чата, поле ввода всегда внизу. */
.layout--rag {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.layout--rag .layout__container--rag {
  flex: 1;
  min-height: 0;
}

.layout--rag .layout__main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.layout--rag .layout__content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Sidebar на /rag — без верхнего паддинга. На /rag в сайдбаре только
   логотип (CategoryMenu скрыт). */
.layout--rag .layout__sidebar {
  padding-top: 0;
}

/* На /rag оставляем логотип в естественной позиции под шапкой и не используем
   отрицательный translateY — иначе верх логотипа уезжает под фиксированный
   header (sidebar и так начинается с `top: var(--header-height)`).
   Берём суммарный отступ как на обычных страницах (sidebar 16px + logo 20px),
   только сайдбар на /rag без верхнего padding-а, поэтому всё 36px переносим
   в padding-top самого логотипа. Снизу повторяем зазор по умолчанию
   (20px padding + 24px margin = 44px), чтобы между логотипом и
   «ИСТОРИЯ ЧАТОВ» был тот же отступ, что и до «Категории» на обычных страницах. */
.layout--rag .layout__logo {
  justify-content: flex-start;
  padding: 36px 0 20px;
  margin: 0 0 24px;
}

/* Футер не показываем на странице чата — он мешает закреплённому полю ввода. */
.layout--rag > .footer {
  display: none;
}

/* На /rag максимально прижимаем блок GPT-версии к шапке.
   Отрицательный margin-top «вытаскивает» секцию вверх под фиксированную шапку,
   а z-index выше header (999) гарантирует, что переключатель будет виден поверх неё. */
.layout--rag .layout__search-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 40px;
  z-index: 1000;
  overflow: visible;
}

.layout--rag .layout__search-section .global-search,
.layout--rag .layout__search-section > * {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* На мобильных шапка узкая и GPT-переключатель пересекается с кнопкой «Войти»
   справа. Поэтому не «вытаскиваем» секцию GPT-версии в зону header — оставляем
   её под шапкой и возвращаем z-index ниже header'а. Также возвращаем секции
   ненулевую высоту/фон и снимаем translateY у формы — иначе GPT-блок вылезает
   из секции и сквозь него виден скроллящийся текст чата. */
@media (max-width: 768px) {
  .layout--rag .layout__search-section {
    position: relative;
    top: auto;
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    z-index: 20;
    background: var(--color-bg, #fff);
    overflow: visible;
  }

  .layout--rag .global-search._input-hidden .global-search__form {
    transform: none;
  }
}

@media (max-width: 1085px) {
  .layout__container {
    padding: 0 12px;
  }
}

/* Левая панель (sidebar).
   Flex-колонка фиксированной высоты во вьюпорте.
   Прокручивается только нижняя часть (.layout__sidebar-scroll); логотип
   сверху всегда виден и не уезжает при скролле списка категорий. */
.layout__sidebar {
  width: 300px;
  min-width: 300px;
  padding: 16px;
  box-sizing: border-box;
  position: sticky;
  top: var(--header-height, 50px);
  align-self: flex-start;
  margin-right: 50px;
  /* Полная высота вьюпорта минус хедер; сам сайдбар не скроллится. */
  height: calc(100vh - var(--header-height, 50px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Логотип — фиксированная «шапка» сайдбара, не уезжает при скролле. */
.layout__sidebar > .layout__logo {
  flex: 0 0 auto;
}

/* Скроллируемая часть: занимает всё оставшееся место под логотипом и при
   переполнении даёт собственную вертикальную прокрутку. Полоса скроллбара
   полностью скрыта — прокрутка работает колесом / тачем / клавишами. */
.layout__sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.layout__sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Логотип в sidebar */
.layout__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 24px;
}

.layout__logo-image {
  max-width: 250px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease-in-out;
}

.layout__logo-image:hover {
  transform: scale(1.05);
}

/* Навигационные ссылки в sidebar */
.layout__nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.layout__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary, #6b7280);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--color-surface, #f9fafb);
}

.layout__nav-link:hover {
  background: var(--color-primary-light, #eff6ff);
  color: var(--color-primary, #3b82f6);
}

.layout__nav-link.active {
  background: var(--color-primary, #3b82f6);
  color: white;
}

/* Правая панель (main content) */
.layout__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* для корректной работы flex */
  background: var(--color-bg, #fff);
}

/* Баннер для главной страницы */
.layout__banner {
  background: var(--color-bg, #fff);
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.layout__banner-content {
  width: 100%;
  text-align: center;
}

.layout__banner-img {
  width: 100%;
  max-width: 1166px;
  height: auto;
}

/* Секция поиска */
.layout__search-section {
  padding: 16px 0;
  background: var(--color-bg, #fff);
  /* border-bottom: 1px solid var(--color-border, #e0e0e0); */
  position: sticky;
  top: var(--header-height, 50px);
  z-index: 20;
  overflow: hidden;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.layout__search-section > * {
  max-width: var(--content-max-width, 1166px);
  margin: 0 auto;
  padding: 0 20px;
}

/* Примечание про ограничения ИИ на странице /rag —
   выводим отдельной строкой по центру под переключателем GPT-версии. */
.layout__rag-notice {
  display: block;
  max-width: 900px;
  margin: 4px auto 0;
  padding: 0 20px;
  color: var(--ai-text-lighter, #6c757d);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Основной контент */
.layout__content {
  flex: 1;
  overflow-y: auto;
  background: var(--color-bg, #fff);
}

/* Мобильная адаптация */
/* @media (max-width: 1085px) {
  .layout__search-section > * {
    padding: 0 0;
  }
  
  .layout__banner-content {
    padding: 0 0;
  }
} */

@media (max-width: 1024px) {
  .layout__sidebar {
    width: 280px;
    min-width: 280px;
    position: sticky;
    top: var(--header-height, 50px);
    align-self: flex-start;
    /* Та же логика, что на десктопе: фиксированный логотип + скролл списка. */
    height: calc(100vh - var(--header-height, 50px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .layout__container {
    flex-direction: column;
  }

  .layout__sidebar {
    width: 100%;
    min-width: auto;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    padding: 12px;
    position: static;
    display: block;
    overflow: visible;
  }

  /* На мобильной раскладке вся область шириной во весь экран и движется
     вместе со страницей — отдельная прокрутка списка не нужна. */
  .layout__sidebar-scroll {
    overflow: visible;
    min-height: auto;
  }
  
  .layout__main {
    width: 100%;
  }
  
  /* Увеличиваем ширину секции поиска на мобильных */
  .layout__search-section > * {
    padding: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .layout__search-section > * {
    padding: 0 6px 0 2px; /* Еще меньший правый отступ для маленьких экранов */
    max-width: none;
    width: 100%;
  }
  
  .layout__sidebar {
    padding: 10px;
    max-height: none;
    overflow: visible;
  }
}
/* ==== components/GlobalSearch/GlobalSearch.css ==== */
/* ===== GlobalSearch base styles (moved from components.css) ===== */
.global-search {
  padding: 20px 0 0;
  position: relative;
  z-index: 1600; /* Above overlay (1500) */
}

/* Overlay covering whole page when focused */
.global-search__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* Не блокируем клики */
}

.global-search__wrap {
  width: 100%;
  max-width: 776px;
  margin: 0 auto;
  position: relative;
}

/* На /rag поле ввода скрыто, поэтому растягиваем обёртку на всю ширину,
   чтобы блок GPT-версии можно было прижать к правому краю секции. */
.global-search._input-hidden .global-search__wrap {
  max-width: none;
}

.global-search__form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  isolation: isolate; /* Creates a new stacking context */
}

/* Когда поле ввода скрыто (например, на /rag) — переключатель GPT прижат к правому краю. */
.global-search._input-hidden .global-search__form {
  justify-content: flex-end;
  width: fit-content;
  margin-left: auto;
  transform: translateY(-20px);
}

.global-search__input-container {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ai-border-light);
  border-radius: 50px; /* Fully rounded corners */
  overflow: visible; /* Allow suggestions to overflow */
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 48px; /* Fixed height */
  contain: layout; /* Isolate layout changes */
}

.global-search__input-container:focus-within {
  border-color: var(--ai-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.1);
}

/* Статичный круглый логотип слева внутри поля. Декорация, не кликается. */
.global-search__chip-logo {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* External GPT-version block — справа от поля поиска.
   (i)+«GPT-версия» — отдельная группа без фона; справа отдельный
   маленький переключатель-«пилюля» со спарклом. */
.global-search__gpt-block {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.global-search__gpt-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ai-text);
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.global-search__gpt-info:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.global-search__gpt-info-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.7;
  flex: 0 0 auto;
}

.global-search__gpt-label {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: currentColor;
}

/* Маленький свитч: трек-«пилюля» + белый «бегунок» с синим спарклом.
   Off (default): бегунок слева. On: бегунок справа, трек тёмно-синий. */
.global-search__gpt-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #EEF6F1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.global-search__gpt-switch:hover {
  background: #E1EEE6;
}

.global-search__gpt-switch:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
}

.global-search__gpt-switch-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #006655;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.2s ease;
}

.global-search__gpt-block._on .global-search__gpt-switch {
  background: #D4ECDB;
}

.global-search__gpt-block._on .global-search__gpt-switch-thumb {
  left: calc(100% - 25px);
  background: #006655;
  color: #FFFFFF;
}

.global-search__gpt-switch-spark {
  width: 14px;
  height: 14px;
  display: block;
}

.global-search__search-input {
  flex: 1;
  width: 100%;
  /* Отступ слева под круглый логотип. */
  padding: 12px 128px 12px 52px;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ai-text);
  background: transparent;
  transition: background-color var(--transition-fast);
  border-radius: 50px;
}

/* Increase right padding when not focused (no search button) */
.global-search:not(._focused) .global-search__search-input {
  padding-right: 50px; /* More space for typing */
}

.global-search__search-input::placeholder {
  color: var(--ai-text-lighter);
  opacity: 1;
}

/* Clear button (cross) */
.global-search__clear-btn {
  position: absolute;
  right: 83px; /* Position when search button is present */
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--ai-text-lighter);
  cursor: pointer;
  opacity: 0.7;
  z-index: 2; /* Above search button */
}

/* When not focused – move clear button to the right edge */
.global-search:not(._focused) .global-search__clear-btn {
  right: 6px;
}

.global-search__clear-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ai-text);
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.global-search__clear-icon {
  width: 20px;
  height: 20px;
}

/* Search button with text "Найти" */
.global-search__search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 38px;
  background: #CC6118;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  z-index: 1; /* Below clear button */
}

.global-search__search-btn:hover:not(:disabled) {
  box-shadow: 0 4px 8px rgba(0, 102, 85, 0.2);
}

.global-search__search-btn:active:not(:disabled) {
  box-shadow: 0 2px 4px rgba(0, 102, 85, 0.2);
}

.global-search__search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.global-search__search-btn .material-icons {
  font-size: 16px;
}

/* Mobile adjustments */
/* ЕДИНЫЕ НАСТРОЙКИ: Те же значения позиционирования, что и в 480px для консистентности UI */
/* ПРИМЕЧАНИЕ: Эти стили дублируются ниже в блоке автодополнения (~546-578) */
@media (max-width: 768px) {
  .global-search {
    width: 100%;
    padding: 24px 0 0;
  }

  .global-search__wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  /* На мобильных переключатель GPT переезжает на отдельную строку под полем
     ввода и прижимается к правому краю — см. макет в задаче. */
  .global-search__form {
    flex-wrap: wrap;
    gap: 8px;
  }

  .global-search__input-container {
    height: 44px;
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
  }

  .global-search__search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 10px 105px 10px 46px;
  }

  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px; /* Same as 480px settings */
  }

  .global-search__chip-logo {
    width: 34px;
    height: 34px;
    left: 4px;
  }

  .global-search__gpt-block {
    font-size: 13px;
    gap: 8px;
    flex: 1 0 100%;
    justify-content: flex-end;
  }

  .global-search__search-btn {
    min-width: 64px;
    height: 36px;
    font-size: 13px;
    transform: translateY(-50%);
    right: 4px; /* Same as 480px settings */
  }

  .global-search__clear-btn {
    width: 32px;
    height: 32px;
    right: 75px; /* Same as 480px settings */
  }

  .global-search:not(._focused) .global-search__clear-btn {
    right: 8px; /* Same as 480px settings */
  }

  .global-search__clear-icon {
    width: 18px;
    height: 18px;
  }
}

/* Very small screens */
/* ЭТАЛОННЫЕ НАСТРОЙКИ: Исходные значения позиционирования, используемые во всех остальных медиа-запросах */
/* ПРИМЕЧАНИЕ: Эти стили дублируются ниже в блоке автодополнения (~580-610) */
@media (max-width: 480px) {
  .global-search {
    width: 100%;
    padding: 20px 0 0;
  }
  
  .global-search__wrap {
    width: 100%;
    max-width: none;
  }
  
  .global-search__input-container {
    width: 100%;
    max-width: none;
  }
  
  .global-search__search-input {
    padding: 10px 105px 10px 46px;
    font-size: 16px;
  }

  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px;
  }

  .global-search__chip-logo {
    width: 34px;
    height: 34px;
    left: 4px;
  }

  .global-search__form {
    flex-wrap: wrap;
    gap: 8px;
  }

  .global-search__gpt-block {
    font-size: 12px;
    gap: 6px;
  }

  .global-search__gpt-switch {
    width: 44px;
    height: 24px;
  }

  .global-search__gpt-switch-thumb {
    width: 18px;
    height: 18px;
  }

  .global-search__gpt-block._on .global-search__gpt-switch-thumb {
    left: calc(100% - 21px);
  }

  .global-search__gpt-switch-spark {
    width: 12px;
    height: 12px;
  }

  .global-search__search-btn {
    min-width: 56px;
    height: 34px;
    font-size: 12px;
    right: 4px;
  }
  
  .global-search__clear-btn {
    width: 26px;
    height: 26px;
    right: 75px;
  }
  
  .global-search:not(._focused) .global-search__clear-btn {
    right: 8px;
  }
}

/* Compact variants */
/* ПРОПОРЦИОНАЛЬНЫЕ НАСТРОЙКИ: Уменьшенные версии эталонных значений из 480px блока */
.global-search._compact {
  padding: 16px 0;
}

.global-search._compact .global-search__input-container {
  height: 40px;
}

.global-search._compact .global-search__search-input {
  padding: 8px 72px 8px 40px;
  font-size: 14px;
}

.global-search._compact .global-search__chip-logo {
  width: 28px;
  height: 28px;
  left: 3px;
}

/* Same positioning principles as other variants */
.global-search._compact:not(._focused) .global-search__search-input {
  padding-right: 25px; /* Proportionally smaller than 30px */
}

.global-search._compact .global-search__gpt-block {
  font-size: 11px;
  gap: 6px;
}

.global-search._compact .global-search__gpt-switch {
  width: 40px;
  height: 22px;
}

.global-search._compact .global-search__gpt-switch-thumb {
  width: 16px;
  height: 16px;
}

.global-search._compact .global-search__gpt-block._on .global-search__gpt-switch-thumb {
  left: calc(100% - 19px);
}

.global-search._compact .global-search__gpt-switch-spark {
  width: 11px;
  height: 11px;
}

.global-search._compact .global-search__gpt-info-icon {
  width: 14px;
  height: 14px;
}

.global-search._compact .global-search__search-btn {
  min-width: 60px;
  height: 32px;
  font-size: 12px;
  transform: translateY(-50%);
  right: 3px; /* Proportionally smaller than 4px */
}

/* Clear button positioning for compact */
.global-search._compact .global-search__clear-btn {
  right: 65px; /* Proportionally smaller than 75px */
}

.global-search._compact:not(._focused) .global-search__clear-btn {
  right: 6px; /* Proportionally smaller than 8px */
}

/* Loading state */
.global-search._loading .global-search__search-btn {
  pointer-events: none;
}

/* Дополнительные стили для GlobalSearch компонента */

/* Улучшенные focus состояния */
.global-search__search-input:focus {
  background: rgba(0, 102, 85, 0.02);
}

/* Hover эффекты для input */
.global-search__input-container:hover:not(:focus-within) {
  border-color: var(--ai-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 85, 0.1);
}

/* Стабильное позиционирование кнопки поиска */
.global-search__search-btn,
.global-search__search-btn:hover,
.global-search__search-btn:active,
.global-search__search-btn:disabled,
.global-search__search-btn:focus,
.global-search._focused .global-search__search-btn,
.global-search._has-text .global-search__search-btn,
/* ДУБЛИРУЕТСЯ: .global-search._compact .global-search__search-btn убран - уже определен в компактном блоке */
.global-search._loading .global-search__search-btn {
  transform: translateY(-50%) !important;
  will-change: transform; /* Оптимизация для браузера */
  contain: layout style; /* Изолирует изменения */
  position: absolute !important;
  top: 50% !important;
  /* display НЕ форсируем: в референсе кнопка условно рендерится, поэтому там
     display:flex !important безвреден. У нас кнопка всегда в DOM, и такой
     !important показывал «Найти» даже на пустом поле, перебивая скрытие по
     состоянию (.global-search._focused._has-text). Видимость — только там. */
}

/* Гарантированное позиционирование кнопки очистки */
.global-search__clear-btn,
.global-search__clear-btn:hover,
.global-search__clear-btn:active,
.global-search__clear-btn:focus,
.global-search._focused .global-search__clear-btn {
  transform: translateY(-50%) !important;
  will-change: transform; /* Оптимизация для браузера */
  contain: layout style; /* Изолирует изменения */
  position: absolute !important;
  top: 50% !important;
}

/* Анимация появления overlay */
.global-search__overlay {
  animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Пульсация кнопки поиска при готовности */
.global-search__search-btn:not(:disabled) {
  position: relative;
  overflow: hidden;
}

.global-search__search-btn:not(:disabled)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
}

.global-search__search-btn:not(:disabled):active::before {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
}   

/* Состояния фокуса для accessibility */
/* ПРИМЕЧАНИЕ: Эти стили дублируются ниже в блоке "Улучшения доступности" (строки ~469-475) */
.global-search__search-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.global-search__clear-btn:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
}

/* Улучшенные состояния на планшетах */
/* ДУБЛИРУЮТСЯ НАСТРОЙКИ: Те же значения позиционирования, что и в 768px/480px для единообразия */
@media (max-width: 1024px) and (min-width: 769px) {
  .global-search__input-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  /* Same positioning as 480px settings */
  .global-search__search-input {
    padding: 10px 105px 10px 46px;
  }

  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px;
  }

  .global-search__search-btn {
    right: 4px;
  }
  
  .global-search__clear-btn {
    right: 75px;
  }
  
  .global-search:not(._focused) .global-search__clear-btn {
    right: 8px;
  }
}

/* Состояние успешного поиска */
.global-search._success .global-search__input-container {
  border-color: var(--ai-success);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Состояние ошибки */
.global-search._error .global-search__input-container {
  border-color: var(--ai-error);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.global-search._error .global-search__search-input {
  color: var(--ai-error);
}

/* Улучшения доступности */
/* ДУБЛИРУЕТСЯ: См. строки 395-401 - те же стили focus-visible уже определены выше */
/*
.global-search__search-btn:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
}

.global-search__clear-btn:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
}
*/

/* Анимация загрузки для кнопки */
.global-search._loading .global-search__search-btn .material-icons {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Индикатор количества символов */
.global-search__char-counter {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 12px;
  color: var(--ai-text-lighter);
  opacity: 0.7;
}

.global-search__char-counter._warning {
  color: var(--ai-warning);
}

.global-search__char-counter._error {
  color: var(--ai-error);
}

/* ===== СТИЛИ ДЛЯ АВТОДОПОЛНЕНИЯ ===== */

/* Список предложений */
.global-search__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ai-border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

/* Отдельное предложение */
.global-search__suggestion {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--ai-text);
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 8px;
}

.global-search__suggestion:hover,
.global-search__suggestion._selected {
  background: rgba(0, 102, 85, 0.05);
  color: var(--ai-primary);
}

/* Закругленные края для первого и последнего элементов */
.global-search__suggestion:first-child {
  border-radius: 12px 12px 0 0;
}

.global-search__suggestion:last-child {
  border-radius: 0 0 12px 12px;
}

.global-search__suggestion:first-child:last-child {
  border-radius: 12px;
}

.global-search__suggestion .material-icons {
  font-size: 16px;
  color: var(--ai-text-lighter);
  opacity: 0.7;
}

.global-search__suggestion:hover .material-icons,
.global-search__suggestion._selected .material-icons {
  color: var(--ai-primary);
  opacity: 1;
}

/* Состояние когда открыты предложения - убрано изменение окантовки */
/* .global-search._suggestions-open .global-search__input-container {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border-bottom-color: transparent;
} */

/* Скролл для предложений */
.global-search__suggestions::-webkit-scrollbar {
  width: 6px;
}

.global-search__suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.global-search__suggestions::-webkit-scrollbar-thumb {
  background: var(--ai-border-light);
  border-radius: 3px;
}

.global-search__suggestions::-webkit-scrollbar-thumb:hover {
  background: var(--ai-primary);
}

/* Мобильная адаптация */
/* ДУБЛИРУЕТСЯ: Эти стили частично дублируют блок на строках 145-190 */
/* Оставляем только специфичные для автодополнения стили */
@media (max-width: 768px) {
  /* Автодополнение - специфичные стили, не дублирующиеся выше */
  .global-search__suggestions {
    max-height: 150px;
    font-size: 16px; /* Предотвращаем зум на iOS */
    left: 0;
    right: 0;
    width: 100%;
  }
  
  .global-search__suggestion {
    padding: 14px 16px;
  }

  /* ЗАКОММЕНТИРОВАНЫ дублирующиеся стили (уже есть в строках 145-190): */
  /*
  .global-search {
    width: 100%;
    max-width: none;
  }
  
  .global-search__wrap {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .global-search__input-container {
    width: 100%;
    margin: 0;
  }
  */
}

/* Дополнительная адаптация для очень маленьких экранов */
/* ДУБЛИРУЕТСЯ: Эти стили частично дублируют блок на строках 192-236 */
/* Оставляем только специфичные для автодополнения стили */
@media (max-width: 480px) {
  /* Автодополнение - специфичные стили для маленьких экранов */
  .global-search__suggestions {
    width: 100%;
    max-width: 100%;
  }

  /* ЗАКОММЕНТИРОВАНЫ дублирующиеся стили (уже есть в строках 192-236): */
  /*
  .global-search {
    width: 100%;
    max-width: 100%;
  }
  
  .global-search__wrap {
    width: 100%;
    max-width: 100%;
  }
  
  .global-search__form {
    width: 100%;
  }
  
  .global-search__input-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  */
}

/* Подсветка совпадений в предложениях */
.global-search__suggestion mark {
  background: rgba(0, 102, 85, 0.2);
  color: var(--ai-primary);
  font-weight: 500;
  padding: 1px 2px;
  border-radius: 2px;
}

/* Модификаторы для разных размеров */
.global-search._compact .global-search__suggestions {
  max-height: 120px;
}

.global-search._compact .global-search__suggestion {
  padding: 8px 12px;
  font-size: 13px;
}

/* ===== Модалка "Что такое GPT-версия" ===== */
.global-search__gpt-modal .custom-modal__dialog {
  max-width: 560px;
}

.global-search__gpt-modal .custom-modal__content {
  /* Верхний отступ от зелёной шапки на мобильном (было 0 — текст прилипал). */
  padding: 20px 24px 24px;
  color: var(--ai-text);
  font-size: 15px;
  line-height: 1.55;
}

.global-search__gpt-modal .custom-modal__content > p {
  margin: 0 0 14px;
}

.global-search__gpt-modal .custom-modal__content > p:last-of-type {
  margin-bottom: 18px;
}

.global-search__gpt-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.global-search__gpt-modal-list li {
  position: relative;
  padding: 4px 0 4px 20px;
}

.global-search__gpt-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--ai-primary);
}

.global-search__gpt-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.global-search__gpt-modal-close {
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--ai-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search__gpt-modal-close:hover {
  background: #00564a;
  box-shadow: 0 4px 10px rgba(0, 102, 85, 0.25);
}

.global-search__gpt-modal-close:focus-visible {
  outline: 2px solid var(--ai-primary);
  outline-offset: 2px;
}
/* ==== components/CategoryBlock/CategoryBlock.css ==== */
/* Стили CategoryBlock - точная копия из старого проекта */
.category-block {
  margin-bottom: 48px;
}

.category-block:not(:last-child) {
  margin-bottom: 48px;
}

@media (max-width: 1085px) {
  .category-block:not(:last-child) {
    margin-bottom: 24px;
  }
}

.category-block__title {
  display: inline-block;
  color: #231f20;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 16px;
  line-height: 17px;
  margin-bottom: 16px;
  min-height: 17px;
  transition: color .2s linear;
}

.category-block__title:hover {
  color: #006655;
}

.category-block__list {
  list-style: none;
  /* статьи в 2 колонки */
  columns: 2 auto;
  column-gap: 32px;
  margin: 0;
  padding: 0;
}

@media (max-width: 720px) {
  .category-block__list {
    columns: auto;
  }
}

.category-block__item {
  /* статьи в 2 колонки */
  break-inside: avoid-column;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  margin-bottom: 12px;
}

.category-block__marker {
  align-items: center;
  align-self: start;
  color: #606060;
  display: flex;
  height: 17px;
  justify-content: center;
  width: 16px;
}

.category-block__marker svg {
  display: block;
}

.category-block__bullet {
  background-color: #606060;
  border-radius: 50%;
  display: block;
  width: 5px;
  height: 5px;
}

.category-block__link {
  display: block;
  font-size: 14px;
  line-height: 17px;
  color: #606060;
  text-decoration: none;
}

.category-block__link:hover {
  color: #006655;
  text-decoration: none;
}

.category-block__sub-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-block__sub-categories + .category-block__list {
  margin-top: 24px;
}

/* Сохранённые шаблоны прошлых версий могут всё ещё содержать этот блок. */
.category-block__empty {
  display: none;
}

.category-block__sub-category {
  margin-bottom: 12px;
}

.category-block__sub-category:last-child {
  margin-bottom: 0;
}

.category-block__sub-category .category-block__link {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.category-block__link._active {
  color: #006655;
}

.category-block__sub-category .material-icons {
  font-size: 16px;
  margin-right: 6px;
}

/* Стили для статей подкатегорий */
.category-block__subcategory-articles {
  margin-top: 8px;
  margin-left: 22px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.category-block__subcategory-article {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.category-block__subcategory-article:hover {
  text-decoration: none;
}

.category-block__article-bullet {
  color: #006655;
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.category-block__article-pin {
  margin-top: 3px;
  flex-shrink: 0;
}

.category-block__article-title {
  color: #606060;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.category-block__subcategory-article:hover .category-block__article-title {
  color: #006655;
  text-decoration: underline;
}

/* Скелетон для статей подкатегорий */
.category-block__subcategory-articles-skeleton {
  margin-top: 8px;
  margin-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.category-block__skeleton-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.category-block__skeleton-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.category-block__skeleton-text {
  height: 6px;
  background: #e5e7eb;
  border-radius: 1px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  width: 80%;
}

/* Скелетон для статей основной категории */
.category-block__articles-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 8px;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive для статей подкатегорий */
@media (max-width: 720px) {
  /* Уменьшаем нижний отступ категорий в мобильной версии */
  .category-block {
    margin-bottom: 16px;
  }
  
  .category-block:not(:last-child) {
    margin-bottom: 16px;
  }
  
  /* Убираем отступ у последнего элемента */
  .category-block:last-child {
    margin-bottom: 0;
  }

  .category-block__subcategory-articles {
    margin-left: 0; /* Убираем левый отступ */
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .category-block__subcategory-articles-skeleton {
    margin-left: 0; /* Убираем левый отступ */
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  /* Скелетон основных статей в одну колонку для мобильных */
  .category-block__articles-skeleton {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
  }
  
  /* Убираем левый отступ у основных статей */
  .category-block__item {
    padding-left: 16px; /* Оставляем минимальный отступ для буллета */
  }
  
  .category-block__article-title {
    font-size: 12px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  /* Еще больше уменьшаем отступы */
  .category-block {
    margin-bottom: 8px;
  }
  
  .category-block:not(:last-child) {
    margin-bottom: 8px;
  }
  
  /* Полностью убираем отступ у последнего элемента */
  .category-block:last-child {
    margin-bottom: 0;
  }

  .category-block__articles-skeleton {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 4px;
  }
  
  .category-block__subcategory-articles {
    margin-left: 0; /* Убираем левый отступ полностью */
  }
  
  .category-block__subcategory-articles-skeleton {
    margin-left: 0; /* Убираем левый отступ полностью */
    grid-template-columns: 1fr;
    gap: 3px;
  }
  
  /* Еще больше уменьшаем отступ для основных статей */
  .category-block__item {
    padding-left: 14px;
  }
  
  .category-block__skeleton-item {
    gap: 4px;
    margin-bottom: 3px;
  }
}
/* ==== components/CategoryList/CategoryList.css ==== */
/* Стили CategoryList - обертка для отображения категорий как в старом проекте */

/* Обертка для списка категорий */
.category-list {
  padding-bottom: 50px;
}

@media (max-width: 1085px) {
  .category-list {
    padding-bottom: 24px;
  }
}

.category-list__content {
  margin-bottom: 50px;
}

@media (max-width: 1085px) {
  .category-list__content {
    margin-bottom: 24px;
  }
}

.category-list__subtitle {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin: 40px 0 20px 0;
}

.category-list__empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

/* Стили для загрузки */
.category-list__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

/* Простой скелетон: одна точка и одна линия */
.category-list__simple-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.category-list__skeleton-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.category-list__skeleton-line {
  width: 120px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 1px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.category-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #006655;
  animation: bounce 1.4s ease-in-out infinite both;
}

.category-list__dot:nth-child(1) { animation-delay: -0.32s; }
.category-list__dot:nth-child(2) { animation-delay: -0.16s; }
.category-list__dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Стили для ошибки */
.category-list__error {
  padding: 20px;
  text-align: center;
  color: #721c24;
  background-color: #f8d7da;
  border-radius: 4px;
}

/* Одноколоночное отображение */
.category-list__content--two-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-list__column-item {
  break-inside: avoid;
}

/* Уменьшаем отступ снизу у CategoryBlock в списке */
.category-list__column-item .category-block {
  margin-bottom: 8px;
}

.category-list__column-item .category-block:not(:last-child) {
  margin-bottom: 8px;
}

/* Стили для статей под категориями */
.category-list__articles {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 16px;
}

/* Стили для основных категорий */
.category-list__category-wrapper {
  margin-bottom: 16px;
}

/* Сетка для статей в две колонки */
.category-list__articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.category-list__article {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  break-inside: avoid;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.category-list__article:hover {
  text-decoration: none;
}

.category-list__article-bullet {
  color: #006655;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.category-list__article-pin {
  margin-top: 2px;
  flex-shrink: 0;
}

.category-list__article-title {
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.category-list__article:hover .category-list__article-title {
  color: #006655;
  text-decoration: underline;
}

/* Состояние загрузки статей - скелетон */
.category-list__articles-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 8px 0;
}

.category-list__skeleton-item {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.category-list__skeleton-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.category-list__skeleton-text {
  height: 12px;
  background: #e5e7eb;
  border-radius: 3px;
  flex: 1;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.category-list__skeleton-text--short {
  width: 60%;
}

.category-list__skeleton-text--medium {
  width: 80%;
}

.category-list__skeleton-text--long {
  width: 100%;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Сообщение об отсутствии статей */
.category-list__no-articles {
  padding: 8px 0;
}

.category-list__no-articles-text {
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

/* Responsive для одноколоночного отображения */
@media (max-width: 768px) {
  .category-list__content--two-columns {
    gap: 12px;
  }
  
  /* Еще меньший отступ на мобильных */
  .category-list__column-item .category-block {
    margin-bottom: 4px;
  }

  .category-list__column-item .category-block:not(:last-child) {
    margin-bottom: 4px;
  }
  
  .category-list__articles {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 12px;
  }
  
  /* На мобильных статьи в одну колонку */
  .category-list__articles-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .category-list__article-title {
    font-size: 13px;
  }
  
  /* Скелетон на мобильных устройствах */
  .category-list__articles-skeleton {
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
  }
  
  .category-list__skeleton-item {
    width: 100%;
  }
  
  .category-list__skeleton-text {
    height: 10px;
    width: 100% !important; /* Переопределяем все варианты ширины */
  }
  
  .category-list__skeleton-text--short,
  .category-list__skeleton-text--medium,
  .category-list__skeleton-text--long {
    width: 100% !important;
  }
  
  .category-list__no-articles-text {
    font-size: 12px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .category-list__articles-skeleton {
    grid-template-columns: 1fr;
    gap: 3px;
    width: 100%;
    padding: 8px 0;
  }
  
  .category-list__skeleton-item {
    width: 100%;
    gap: 6px;
  }
  
  .category-list__skeleton-text {
    height: 10px;
    width: 100% !important;
  }
  
  .category-list__skeleton-text--short,
  .category-list__skeleton-text--medium,
  .category-list__skeleton-text--long {
    width: 100% !important;
  }
}
/* ==== components/CategoryMenu/CategoryMenu.css ==== */
/* Стили CategoryMenu - новый дизайн MenuSidebar на основе дерева */

.category-menu {
  width: 100%;
  min-width: auto;
  padding: 0;
}

@media (max-width: 1085px) {
  .category-menu {
    padding: 0;
  }
}

.category-menu__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 16px;
  margin-top: 0;
}

.category-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-menu__item {
  padding: 12px 0;
  border-bottom: 1px solid #B3B3B3;
}

.category-menu__item:first-child {
  border-top: 1px solid #B3B3B3;
}

.menu-link {
  color: #333;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  display: inline-block;
}

.menu-link:hover {
  color: #006655;
  text-decoration: none;
}

.menu-link.active {
  color: #006655;
}

.menu-link__list {
  list-style: none;
  padding-left: 8px;
  margin: 0;
}

.menu-link__item {
  padding-left: 16px;
  position: relative;
}

.menu-link__item:before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #606060;
  position: absolute;
  top: 11px;
  left: 3px;
}

.menu-link__item:not(:last-child) {
  margin-bottom: 10px;
}

.menu-link__item .menu-link {
  color: #606060;
  font-size: 14px;
  line-height: 18px;
}

.menu-link__item .menu-link:hover,
.menu-link__item .menu-link.active {
  color: #006655;
}

.menu-link__accordion {
  width: 100%;
}

.menu-link__accordion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-link__accordion-body {
  padding: 8px 0 0;
}

.menu-link__expand-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-left: 8px;
  min-width: 24px;
  min-height: 24px;
}

.menu-link__expand-btn:hover {
  color: #006655;
}

.menu-link__expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.menu-link__expand-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
/* ==== components/LocalStorageInfo/LocalStorageInfo.css ==== */
/* НЕИСПОЛЬЗУЕМЫЙ КОМПОНЕНТ - все стили закомментированы */

/* Стили для компонента LocalStorageInfo */
/*
.local-storage-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 16px;
}

.local-storage-info__status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.local-storage-info__indicator {
  font-size: 8px;
  line-height: 1;
}

.local-storage-info__indicator--empty {
  color: #dc3545;
}

.local-storage-info__indicator--filled {
  color: #28a745;
}

.local-storage-info__text {
  font-weight: 500;
}

.local-storage-info__age {
  font-weight: 400;
  color: #868e96;
  margin-left: 4px;
}

.local-storage-info__actions {
  display: flex;
  gap: 4px;
}

.local-storage-info__button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s ease;
  line-height: 1;
}

.local-storage-info__button:hover {
  background-color: #e9ecef;
}

.local-storage-info__button--danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

.local-storage-info__button:active {
  transform: scale(0.95);
}
*/
/* Темная тема */
/*@media (prefers-color-scheme: dark) {
  .local-storage-info {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
  }

  .local-storage-info__age {
    color: #718096;
  }

  .local-storage-info__button:hover {
    background-color: #4a5568;
  }

  .local-storage-info__button--danger:hover {
    background-color: #e53e3e;
    color: #fff;
  }
}
*/
/* Мобильные устройства */
/*@media (max-width: 768px) {
  .local-storage-info {
    font-size: 11px;
    padding: 6px 10px;
  }

  .local-storage-info__button {
    font-size: 11px;
    padding: 3px;
  }
}
*/
/* ==== components/Loading/Loading.css ==== */
/* Loading - Beautiful Modern Design */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* backdrop-filter: blur(12px); */
  /* -webkit-backdrop-filter: blur(12px); */
}

.loading__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px;
  min-width: 320px;
  max-width: 420px;
  text-align: center;
  animation: loadingFadeIn 0.5s ease-out;
}

/* Animated Logo */
.loading__logo-container {
  position: relative;
  margin-bottom: 8px;
}

.loading__logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 3s ease-in-out infinite;
}

.loading__logo-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--ai-primary, #4F46E5);
  border-right: 3px solid var(--ai-primary, #4F46E5);
  border-radius: 50%;
  animation: logoSpin 2s linear infinite;
}

.loading__logo-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-bottom: 2px solid var(--ai-secondary, #EC4899);
  border-left: 2px solid var(--ai-secondary, #EC4899);
  border-radius: 50%;
  animation: logoSpinReverse 1.5s linear infinite;
}

.loading__logo-center {
  font-size: 24px;
  font-weight: 700;
  color: var(--ai-primary, #4F46E5);
  text-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Text Styles */
.loading__message {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  line-height: 1.4;
}

/* Animations */
@keyframes loadingFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .loading__content {
    margin: 20px;
    padding: 32px 24px;
    min-width: auto;
    gap: 24px;
  }
  
  .loading__logo {
    width: 64px;
    height: 64px;
  }
  
  .loading__logo-center {
    font-size: 20px;
  }
  
  .loading__message {
    font-size: 16px;
  }
  
  .loading__submessage {
    font-size: 13px;
  }
}
/* ==== components/CustomMarkdown/CustomMarkdown.css ==== */
/* CustomMarkdown Component Styles */

.custom-markdown {
  line-height: 1.625;
}

.custom-markdown > * {
  line-height: 1.625;
  margin-bottom: 12px;
}

.custom-markdown > *:last-child {
  margin-bottom: 0;
}

/* Paragraphs */
.markdown-paragraph {
  margin-bottom: 16px;
}

.markdown-paragraph:last-child {
  margin-bottom: 0;
}

/* Lists */
.markdown-ul {
  list-style-type: disc;
  padding-left: 16px;
  margin-bottom: 16px;
}

.markdown-ul:last-child {
  margin-bottom: 0;
}

.markdown-ol {
  list-style-type: decimal;
  padding-left: 16px;
  margin-bottom: 16px;
}

.markdown-ol:last-child {
  margin-bottom: 0;
}

.markdown-li {
  margin-bottom: 4px;
}

.markdown-li:last-child {
  margin-bottom: 0;
}

/* Headings */
.markdown-h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.markdown-h1:last-child {
  margin-bottom: 0;
}

.markdown-h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.markdown-h2:last-child {
  margin-bottom: 0;
}

.markdown-h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.markdown-h3:last-child {
  margin-bottom: 0;
}

/* Links */
.markdown-link {
  color: #2563eb;
  transition: color 0.2s;
  cursor: pointer;
}

.markdown-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.markdown-link--disabled {
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* Blockquotes */
.markdown-blockquote {
  position: relative;
  border-left: 2px solid #3b82f6;
  background-color: #f9fafb;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
}

.markdown-blockquote-content {
  color: #1f2937;
  font-weight: 500;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-table {
  min-width: 100%;
  border-collapse: collapse;
  border: 2px solid #9ca3af;
  border-radius: 8px;
}

.markdown-thead {
  background-color: #f9fafb;
}

.markdown-tbody {
  background-color: white;
}

.markdown-tr {
  transition: background-color 0.2s;
}

.markdown-tr:hover {
  background-color: #f9fafb;
}

.markdown-th {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: #111827;
  border: 2px solid #9ca3af;
}

.markdown-td {
  padding: 12px 16px;
  color: #374151;
  border: 2px solid #9ca3af;
}

/* Code blocks */
.code-block-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.code-block-container:hover .code-block-header {
  opacity: 1;
}

.code-block-header {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.code-language-label {
  font-size: 12px;
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.copy-button {
  padding: 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #6b7280;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.copy-button:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: #374151;
  transform: scale(1.05);
}

.copy-icon {
  width: 16px;
  height: 16px;
}

.code-block-pre {
  overflow-x: auto;
  border-radius: 8px;
  font-size: 14px;
  margin: 0;
  padding: 16px;
  max-width: 100%;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: ui-monospace, SFMono-Regular, Monaco, Consolas, monospace;
}

.inline-code {
  position: relative;
  border-radius: 4px;
  background-color: #f1f5f9;
  padding: 2px 4px;
  font-family: ui-monospace, SFMono-Regular, Monaco, Consolas, monospace;
  font-size: 14px;
}
/* ==== components/CategoryCard/CategoryCard.css ==== */
/* Стили карточек категорий - адаптивная ширина для Grid Layout */
.category-card {
  text-decoration: none !important;
  display: flex;
  align-items: flex-start;
  width: 100%; /* занимает всю доступную ширину в Grid */
  min-height: 130px;
  border: 1px solid #065;
  margin: 0;
  padding: 25px 118px 25px 20px;
  transition: all 0.2s linear;
  background-repeat: no-repeat;
  background-position: center right 20px;
  box-sizing: border-box;
}

/* Фоновые изображения для категорий */
.category-card._1 {
  background-image: url("/site-assets/img/1.svg");
}
.category-card._13 {
  background-image: url("/site-assets/img/13.svg");
}
.category-card._300 {
  background-image: url("/site-assets/img/300.svg");
}
.category-card._301 {
  background-image: url("/site-assets/img/301.svg");
}
.category-card._306 {
  background-image: url("/site-assets/img/306.svg");
}
.category-card._307 {
  background-image: url("/site-assets/img/307.svg");
}
.category-card._335 {
  background-image: url("/site-assets/img/335.svg");
}
.category-card._345 {
  background-image: url("/site-assets/img/345.svg");
}
.category-card._346 {
  background-image: url("/site-assets/img/346.svg");
}
.category-card._349 {
  background-image: url("/site-assets/img/349.svg");
}
.category-card._350 {
  background-image: url("/site-assets/img/350.svg");
}
.category-card._351 {
  background-image: url("/site-assets/img/351.svg");
}
.category-card._352 {
  background-image: url("/site-assets/img/352.svg");
}
.category-card._353 {
  background-image: url("/site-assets/img/353.svg");
}
.category-card._354 {
  background-image: url("/site-assets/img/354.svg");
}
.category-card._355 {
  background-image: url("/site-assets/img/355.svg");
}
.category-card._356 {
  background-image: url("/site-assets/img/356.svg");
}
.category-card._357 {
  background-image: url("/site-assets/img/357.svg");
}
.category-card._358 {
  background-image: url("/site-assets/img/358.svg");
}
.category-card._411 {
  background-image: url("/site-assets/img/411.svg");
}
.category-card._435 {
  background-image: url("/site-assets/img/435.svg");
}
.category-card._644 {
  background-image: url("/site-assets/img/644.svg");
}

/* Адаптивные стили - убираем фиксированные ширины, Grid справляется автоматически */

/* Hover эффекты */
.category-card:hover {
  border-bottom: 4px solid #FF8A00;
  margin-top: -4px;
  text-decoration: none !important;
}

.category-card:hover .category-card__title {
  color: #006655;
}

.category-card:hover .category-card__description {
  color: #231F20;
}

/* Заголовок карточки - точная копия старого кода */
.category-card__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #606060;
  transition: color 0.2s linear;
  margin: 0;
}

/* Описание карточки - точная копия старого кода */
.category-card__description {
  color: #828282;
  transition: color 0.2s linear;
  margin: 8px 0 0 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Фиксы для мобильной версии - точная копия старого кода */
@media (max-width: 480px) {
  .category-card {
    padding: 20px 100px 20px 15px;
    min-height: 110px;
  }
  
  .category-card__title {
    font-size: 16px;
    line-height: 20px;
  }
  
  .category-card__description {
    font-size: 13px;
  }
}
/* ==== components/Breadcrumbs/Breadcrumbs.css ==== */
.breadcrumbs {
  margin-bottom: 24px;
  padding: 0;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.breadcrumbs__link {
  color: #6B7280; /* Серый цвет */
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

.breadcrumbs__link:hover {
  color: #4B5563; /* Более темный серый при hover */
  text-decoration: none; /* Убираем подчеркивание */
}

.breadcrumbs__current {
  color: #333;
  font-size: 14px;
}

.breadcrumbs__separator {
  color: #9ca3af;
  font-size: 14px;
  user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
  .breadcrumbs__list {
    font-size: 13px;
  }
  
  .breadcrumbs__link,
  .breadcrumbs__current {
    font-size: 13px;
  }
}
/* ==== components/CookiesPolicy/CookiesPolicy.css ==== */
/* Стили для уведомления о cookies */
.cookies-policy {
  width: 100%;
  max-height: 97vh;
  padding: 20px 0;
  background-color: #fff;
  border-top: 1px solid #006655;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
}

.cookies-policy__content {
  width: 100%;
  max-width: 1166px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  /* выравнивание элементов по высоте: растянуть, чтобы колонка кнопки заняла всю высоту */
  align-items: stretch;
  gap: 20px;
}

.cookies-policy__text-content {
  flex: 1;
}

.cookies-policy__button-content {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  /* Центрируем кнопку по вертикали внутри колонки */
  align-items: center;
  /* Растягиваем колонку на высоту всего ряда */
  align-self: stretch;
}

.cookies-policy__title {
  margin-bottom: 20px;
}

.cookies-policy__description {
  display: flex;
  align-items: center;
}

.cookies-policy__description a {
  white-space: nowrap;
}

.cookies-policy__button {
  text-decoration: none !important;
  display: inline-block;
  color: #fff;
  background-color: var(--ai-secondary, #369D8C);
  border-radius: 4px;
  padding: 11px 38px;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-width: auto !important;
  margin: 0 !important;
}

.cookies-policy__button:hover {
  background-color: var(--ai-primary, #2d8572);
}

/* Адаптивность */
@media (max-width: 1085px) {
  .cookies-policy__content {
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .cookies-policy__content {
    flex-direction: column;
    gap: 16px;
    /* для мобильных растягивать не нужно */
    align-items: initial;
  }
  
  .cookies-policy__button-content {
    width: 100%;
    align-self: initial;
    align-items: initial;
  }
  
  .cookies-policy__description {
    flex-direction: column;
  }
  
  .cookies-policy__description a {
    white-space: normal;
  }
  
  .cookies-policy__button {
    width: 100%;
    text-align: center;
  }
}
/* ==== components/MobileMenu/MobileMenu.css ==== */
/* Стили для мобильного меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.mobile-menu__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: all;
  animation: overlayFadeIn 0.3s ease-out forwards;
}

.mobile-menu__drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  pointer-events: all;
  animation: drawerSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Анимации */
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Заголовок меню */
.mobile-menu__header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  min-height: 120px;
  /* border-bottom: 1px solid #f0f0f0; */
  position: relative;
}

.mobile-menu__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  min-width: 240px;
  min-height: 60px;
  position: relative;
  z-index: 1;
}

.mobile-menu__logo-link:hover {
  transform: scale(1.05);
}

.mobile-menu__logo {
  width: 220px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  will-change: transform;
}

.mobile-menu__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(255, 255, 255, 0.85); */
  z-index: 1;
}

.mobile-menu__close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}

.mobile-menu__close-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.05);
}

.mobile-menu__close-btn .close-icon__svg {
  color: #333 !important;
}

/* Содержимое меню */
.mobile-menu__content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

/* Секции меню */
.mobile-menu__section {
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__section:last-child {
  border-bottom: none;
}

.mobile-menu__section-title {
  padding: 20px 20px 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ai-text, #333);
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

/* Контейнер для CategoryMenu */
.mobile-menu__category-container {
  padding: 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* НЕИСПОЛЬЗУЕМЫЕ СТИЛИ - закомментированы */
/* Стили для ссылок */
/*
.mobile-menu__links {
  padding: 16px 20px 20px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ai-text, #333);
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

.mobile-menu__link:hover {
  background: rgba(0, 102, 85, 0.05);
  padding-left: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.mobile-menu__link-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 102, 85, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mobile-menu__link-content {
  flex: 1;
  min-width: 0;
}

.mobile-menu__link-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ai-text, #333);
  margin-bottom: 4px;
}

.mobile-menu__link-desc {
  font-size: 14px;
  color: var(--ai-text-lighter, #666);
  line-height: 1.3;
}
*/

/* Адаптация CategoryMenu в мобильном меню */
.mobile-menu .category-menu {
  border: none;
  background: transparent;
  padding: 0;
}

.mobile-menu .category-menu__item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu .category-menu__item:last-child {
  border-bottom: none;
}

.mobile-menu .category-menu__link {
  padding: 16px 20px;
  font-size: 16px;
}

.mobile-menu .category-menu__link:hover {
  background: rgba(0, 102, 85, 0.05);
}

.mobile-menu .category-menu__toggle {
  padding: 16px 20px;
}

.mobile-menu .category-menu__submenu {
  background: #f8f9fa;
}

.mobile-menu .category-menu__submenu .category-menu__link {
  padding-left: 40px;
  font-size: 15px;
}

/* Скролл */
.mobile-menu__content::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu__content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu__content::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 85, 0.3);
  border-radius: 2px;
}

.mobile-menu__content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 85, 0.5);
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-menu__drawer {
    width: 70%;
    max-width: 350px;
  }
}

/* Большие мобильные экраны */
@media (min-width: 480px) and (max-width: 767px) {
  .mobile-menu__drawer {
    width: 80%;
  }
  
  .mobile-menu__section-title {
    font-size: 17px;
  }
  
  .mobile-menu__link-title {
    font-size: 17px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 479px) {
  .mobile-menu__drawer {
    width: 90%;
  }
  
  .mobile-menu__header {
    padding: 16px;
    min-height: 70px;
  }
  
  .mobile-menu__close-btn {
    top: 16px;
    right: 16px;
  }
  
  .mobile-menu__section-title {
    padding: 16px 16px 12px;
    font-size: 15px;
  }
  
  .mobile-menu__links {
    padding: 12px 16px 16px;
  }
  
  .mobile-menu__link {
    padding: 12px 0;
  }
  
  .mobile-menu__link-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .mobile-menu__link-title {
    font-size: 15px;
  }
  
  .mobile-menu__link-desc {
    font-size: 13px;
  }
}
/* ==== components/HamburgerIcon/HamburgerIcon.css ==== */
/* Стили для гамбургер иконки */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
  transition: all 0.3s ease;
}

.hamburger-icon:hover {
  opacity: 0.8;
}

.hamburger-icon__line {
  width: 20px;
  height: 2px;
  background-color: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Анимация для открытого состояния */
.hamburger-icon--open .hamburger-icon__line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon--open .hamburger-icon__line:nth-child(2) {
  opacity: 0;
}

.hamburger-icon--open .hamburger-icon__line:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .hamburger-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
  
  .hamburger-icon__line {
    width: 18px;
    height: 2px;
  }
}
/* ==== components/CustomModal/CustomModal.css ==== */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.custom-modal__dialog {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalDialogSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.custom-modal__close-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.custom-modal__close-icon {
  width: 16px;
  height: 16px;
  color: #374151;
}

.custom-modal__header {
  background: #006655;
  color: white;
  padding: 24px;
  flex-shrink: 0;
}

.custom-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.custom-modal__content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* Анимации */
@keyframes modalOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalDialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .custom-modal__overlay {
    padding: 16px;
  }
  
  .custom-modal__dialog {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px;
  }
  
  .custom-modal__header {
    padding: 20px;
  }
  
  .custom-modal__title {
    font-size: 18px;
    padding-right: 40px; /* Оставляем место для кнопки закрытия */
  }
  
  .custom-modal__content {
    padding: 24px;
  }
  
  .custom-modal__close-button {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
  
  .custom-modal__close-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .custom-modal__overlay {
    padding: 8px;
  }
  
  .custom-modal__dialog {
    max-height: 98vh;
  }
  
  .custom-modal__header {
    padding: 16px;
  }
  
  .custom-modal__title {
    font-size: 16px;
  }
  
  .custom-modal__content {
    padding: 20px;
  }
}
/* ==== components/CustomTabs/CustomTabs.css ==== */
.custom-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.custom-tabs__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.custom-tabs__tab:hover {
  color: #374151;
  background: #f9fafb;
}

.custom-tabs__tab--active {
  color: #006655;
  background: none;
}

.custom-tabs__tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #006655;
}

.custom-tabs__count {
  background: #e5e7eb;
  color: #374151;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.custom-tabs__tab--active .custom-tabs__count {
  background: #006655;
  color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
  .custom-tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
  }
  
  .custom-tabs__tab {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .custom-tabs {
    flex-direction: column;
    border-bottom: none;
    gap: 4px;
  }
  
  .custom-tabs__tab {
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
  }
  
  .custom-tabs__tab--active {
    border-color: #006655;
    background: #f0fdf4;
  }
  
  .custom-tabs__tab--active::after {
    display: none;
  }
}
/* ==== components/ArticleList/ArticleList.css ==== */
/* Article List Styles */
.article-list {
  margin-bottom: 32px;
  user-select: none;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
  border-top: none; /* Убираем возможную линию-разделитель */
}

/* Header */
.article-list__header {
  margin-bottom: 16px;
}

.article-list__header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-list__title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.article-list__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0 0 0;
}

.article-list__page-info {
  margin-left: 8px;
  color: #9ca3af;
}

/* Content */
.article-list__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Article Card */
.article-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  user-select: none;
}

.article-card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #10b981;
  transform: translateY(-2px);
}

.article-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.article-card__layout {
  display: flex;
  gap: 16px;
}

/* Image */
.article-card__image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

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

.article-card__fallback-image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 8px;
  background-color: #f9fafb;
}

.article-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
}

/* Веб-результат placeholder */
.article-card__placeholder--web {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.article-card__web-icon {
  width: 48px;
  height: 48px;
  color: white;
}

.article-card__logo {
  width: 80px;
  height: 80px;
}

/* Content */
.article-card__content {
  flex: 1;
  min-width: 0;
}

.article-card__header {
  margin-bottom: 8px;
}

.article-card__title {
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  font-size: 18px;
  margin: 0;
  transition: color 0.3s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card:hover .article-card__title {
  color: #10b981;
}

.article-card__text {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Meta */
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
}

.article-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.article-card__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.article-card__tag {
  background-color: #d1fae5;
  color: #065f46;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.article-card__tag-more {
  color: #9ca3af;
  font-size: 12px;
}

/* Actions */
.article-card__actions {
  margin-left: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 80px;
}

.article-card__rating {
  display: flex;
  justify-content: flex-end;
}

.article-card__score {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card__star {
  width: 12px;
  height: 12px;
  color: #f59e0b;
}

.article-card__score-text {
  font-size: 12px;
  color: #6b7280;
}

.article-card__download {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.article-card__file-container {
  position: relative;
}

.article-card__file-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #059669;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.article-card__file-btn:hover {
  background-color: #a7f3d0;
  border-color: #6ee7b7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.article-card__download-icon {
  width: 20px;
  height: 20px;
}

.article-card__file-extension {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #059669;
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 0 4px 0 8px;
  line-height: 1;
  min-width: 16px;
  text-align: center;
}

.article-card__file-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: #1f2937;
  color: white;
  font-size: 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease;
  white-space: nowrap;
  max-width: 192px;
}

.article-card__file-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #1f2937;
}

.article-card__file-container:hover .article-card__file-tooltip {
  opacity: 1;
}

.article-card__file-name {
  color: white;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* Loading Skeleton */
.article-card--skeleton {
  pointer-events: none;
  cursor: default;
  animation: pulse 1.5s ease-in-out infinite;
}

.article-card--skeleton:hover {
  box-shadow: none;
  border-color: #e5e7eb;
  transform: none;
}

.article-card--skeleton .article-card__layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-card--skeleton .article-card__image {
  flex-shrink: 0;
}

.article-card__skeleton-image {
  width: 80px;
  height: 80px;
  background-color: #e5e7eb;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.article-card--skeleton .article-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card__skeleton-line {
  height: 20px;
  background-color: #e5e7eb;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.article-card__skeleton-line--title {
  width: 90%;
  height: 24px;
}

.article-card__skeleton-line--content {
  width: 75%;
}

.article-card__skeleton-line--meta {
  width: 60%;
  height: 16px;
}

.article-list__skeleton-header {
  height: 28px;
  background-color: #e5e7eb;
  border-radius: 8px;
  width: 192px;
}

.article-list__skeleton-subheader {
  height: 20px;
  background-color: #e5e7eb;
  border-radius: 8px;
  width: 128px;
  margin-top: 8px;
}

/* Error State */
.article-list__error {
  padding: 16px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.article-list__error-text {
  color: #b91c1c;
  margin-bottom: 12px;
  margin-top: 0;
}

.article-list__retry-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  border: 1px solid #fca5a5;
  background-color: transparent;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-list__retry-btn:hover {
  background-color: #fef2f2;
}

.article-list__search-icon {
  width: 16px;
  height: 16px;
}

/* Empty State */
.article-list__empty {
  padding: 16px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  text-align: center;
}

.article-list__empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 8px 0;
}

.article-list__empty-subtitle {
  color: #1d4ed8;
  margin-bottom: 16px;
  margin-top: 0;
}

.article-list__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.article-list__search-btn:hover {
  background-color: #1d4ed8;
}

/* Pagination */
.article-list__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  /* border-top: 1px solid #e5e7eb; */
}

.article-list__page-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
}

.article-list__page-btn:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

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

.article-list__page-btn--active {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.article-list__page-btn--active:hover {
  background-color: #059669;
  border-color: #059669;
}

.article-list__page-btn--nav {
  min-width: auto;
}

@media (max-width: 460px) {
  .article-list__page-btn--nav {
    display: none;
  }
}

.article-list__page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-list__page-ellipsis {
  padding: 0 8px;
  color: #9ca3af;
}

.article-list__chevron {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (min-width: 640px) {
  .article-card__image {
    display: block;
  }
}

@media (max-width: 768px) {
  .article-list__header-files {
    gap: 8px;
  }

  /* На мобиле меta-блок переносится в несколько строк (просмотры + дата),
     и общий gap=16px давал лишний вертикальный пробел между ними.
     Оставляем горизонтальный отступ, прижимаем строки друг к другу. */
  .article-card__meta {
    row-gap: 2px;
  }
}

@media (max-width: 480px) {
  .article-list__header-files {
    gap: 6px;
  }

  .article-card__meta {
    row-gap: 2px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Focus and Selection Styles */
.article-list *:focus {
  user-select: none;
}

.article-list input:focus {
  user-select: text;
}

/* Прикрепленные файлы */
.article-list__header-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.article-list__header-file {
  transition: transform 0.2s ease;
}

.article-list__header-file:hover {
  transform: translateY(-2px);
}

/* Hover effects */
.article-card:hover * {
  user-select: none;
}

/* Loading state */
.article-list__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.article-list__loading-spinner {
  margin-bottom: 16px;
}

.article-list__spinner {
  width: 40px;
  height: 40px;
  color: #3b82f6;
  animation: spin 1s linear infinite;
}

.article-list__loading-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Loading Container - Internal to ArticleList */
.article-list__loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 48px 24px;
}

.article-list__loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  animation: articleListLoaderFadeIn 0.5s ease-out;
}

.article-list__loading-logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: articleListLogoFloat 3s ease-in-out infinite;
}

.article-list__loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--ai-primary, #4F46E5);
  border-right: 3px solid var(--ai-primary, #4F46E5);
  border-radius: 50%;
  animation: articleListLogoSpin 2s linear infinite;
}

.article-list__loading-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-bottom: 2px solid var(--ai-secondary, #EC4899);
  border-left: 2px solid var(--ai-secondary, #EC4899);
  border-radius: 50%;
  animation: articleListLogoSpinReverse 1.5s linear infinite;
}

.article-list__loading-center {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: var(--ai-primary, #4F46E5);
  text-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.article-list__loading-message {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  line-height: 1.4;
}

@keyframes articleListLoaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes articleListLogoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes articleListLogoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes articleListLogoSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
/* ==== components/ArticleView/ArticleView.css ==== */
.article-view {
  width: 100%;
  max-width: 100%;
  background: white;
  overflow: hidden;
}

/* Заголовок статьи */
.article-view__header {
  padding: 24px 0; /* remove left/right padding to align with page left edge */
}

.article-view__title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.article-view__pin-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.article-view__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  word-wrap: break-word;
}

/* Метаинформация */
.article-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.article-view__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.article-view__meta-label {
  color: #666;
  font-weight: 500;
}

.article-view__meta-value {
  color: #333;
  font-weight: 400;
}

/* Теги */
.article-view__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article-view__tags-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
}

.article-view__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-view__tag {
  background: #006655;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Прикрепленные файлы под заголовком */
.article-view__header-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.article-view__header-file {
  transition: transform 0.2s ease;
}

.article-view__header-file:hover {
  transform: translateY(-2px);
}

/* Основное содержимое */
.article-view__content {
  padding: 24px 0; /* remove left/right padding; keep vertical spacing */
  padding-top: 0;
}

/* Убираем отступ сверху для контента, если нет файлов */
.article-view--no-files .article-view__content {
  padding-top: 0;
  margin-top: -16px;
}

.article-view__body {
  margin-bottom: 32px;
}

.article-view__text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
}

.article-view__text br {
  margin: 8px 0;
}

/* Стили для HTML контента в статье */
.article-view__text p {
  margin: 16px 0;
}

.article-view__text h1,
.article-view__text h2,
.article-view__text h3,
.article-view__text h4,
.article-view__text h5,
.article-view__text h6 {
  margin: 24px 0 16px 0;
  color: #1a1a1a;
  font-weight: 600;
}

.article-view__text h1 { font-size: 24px; }
.article-view__text h2 { font-size: 22px; }
.article-view__text h3 { font-size: 20px; }
.article-view__text h4 { font-size: 18px; }
.article-view__text h5 { font-size: 16px; }
.article-view__text h6 { font-size: 14px; }

.article-view__text ul,
.article-view__text ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-view__text li {
  margin: 8px 0;
}

.article-view__text blockquote {
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border-left: 4px solid #006655;
  font-style: italic;
}

.article-view__text code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article-view__text pre {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.article-view__text pre code {
  background: none;
  padding: 0;
}

.article-view__text a {
  color: #006655;
  text-decoration: none;
}

.article-view__text a:hover {
  text-decoration: underline;
}

.article-view__text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.article-view__text table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-view__text th,
.article-view__text td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

.article-view__text th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
  .article-view__header {
    padding: 16px 0; /* Убираем левый и правый отступы */
  }
  
  .article-view__title {
    font-size: 24px;
  }
  
  .article-view__meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .article-view__content {
    padding: 16px 0; /* Убираем левый и правый отступы */
  }
  
  .article-view__text {
    font-size: 15px;
  }
  
  .article-view__header-files {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .article-view__header {
    padding: 12px 0; /* Еще меньше отступы для очень маленьких экранов */
  }
  
  .article-view__content {
    padding: 12px 0; /* Еще меньше отступы для очень маленьких экранов */
  }
  
  .article-view__title {
    font-size: 20px;
  }
  
  .article-view__header-files {
    gap: 6px;
  }
  
  /* Убираем левые отступы у списков в мобильной версии */
  .article-view__text ul,
  .article-view__text ol {
    padding-left: 16px; /* Уменьшаем отступ у списков */
  }
  
  /* Уменьшаем отступы у цитат */
  .article-view__text blockquote {
    padding: 12px;
    margin: 12px 0;
  }
  
  /* Уменьшаем отступы у кода */
  .article-view__text pre {
    padding: 12px;
    margin: 12px 0;
  }
}
/* ==== components/CategoryListManager/CategoryListManager.css ==== */
/* CategoryListManager Loading Styles */
.category-list-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  min-height: 300px;
}

.category-list-loading__spinner {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.category-list-loading__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3b82f6;
  animation: category-list-loading-pulse 1.4s ease-in-out infinite both;
}

.category-list-loading__dot:nth-child(1) {
  animation-delay: -0.32s;
}

.category-list-loading__dot:nth-child(2) {
  animation-delay: -0.16s;
}

.category-list-loading__dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes category-list-loading-pulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.category-list-loading p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* CategoryListManager Placeholder Styles */
.category-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  min-height: 250px;
}

.category-list-placeholder p {
  color: #9ca3af;
  font-size: 1rem;
  margin: 0;
  text-align: center;
  font-weight: 500;
}
/* ==== components/SortByLetter/SortByLetter.css ==== */
.sort-by-letter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sort-by-letter__letter {
  color: #606060;
  padding: 5px;
  cursor: pointer;
  transition: color 0.2s linear;
}

.sort-by-letter__letter:hover {
  color: #006655;
}

.sort-by-letter__letter:first-child {
  padding-left: 0;
}

.sort-by-letter__letter:last-child {
  padding-right: 0;
}

@media (max-width: 730px) {
  .sort-by-letter {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ==== components/QuestionBlock/QuestionBlock.css ==== */
.question-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: visible;
  transition: all 0.2s ease;
  animation: questionBlockSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.question-block:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-block--new {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
  animation: questionBlockSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
             newQuestionHighlight 3s ease-out;
}

.question-block__header {
  padding: 20px 20px 32px 20px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.question-block__header:hover {
  background: #f9fafb;
}

.question-block__title-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.question-block__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  flex: 1;
  min-width: 0;
}

.question-block__status {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.question-block__status--open {
  background: #fef3c7;
  color: #92400e;
}

.question-block__status--progress {
  background: #dbeafe;
  color: #1e40af;
}

.question-block__status--closed {
  background: #d1fae5;
  color: #065f46;
}

.question-block__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.question-block__date {
  font-size: 14px;
  color: #6b7280;
  display: block;
}

.question-block__meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.question-block__department {
  font-size: 14px;
  color: #6b7280;
  display: block;
}

.question-block__arrow {
  width: 24px;
  height: 24px;
  color: #6b7280;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  cursor: pointer;
}

/* При закрытом состоянии - под заголовком */
.question-block__arrow:not(.question-block__arrow--open) {
  bottom: -12px;
  /* Позиционируем относительно заголовка */
}

/* При открытом состоянии - внизу всего контента */
.question-block__arrow--open {
  transform: translateX(-50%) rotate(180deg);
  bottom: -12px;
  /* Позиционируем относительно всего блока */
}

.question-block__arrow:hover {
  border-color: #006655;
  box-shadow: 0 2px 8px rgba(0, 102, 85, 0.2);
}

.question-block__content {
  padding: 12px 20px 32px 20px;
  border-top: 1px solid #f3f4f6;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
  }
}

.question-block__chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

/* Структура сообщений как в MessageList */
.message-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.message-wrapper--user {
  flex-direction: row-reverse;
}

.message-wrapper--assistant {
  flex-direction: row;
}

.message-bubble {
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-bubble--assistant {
  background-color: #ffffff;
  color: #1f2937;
  width: 100%;
  max-width: 85%;
}

.message-bubble--user {
  background-color: #f0fdf4;
  color: #1f2937;
  border: 1px solid #d1d5db;
  max-width: 70%;
  border-radius: 15px 0 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 12px 16px;
}

.message-bubble--loading {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  max-width: 85%;
  border-radius: 15px;
  padding: 16px;
  font-style: italic;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Заголовок сообщения от ассистента */
.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: #006655;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-avatar-icon {
  width: 18px;
  height: 18px;
  color: white;
}

.message-info {
  display: flex;
  flex-direction: column;
}

.message-author {
  font-size: 14px;
  font-weight: 600;
  color: #006655;
}

.message-content {
  color: #374151;
  line-height: 1.6;
  white-space: normal; /* Изменяем с pre-wrap на normal для корректного HTML */
  word-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  text-align: left; /* Выравниваем текст по левому краю */
}

/* Стили для HTML контента внутри message-content */
.message-content p,
.message-content div,
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6,
.message-content ul,
.message-content ol,
.message-content li,
.message-content blockquote,
.message-content pre,
.message-content table {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.message-content * {
  max-width: 100%;
}

/* Убираем стандартные отступы у HTML элементов */
.message-content p {
  margin: 0.5em 0;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul,
.message-content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.message-content li {
  margin: 0.25em 0;
}

.message-content strong,
.message-content b {
  font-weight: 600;
}

.message-content em,
.message-content i {
  font-style: italic;
}

.message-content code {
  background: #f3f4f6;
  padding: 0.125em 0.25em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.message-content pre {
  background: #f3f4f6;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  margin: 0.5em 0;
}

.message-content blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1em;
  margin: 0.5em 0;
  color: #6b7280;
}

.message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0;
}

.message-content th,
.message-content td {
  border: 1px solid #d1d5db;
  padding: 0.5em;
  text-align: left;
}

.message-content th {
  background: #f9fafb;
  font-weight: 600;
}

.message-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  opacity: 0.7;
}

.message-bubble--user .message-time {
  text-align: right;
}

.message-bubble--assistant .message-time {
  text-align: left;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes questionBlockSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes newQuestionHighlight {
  0% {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  }
  50% {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }
  100% {
    border-color: #e5e7eb;
    box-shadow: none;
  }
}

.question-block__reply {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.question-block__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.question-block__textarea:focus {
  outline: none;
  border-color: #006655;
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.1);
}

.question-block__submit-btn {
  background: #006655;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.question-block__submit-btn:hover:not(:disabled) {
  background: #005544;
  transform: translateY(-1px);
}

.question-block__submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Стили для новых элементов управления файлами и списка файлов в сообщениях */
.message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.message-file-link {
  font-size: 12px;
  padding: 4px 8px;
  background: #eef2f7;
  border-radius: 4px;
  color: #1f2937;
  text-decoration: none;
  transition: background .2s;
}
.message-file-link:hover {
  background: #e2e8f0;
}

.question-block__files-control {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.question-block__file-input { display: none; }
.question-block__file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  color: #111827;
  width: fit-content;
}
.question-block__file-btn:hover { border-color: #006655; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.question-block__file-icon { width:16px; height:16px; }
.question-block__attached-list { display:flex; flex-direction:column; gap:4px; }
.question-block__attached-item { display:flex; align-items:center; gap:6px; font-size:12px; background:#f3f4f6; padding:4px 8px; border-radius:4px; }
.question-block__attached-name { max-width:220px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.question-block__attached-remove { background:none; border:none; color:#dc2626; cursor:pointer; font-size:16px; line-height:1; padding:0 4px; }
.question-block__attached-remove:hover { color:#b91c1c; }

@media (max-width: 768px) {
  .question-block__header {
    padding: 16px 16px 28px 16px;
  }
  
  .question-block__content {
    padding: 12px 16px 28px 16px;
  }
  
  .question-block__title {
    font-size: 16px;
  }
  
  .question-block__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .question-block__title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .question-block__arrow {
    width: 22px;
    height: 22px;
  }

  .question-block__arrow:not(.question-block__arrow--open) {
    bottom: -11px;
  }

  .question-block__arrow--open {
    bottom: -11px;
  }

  .message-bubble--user {
    max-width: 85%;
  }

  .message-bubble--assistant {
    max-width: 95%;
  }

  .message-wrapper {
    gap: 8px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
  }

  .message-avatar-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .message-bubble {
    padding: 12px;
  }
  
  .message-header {
    gap: 8px;
  }

  .message-bubble--user {
    max-width: 90%;
  }

  .message-bubble--assistant {
    max-width: 100%;
  }

  .message-content {
    font-size: 14px;
  }

  .message-time {
    font-size: 10px;
  }

  .question-block__attached-name { max-width:140px; }
}
/* ==== components/SupportForm/SupportForm.css ==== */
.support-form {
  max-width: 600px;
  margin: 0 auto;
}

.support-form__field {
  margin-bottom: 32px;
}

.support-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.support-form__input,
.support-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.support-form__input:focus,
.support-form__textarea:focus {
  outline: none;
  border-color: #006655;
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.1);
}

.support-form__input--error,
.support-form__textarea--error {
  border-color: #dc2626;
}

.support-form__input--error:focus,
.support-form__textarea--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.support-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.support-form__error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.support-form__file-wrapper {
  display: flex;
  align-items: center;
}

.support-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-form__file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-form__file-button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.support-form__file-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.support-form__file-delete {
  margin-left: 8px;
  color: #dc2626 !important;
}

.support-form__controls {
  text-align: center;
  padding-top: 16px;
}

.support-form__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #006655;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 120px;
  justify-content: center;
}

.support-form__button:hover:not(:disabled) {
  background: #005544;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 85, 0.3);
}

.support-form__button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.support-form__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.2);
}

/* .support-form__success {
  text-align: center;
  padding: 40px 20px;
}

.support-form__success-title {
  font-weight: 500;
  font-size: 18px;
  color: #374151;
  margin-bottom: 32px;
  line-height: 1.5;
} */

/* Адаптивность */
@media (max-width: 768px) {
  .support-form {
    max-width: 100%;
  }
  
  .support-form__field {
    margin-bottom: 24px;
  }
  
  .support-form__button {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  /* .support-form__success {
    padding: 32px 16px;
  }
  
  .support-form__success-title {
    font-size: 16px;
  } */
}

@media (max-width: 480px) {
  .support-form__input,
  .support-form__textarea {
    padding: 10px;
    font-size: 16px; /* Предотвращает зум на iOS */
  }
  
  .support-form__file-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .support-form__button {
    width: 100%;
    padding: 12px 20px;
  }
}
/* ==== components/GlobalLoader/GlobalLoader.css ==== */
/* GlobalLoader - Beautiful Modern Design with Infinite Progress Bar */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.global-loader__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.98) 100%); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-loader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px;
  /* background: rgba(255, 255, 255, 0.9); */
  /* border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); */
  min-width: 320px;
  max-width: 420px;
  text-align: center;
  animation: globalLoaderFadeIn 0.5s ease-out;
}

/* Animated Logo */
.global-loader__logo-container {
  position: relative;
  margin-bottom: 8px;
}

.global-loader__logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 3s ease-in-out infinite;
}

.global-loader__logo-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--ai-primary, #4F46E5);
  border-right: 3px solid var(--ai-primary, #4F46E5);
  border-radius: 50%;
  animation: logoSpin 2s linear infinite;
}

.global-loader__logo-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-bottom: 2px solid var(--ai-secondary, #EC4899);
  border-left: 2px solid var(--ai-secondary, #EC4899);
  border-radius: 50%;
  animation: logoSpinReverse 1.5s linear infinite;
}

.global-loader__logo-center {
  font-size: 24px;
  font-weight: 700;
  color: var(--ai-primary, #4F46E5);
  text-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Text Styles */
.global-loader__message {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  line-height: 1.4;
}

.global-loader__submessage {
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}

/* Animations */
@keyframes globalLoaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes logoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .global-loader__content {
    margin: 20px;
    padding: 32px 24px;
    min-width: auto;
    gap: 24px;
  }
  
  .global-loader__logo {
    width: 64px;
    height: 64px;
  }
  
  .global-loader__logo-center {
    font-size: 20px;
  }
  
  .global-loader__message {
    font-size: 16px;
  }
  
  .global-loader__submessage {
    font-size: 13px;
  }
}
/* ==== components/ProfileMenu/ProfileMenu.css ==== */
/* Стили для меню профиля */
.profile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.profile-menu__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: all;
  animation: overlayFadeIn 0.3s ease-out forwards;
}

.profile-menu__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  pointer-events: all;
  animation: drawerSlideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Анимации */
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawerSlideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Заголовок */
.profile-menu__header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff;
  min-height: 120px;
  position: relative;
}

.profile-menu__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.profile-menu__close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-menu__close-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: scale(1.05);
}

.profile-menu__close-btn .close-icon__svg {
  color: #333 !important;
}

/* Разделительная линия */
.profile-menu__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0;
  flex-shrink: 0;
}

/* Контент */
.profile-menu__content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.profile-menu__section {
  padding: 24px 20px;
}

/* Информация о пользователе */
.profile-menu__user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.profile-menu__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ai-secondary, #369D8C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.profile-menu__avatar-icon {
  width: 24px;
  height: 24px;
}

.profile-menu__user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-menu__username {
  font-weight: 600;
  font-size: 16px;
  color: var(--ai-text, #333);
}

.profile-menu__email {
  font-size: 14px;
  color: var(--ai-text-lighter, #666);
  word-break: break-word;
}

/* Навигация */
.profile-menu__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu__nav-item {
  margin: 0;
}

.profile-menu__nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  text-decoration: none;
  color: var(--ai-text, #333);
  font-size: 16px;
  font-weight: 500;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.profile-menu__nav-link:hover {
  background: #f8f9fa;
  color: var(--ai-primary, #006655);
  transform: translateX(4px);
}

.profile-menu__nav-link--logout {
  color: #dc3545;
  margin-top: 16px;
  border-top: 1px solid #e9ecef;
  padding-top: 24px;
}

.profile-menu__nav-link--logout:hover {
  background: #fff5f5;
  color: #dc3545;
}

.profile-menu__nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Авторизация */
.profile-menu__auth {
  text-align: center;
  padding: 24px 16px;
}

.profile-menu__auth-text {
  margin: 0 0 24px 0;
  color: var(--ai-text-lighter, #666);
  font-size: 14px;
  line-height: 1.5;
}

.profile-menu__auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-menu__auth-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.profile-menu__auth-button--primary {
  background: var(--ai-primary, #006655);
}

.profile-menu__auth-button--primary:hover {
  background: var(--ai-secondary, #369D8C);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 85, 0.3);
}

.profile-menu__auth-button--test {
  background: #17a2b8;
  font-size: 14px;
  padding: 12px 20px;
}

.profile-menu__auth-button--test:hover {
  background: #138496;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3);
}

.profile-menu__auth-button:hover {
  background: var(--ai-secondary, #369D8C);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 85, 0.3);
}

.profile-menu__auth-icon {
  width: 20px;
  height: 20px;
}

/* Адаптивность */
@media (max-width: 480px) {
  .profile-menu__drawer {
    width: 90%;
  }
  
  .profile-menu__header {
    padding: 16px;
  }
  
  .profile-menu__title {
    font-size: 18px;
  }
  
  .profile-menu__section {
    padding: 20px 16px;
  }
  
  .profile-menu__user-info {
    padding: 12px;
    margin-bottom: 20px;
  }
  
  .profile-menu__avatar {
    width: 40px;
    height: 40px;
  }
  
  .profile-menu__avatar-icon {
    width: 20px;
    height: 20px;
  }
  
  .profile-menu__username {
    font-size: 15px;
  }
  
  .profile-menu__email {
    font-size: 13px;
  }
  
  .profile-menu__nav-link {
    padding: 14px 12px;
    font-size: 15px;
  }
  
  .profile-menu__nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .profile-menu__auth {
    padding: 20px 12px;
  }
  
  .profile-menu__auth-button {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .profile-menu__auth-button--test {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  .profile-menu__drawer {
    width: 95%;
  }
}
/* ==== components/ProfileIcon/ProfileIcon.css ==== */
/* Стили для иконки профиля */
.profile-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  color: var(--ai-text, #333);
  transition: all 0.2s ease;
  position: relative;
}

.profile-icon:hover {
  background: rgba(0, 102, 85, 0.1);
  color: var(--ai-primary, #006655);
  transform: scale(1.05);
}

.profile-icon:active {
  transform: scale(0.95);
}

.profile-icon__svg {
  display: block;
  transition: inherit;
}

/* Адаптивность */
@media (max-width: 768px) {
  .profile-icon {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .profile-icon {
    padding: 4px;
  }
}
/* ==== components/CloseIcon/CloseIcon.css ==== */
/* Стили для красивой иконки закрытия */
.close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.close-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.close-icon:active {
  transform: scale(0.95);
}

.close-icon:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.close-icon__svg {
  color: #333;
  transition: all 0.3s ease;
  z-index: 1;
}

.close-icon:hover .close-icon__svg {
  color: #000;
  transform: rotate(90deg);
}

.close-icon__path {
  transition: all 0.3s ease;
}

.close-icon:hover .close-icon__path {
  stroke-width: 2.5;
}

/* Эффект пульсации при клике */
.close-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.close-icon:active::before {
  width: 80px;
  height: 80px;
}

/* Варианты цветов */
.close-icon--light {
  background: rgba(255, 255, 255, 0.15);
}

.close-icon--light .close-icon__svg {
  color: white;
}

.close-icon--light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.close-icon--light:hover .close-icon__svg {
  color: white;
}

.close-icon--dark {
  background: rgba(0, 0, 0, 0.1);
}

.close-icon--dark .close-icon__svg {
  color: #333;
}

.close-icon--dark:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Размеры */
.close-icon--small {
  width: 32px;
  height: 32px;
}

.close-icon--large {
  width: 48px;
  height: 48px;
}

/* Для мобильного меню */
.close-icon--mobile-menu {
  background: transparent;
  border: 1px solid rgba(0, 102, 85, 0.2);
}

.close-icon--mobile-menu:hover {
  background: rgba(0, 102, 85, 0.1);
  border-color: rgba(0, 102, 85, 0.3);
}

.close-icon--mobile-menu .close-icon__svg {
  color: var(--ai-primary, #006655);
}

.close-icon--mobile-menu:hover .close-icon__svg {
  color: var(--ai-primary, #006655);
}
/* ==== pages/MainPage.css ==== */
/* Стили для новой главной страницы - адаптировано под старый код */
.main-page {
  /* width: 100%; */
  max-width: 1166px;
  margin: 0;
  padding: 0 0 50px 0;
  box-sizing: border-box;
}

@media (max-width: 1085px) {
  .main-page {
    padding-bottom: 12px;
  }
}

/* Контейнер для контента */
.main-page__content {
  width: 100%;
  box-sizing: border-box;
}

.main-page__legacy-chat {
  margin: 32px auto 48px;
  max-width: 960px;
}

@media (max-width: 768px) {
  .main-page__legacy-chat {
    margin: 24px 0 40px;
    padding: 0 12px;
  }
}

/* Заголовок - адаптировано под старый код */
.main-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin: 15px 0 50px 0; /* Уменьшаем верхний отступ с 30px до 15px */
  color: #2c3e50;
}

@media (max-width: 1085px) {
  .main-page__title {
    margin: 30px 0 24px 0; /* Уменьшаем верхний отступ с 60px до 30px */
  }
}

/* Ошибка */
.main-page__error {
  padding: 16px;
  margin: 20px 0;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  color: #c33;
  text-align: center;
  font-weight: 500;
}

/* Сетка категорий - адаптивная сетка на основе ширины Layout */
.main-page__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px 35px;
  margin-bottom: 20px;
  width: 100%;
}

/* Для мобильных устройств */
.main-page__categories--mobile {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Компонент поддержки - уменьшенное верхнее расстояние */
.main-page .support {
  max-width: 774px;
}

@media (max-width: 1085px) {
  .main-page .support {
    margin-top: 0;
  }
}

/* Сообщение об отсутствии категорий */
.main-page__no-categories {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

@media (max-width: 830px) {
  .main-page__categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 12px; /* уменьшаем горизонтальный gap для мобильных */
  }
}

@media (max-width: 768px) {
  .main-page__title {
    font-size: 20px;
    margin-top: 20px; /* Уменьшаем верхний отступ для планшетов */
  }
  
  .main-page__categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .main-page__title {
    font-size: 18px;
    margin-top: 15px; /* Уменьшаем верхний отступ для мобильных */
  }
  
  .main-page__categories {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ==== pages/CategoryPage.css ==== */
.category-page {
  /* width: 100%; */
  max-width: 1085px;
  /* max-width: none; */
  margin: 0;
  padding: 0 0 40px; /* отступ снизу — воздух между последней карточкой и футером */
  box-sizing: border-box;
}

.category-page__content {
  /* margin-top: 24px; */
  flex: 1;
  padding: 0;
}

/* Хлебные крошки */
.category-page__breadcrumbs {
  padding: 0 0 20px 0; /* top = 0 */
  /* border-bottom: 1px solid #e0e0e0; */
  /* margin-bottom: 24px; */
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.4;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__link {
  color: #6B7280; /* Серый цвет */
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: inherit; /* Наследуем размер шрифта от родителя */
  font-weight: normal; /* Одинаковая жирность */
}

.breadcrumbs__link:hover {
  color: #4B5563; /* Более темный серый при hover */
  text-decoration: none; /* Убираем подчеркивание */
}

.breadcrumbs__separator {
  margin: 0 8px;
  color: #6B7280;
  font-weight: normal;
  font-size: inherit; /* Наследуем размер шрифта от родителя */
}

.breadcrumbs__current {
  color: #1F2937;
  font-weight: normal; /* Меняем с 500 на normal для одинаковой жирности */
  font-size: inherit; /* Наследуем размер шрифта от родителя */
}

/* Адаптивные стили для хлебных крошек */
@media (max-width: 768px) {
  .category-page__breadcrumbs {
    padding: 0 0 16px 0; /* top = 0 */
  }
  
  .breadcrumbs {
    font-size: 13px;
    gap: 4px; /* Добавляем промежуток между элементами */
  }
  
  .breadcrumbs__item {
    margin-bottom: 8px; /* Расстояние между строками при переносе */
  }
  
  .breadcrumbs__separator {
    margin: 0 10px; /* Увеличиваем расстояние между элементами */
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .category-page__breadcrumbs {
    padding: 0 0 12px 0; /* top = 0 */
  }
  
  .breadcrumbs {
    font-size: 12px;
    gap: 6px; /* Еще больше промежуток между элементами */
    line-height: 1.6; /* Увеличиваем межстрочный интервал */
  }
  
  .breadcrumbs__item {
    margin-bottom: 10px; /* Больше расстояние между строками */
  }
  
  .breadcrumbs__separator {
    margin: 0 12px; /* Еще больше расстояние между элементами */
    /* Убираем font-size: 14px; чтобы наследовался размер от родителя */
  }
  
  .breadcrumbs__link,
  .breadcrumbs__current {
    padding: 4px 0; /* Добавляем вертикальные отступы для лучшего тапа */
  }
}

/* Мобильные стили для контента категорий */
@media (max-width: 720px) {
  .category-page__content {
    padding-bottom: 0; /* Убираем нижний отступ */
  }
}

@media (max-width: 480px) {
  .category-page__content {
    padding-bottom: 0; /* Убираем нижний отступ полностью */
  }
}
/* ==== pages/ArticlePage.css ==== */
.article-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.article-page__layout {
  display: flex;
  flex: 1;
}

/* Левая панель с меню категорий - точная копия из CategoryPage */
.article-page__sidebar {
  width: 300px;
  min-width: 300px;
  background: #ffffff;
  overflow-y: auto;
  flex-shrink: 0;
}

/* .article-page__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px 10px 15px;
  margin-bottom: 20px;
}

.article-page__logo-image {
  max-width: 250px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease-in-out;
}

.article-page__logo-image:hover {
  transform: scale(1.05);
} */

/* Правая панель с основным содержимым */
.article-page__main {
  flex: 1;
  padding: 0 0 24px 0; /* remove left/right padding for left alignment */
  min-width: 0;
}

/* Заголовок с хлебными крошками и поиском */
.article-page__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 24px;
}

.article-page__content {
  flex: 1;
}

/* Убираем подъем ArticleView, чтобы отступ под хлебными крошками совпадал с CategoryPage */
.article-page__content .article-view {
  margin-top: 0; /* было -10px */
}

/* Стили загрузки */
.article-page__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.article-page__spinner {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.article-page__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #006655;
  animation: article-bounce 1.4s ease-in-out infinite both;
}

.article-page__dot:nth-child(1) { animation-delay: -0.32s; }
.article-page__dot:nth-child(2) { animation-delay: -0.16s; }
.article-page__dot:nth-child(3) { animation-delay: 0s; }

@keyframes article-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Стили ошибок */
.article-page__error,
.article-page__not-found {
  text-align: center;
  padding: 60px 20px;
}

.article-page__error h2,
.article-page__not-found h2 {
  color: #721c24;
  margin-bottom: 16px;
  font-size: 24px;
}

.article-page__error p,
.article-page__not-found p {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

.article-page__back-link {
  display: inline-block;
  padding: 12px 24px;
  background: #006655;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.article-page__back-link:hover {
  background: #005544;
}

/* Хлебные крошки */
.article-page__breadcrumbs {
  padding: 0 0 20px 0; /* top = 0 */
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.4;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__link {
  color: #6B7280; /* Серый цвет */
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: inherit; /* Наследуем размер шрифта от родителя */
  font-weight: normal; /* Одинаковая жирность */
}

.breadcrumbs__link:hover {
  color: #4B5563; /* Более темный серый при hover */
  text-decoration: none; /* Убираем подчеркивание */
}

.breadcrumbs__separator {
  margin: 0 4px;
  color: #6B7280;
  font-weight: normal;
  font-size: inherit; /* Наследуем размер шрифта от родителя */
}

.breadcrumbs__current {
  color: #1F2937;
  font-weight: normal; /* Меняем с 500 на normal для одинаковой жирности */
  font-size: inherit; /* Наследуем размер шрифта от родителя */
}

/* Адаптивные стили для хлебных крошек */
@media (max-width: 768px) {
  .article-page__breadcrumbs {
    padding: 0 0 16px 0; /* top = 0 */
  }
  
  .breadcrumbs {
    font-size: 13px;
    gap: 4px; /* Добавляем промежуток между элементами как в CategoryPage */
  }
  
  .breadcrumbs__item {
    margin-bottom: 8px; /* Расстояние между строками при переносе */
  }
  
  .breadcrumbs__separator {
    margin: 0 4px; /* Уменьшаем расстояние между элементами */
  }
  
  /* без подъема на планшетах */
  .article-page__content .article-view {
    margin-top: 0; /* было -6px */
  }
}

/* Компонент поддержки - адаптировано из MainPage */
.article-page .support {
  max-width: 774px;
  margin: 0;
  margin-left: 20px;
}

.article-page .support__button {
  color: #fff !important;
}

@media (max-width: 1085px) {
  .article-page__sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .article-page__sidebar.open {
    left: 0;
  }
  
  .article-page__main {
    width: 100%;
    padding: 0 0 24px 0; /* remove left/right padding */
  }
  
  .article-page__header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 12px; /* Уменьшаем с 20px до 12px */
  }
  
  .article-page .support {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .article-page__main {
    padding: 0 0 20px 0; /* remove left/right padding */
  }
  
  .article-page__header {
    margin-bottom: 16px;
    padding-top: 8px; /* Уменьшаем с 16px до 8px */
  }
  
  .article-page__logo {
    padding: 15px 10px 8px 10px;
    margin-bottom: 15px;
  }
  
  .article-page__logo-image {
    max-width: 200px;
    max-height: 60px;
  }
  
  /* Выравниваем Support по центру в мобильной версии */
  .article-page .support {
    margin: 0 auto;
    max-width: none;
    display: flex;
    justify-content: center;
  }
  
  /* без подъема на планшетах */
  .article-page__content .article-view {
    margin-top: 0; /* было -6px */
  }
}

/* Дополнительные стили для хлебных крошек на очень маленьких экранах */
@media (max-width: 480px) {
  .article-page__breadcrumbs {
    padding: 0 0 12px 0; /* top = 0 */
  }
  
  .breadcrumbs {
    font-size: 12px; /* Как в CategoryPage */
    gap: 6px; /* Еще больше промежуток между элементами */
    line-height: 1.6; /* Увеличиваем межстрочный интервал */
  }
  
  .breadcrumbs__item {
    margin-bottom: 10px; /* Больше расстояние между строками */
  }
  
  .breadcrumbs__separator {
    margin: 0 4px; /* Уменьшаем расстояние между элементами */
  }
  
  .breadcrumbs__link,
  .breadcrumbs__current {
    padding: 4px 0; /* Добавляем вертикальные отступы для лучшего тапа */
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .article-page__main {
    padding: 0 0 16px 0; /* remove left/right padding */
  }
  
  .article-page__header {
    margin-bottom: 12px;
    padding-top: 6px; /* Уменьшаем с 12px до 6px */
  }
  
  /* Еще лучше центрируем Support на маленьких экранах */
  .article-page .support {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* без подъема на мобильных */
  .article-page__content .article-view {
    margin-top: 0; /* было -4px */
  }
}
/* ==== pages/SearchPage.css ==== */
.search-page {
  width: 100%;
  padding: 16px 0 32px;
}

.search-page__results {
  width: 100%;
}

.search-page__empty {
  max-width: 560px;
  margin: 48px auto;
  text-align: center;
  color: var(--ai-text);
}

.search-page__empty-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.search-page__empty-hint {
  margin: 0;
  color: var(--ai-text-lighter);
  font-size: 14px;
  line-height: 1.5;
}
/* ==== pages/QuestionsPage.css ==== */
.help-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Хлебные крошки */
.help-page__breadcrumbs {
  padding: 0 0 20px 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.4;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__link {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: inherit;
  font-weight: normal;
}

.breadcrumbs__link:hover {
  color: #4B5563;
  text-decoration: none;
}

.breadcrumbs__current {
  color: #1F2937;
  font-weight: normal;
  font-size: inherit;
}

.breadcrumbs__separator {
  margin: 0 8px;
  color: #6B7280;
  font-weight: normal;
  font-size: inherit;
}

/* Заголовок */
.help-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 36px;
  color: #333;
}

/* Список вопросов */
.help-page__questions {
  list-style: none;
  padding: 0;
  margin-bottom: 36px;
}

.help-page__question {
  margin-bottom: 12px;
}

.help-page__question:last-child {
  margin-bottom: 0;
}

.help-page__question-link {
  display: block;
  padding: 12px;
  background-color: #eee;
  color: #606060;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s linear;
  font-size: 16px;
}

.help-page__question-link:hover {
  background-color: #c0c0c0;
  text-decoration: none;
  color: #333;
}

/* Список статей */
.help-page__articles {
  list-style: none;
  columns: 2 auto;
  column-gap: 32px;
  margin-bottom: 60px;
  padding: 0;
}

/* Контейнер для ArticleList */
.help-page__articles-container {
  margin-bottom: 60px;
}

/* Стили для ArticleList в контексте QuestionsPage */
.help-page__articles-container .article-list {
  margin-bottom: 0;
}

.help-page__articles-container .article-list__container {
  margin-bottom: 0;
}

.help-page__article {
  break-inside: avoid-column;
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.help-page__article:before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #606060;
  position: absolute;
  top: 11px;
  left: 3px;
}

.help-page__article-link {
  font-size: 14px;
  line-height: 17px;
  color: #606060;
  text-decoration: none;
  display: block;
}

.help-page__article-link:hover {
  color: #006655;
  text-decoration: none;
}

/* Блок решения - стили из старого проекта */
.help-page__solution {
  border: 1px solid #D9D9D9;
  padding: 35px 60px;
  margin-bottom: 32px;
  border-radius: 4px;
  background-color: #ffffff;
}

.help-page__not-auth {
  text-align: left;
}

.help-page__not-auth-text {
  margin-bottom: 24px;
  line-height: 1.5;
  color: #333;
  font-size: 14px;
}

.help-page__not-auth-text a {
  color: #006655;
  text-decoration: none;
  font-weight: 500;
}

.help-page__not-auth-text a:hover {
  text-decoration: underline;
  color: #004d40;
}

/* Кнопки в стиле старого проекта */
.help-page__auth-btn,
.help-page__support-btn {
  background-color: #006655;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  min-width: 140px;
}

.help-page__auth-btn:hover,
.help-page__support-btn:hover {
  background-color: #004d40;
  box-shadow: 0 2px 4px rgba(0, 102, 85, 0.2);
}

.help-page__auth-btn:active,
.help-page__support-btn:active {
  transform: translateY(1px);
}

/* Ошибка */
.help-page__error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.help-page__error h2 {
  color: #dc3545;
  margin-bottom: 16px;
}

.help-page__error button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 16px;
}

.help-page__error button:hover {
  background: #0056b3;
}

/* Адаптивность */
@media (max-width: 1085px) {
  .help-page__breadcrumbs {
    padding: 0 0 16px 0;
  }
}

@media (max-width: 768px) {
  .help-page__breadcrumbs {
    padding: 0 0 16px 0;
  }
  
  .breadcrumbs {
    font-size: 13px;
    gap: 4px;
  }
  
  .breadcrumbs__item {
    margin-bottom: 8px;
  }
  
  .breadcrumbs__separator {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .help-page__breadcrumbs {
    padding: 0 0 12px 0;
  }
  
  .breadcrumbs {
    font-size: 12px;
    gap: 6px;
    line-height: 1.6;
  }
  
  .breadcrumbs__item {
    margin-bottom: 10px;
  }
  
  .breadcrumbs__separator {
    margin: 0 12px;
  }
  
  .breadcrumbs__link,
  .breadcrumbs__current {
    padding: 4px 0;
  }
}

@media (max-width: 720px) {
  .help-page {
    padding: 16px;
  }
  
  .help-page__articles {
    columns: auto;
    margin-bottom: 32px;
  }
  
  .help-page__articles-container {
    margin-bottom: 32px;
  }
  
  .help-page__solution {
    padding: 32px 20px;
  }
  
  .help-page__title {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

@media (max-width: 460px) {
  .help-page__solution {
    padding: 32px 12px;
  }
  
  .help-page__auth-btn,
  .help-page__support-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Стили формы поддержки - перенесены из старого проекта */
.support-form {
  max-width: 500px;
  margin: 0 auto;
}

.support-form__field {
  margin-bottom: 32px;
}

.support-form__controls {
  text-align: center;
}

.support-form__success-title {
  font-weight: 500;
  margin-bottom: 32px;
  color: #333;
  text-align: center;
}

/* Стили для полей ввода Material UI */
.support-form .MuiTextField-root {
  width: 100% !important;
}

.support-form .MuiInputLabel-root {
  font-size: 14px !important;
  line-height: 16px !important;
  top: -4px;
  color: #606060 !important;
}

.support-form .MuiInputBase-input {
  font-size: 14px !important;
  line-height: 16px !important;
  color: #333333 !important;
  height: auto !important;
}

.support-form .MuiInputBase-input:not(textarea) {
  padding: 12px 12px !important;
}

.support-form .Mui-focused:not(.Mui-error) {
  color: #006655 !important;
}

.support-form .Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline {
  border-color: #006655 !important;
}

.support-form .MuiOutlinedInput-notchedOutline {
  border-color: #D9D9D9 !important;
}

.support-form .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #006655 !important;
}
/* ==== pages/UserPage.css ==== */
/* UserPage styles */
.user-page {
  padding-bottom: 50px;
  min-height: calc(100vh - 200px);
}

.user-page__container {
  max-width: 1200px;
  margin: 0 auto;
}

.user-page .breadcrumbs {
  margin: 24px 0 50px;
}

.user-page__user-info {
  margin-bottom: 24px;
}

.user-page__user-details {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.user-page__user-name {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
  margin: 0;
}

.user-page__user-email {
  color: #6B7280;
}

.user-page__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #006655;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  margin-bottom: 32px;
  font-family: inherit;
}

.user-page__button:hover {
  background: #005544;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 85, 0.3);
}

.user-page__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 85, 0.2);
}

.user-page__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.user-page__logout-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  margin-bottom: 32px;
  font-family: inherit;
}

.user-page__logout-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-page__logout-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.user-page__logout-button-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.user-page__logout-button-small:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.user-page__logout-button-small:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.user-page__main-buttons .user-page__button:not(:first-child),
.user-page__main-buttons .user-page__logout-button {
  margin-left: 16px;
}

@media (max-width: 470px) {
  .user-page__button,
  .user-page__logout-button {
    display: block;
  }

  .user-page__main-buttons .user-page__button:not(:first-child),
  .user-page__main-buttons .user-page__logout-button {
    margin-left: 0;
  }
}

.user-page__controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.user-page__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
  margin: 0;
  flex-shrink: 0;
}

.user-page__filter {
  flex-shrink: 0;
}

.user-page__content {
  margin-top: 24px;
}

.user-page__empty-message {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.user-page__empty-message h3 {
  color: #374151;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Стили для ошибки */
.user-page__error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.user-page__error h2 {
  color: #dc3545;
  margin-bottom: 16px;
  font-size: 24px;
}

.user-page__error p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
}

/* Адаптивность */

/* Адаптивность */
@media (max-width: 1085px) {
  .user-page {
    padding-bottom: 24px;
  }
  
  .user-page .breadcrumbs {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .user-page__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .user-page__title {
    font-size: 20px;
  }
  
  .user-page__user-name {
    font-size: 20px;
  }
  
  .user-page__user-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 450px) {
  .user-page__controls {
    gap: 24px;
  }
  
  .user-page__title {
    margin-bottom: 16px;
  }
  
  .user-page__empty-message {
    padding: 30px 15px;
  }
  
  .user-page__empty-message h3 {
    font-size: 14px;
  }
}
/* ==== pages/NotFoundPage.css ==== */
/* 404 Not Found page styles */
.not-found-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}

.not-found-page__code {
  font-size: 8rem;
  font-weight: 700;
  color: #006655;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 102, 85, 0.2);
}

@media (max-width: 768px) {
  .not-found-page__code {
    font-size: 5rem;
  }
}

.not-found-page__title {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .not-found-page__title {
    font-size: 1.5rem;
  }
}

.not-found-page__description {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 32px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .not-found-page__description {
    font-size: 1rem;
  }
}

.not-found-page__link {
  text-decoration: none !important;
  display: inline-block;
  color: #fff;
  background-color: var(--ai-secondary);
  border-radius: 4px;
  padding: 11px 38px;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  transition: background-color 0.2s ease;
}

.not-found-page__link:hover {
  background-color: var(--ai-primary);
  color: #fff;
  text-decoration: none;
}

/* Дополнительные элементы */
.not-found-page__illustration {
  margin-bottom: 24px;
}

.not-found-page__illustration svg {
  width: 200px;
  height: 200px;
  color: #e9ecef;
}

@media (max-width: 768px) {
  .not-found-page__illustration svg {
    width: 150px;
    height: 150px;
  }
}


/* ==== Кнопки поиска: видимость по наличию текста ====
   У .global-search__search-btn/clear-btn задан display:flex, поэтому атрибут
   hidden их не прятал (равная специфичность, правило класса идёт позже сброса
   [hidden]). Управляем показом через класс контейнера: кнопки видны, пока в
   поле есть текст — независимо от фокуса. Это значит, что при потере фокуса они
   не исчезают, если пользователь что-то ввёл (крестик так же ведёт себя в
   референсе; «Найти» там прячется на blur, но нам нужно, чтобы оставалась). */
.global-search__clear-btn,
.global-search__search-btn { display: none; }
.global-search._has-text .global-search__clear-btn,
.global-search._has-text .global-search__search-btn { display: flex; }

/* ==== Левое дерево категорий: сворачивание веток (в референсе ветки условно
   рендерятся React'ом; у нас статичный HTML, поэтому прячем через класс) ==== */
.menu-link__accordion > .menu-link__accordion-body { display: none; }
.menu-link__accordion._open > .menu-link__accordion-body { display: block; }
.menu-link__expand-spacer { width: 32px; flex: 0 0 32px; }
.menu-link__chevron { transition: transform .2s ease-in-out; }
.menu-link__accordion._open > .menu-link__accordion-top .menu-link__chevron { transform: rotate(180deg); }

/* ==== Алфавитный фильтр: буквы-ссылки (в референсе это span с navigate) ==== */
a.sort-by-letter__letter { text-decoration: none; }
.sort-by-letter__letter._active { color: var(--ai-primary, #006655); font-weight: 700; }

/* ==== FileIcon (иконка вложения) — из components/Icons/FileIcon.css референса.
   Не попал в первый перенос CSS, из-за чего иконка была без скруглений, глиф
   не белый, а «PDF» — не бейджем. ==== */
.file-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.file-icon:hover {
  transform: scale(1.05);
}

.file-icon__background {
  width: 100%;
  height: 75%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease;
}

.file-icon:hover .file-icon__background {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.file-icon__icon {
  color: white !important;
  font-size: 20px !important;
  font-weight: normal;
}

.file-icon__extension {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  background: white;
  border-radius: 4px;
  padding: 1px 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Размеры для разных размеров иконок */
.file-icon[style*="width: 32px"] .file-icon__icon {
  font-size: 14px !important;
}

.file-icon[style*="width: 32px"] .file-icon__extension {
  font-size: 8px;
  min-width: 18px;
  padding: 0px 2px;
}

.file-icon[style*="width: 64px"] .file-icon__icon {
  font-size: 28px !important;
}

.file-icon[style*="width: 64px"] .file-icon__extension {
  font-size: 12px;
  min-width: 30px;
  padding: 2px 4px;
}

/* Модалка скрывается по атрибуту hidden: у .custom-modal задан display:flex,
   поэтому нужен селектор большей специфичности, иначе окно висело бы всегда. */
.custom-modal[hidden] { display: none; }

/* ================= Публичный ИИ-поиск «AI RKF» (/rag) ================= */
.rag {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: calc(100vh - var(--header-height));
  padding: 0 16px;
  box-sizing: border-box;
}
.rag__sidebar {
  width: 260px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 20px 4px 20px 0;
  overflow-y: auto;
}
.rag__logo { display: inline-block; align-self: flex-start; margin: 4px 0 18px; }
.rag__logo .layout__logo-image { max-width: 100%; }
.rag__sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rag__sidebar-title { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ai-text-light); font-weight: 600; }
.rag__new {
  width: 26px; height: 26px; border: 1px solid var(--ai-border); border-radius: 6px;
  background: #fff; color: var(--ai-primary); font-size: 18px; line-height: 1; cursor: pointer;
}
.rag__new:hover { background: var(--ai-bg-light); }
.rag__history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rag__history-item { display: flex; align-items: center; border-radius: 8px; }
.rag__history-item._active .rag__history-link { color: var(--ai-primary); }
.rag__history-link {
  flex: 1; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 9px 10px; font-size: 14px; color: var(--ai-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rag__history-del { border: 0; background: none; color: var(--ai-text-lighter); cursor: pointer; padding: 4px 8px; opacity: 0; display: inline-flex; align-items: center; transition: opacity .12s, color .12s; }
.rag__history-item:hover .rag__history-del, .rag__history-del:focus-visible { opacity: 1; }
.rag__history-del:hover { color: var(--ai-error); }

/* Приветствие свёрнуто: видны первые строки с фейдом, полный текст — по пилюле-шеврону. */
.rag-welcome { position: relative; }
.rag-welcome__text { transition: max-height .3s ease; }
.rag-welcome._collapsed .rag-welcome__text {
  max-height: 96px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent);
  mask-image: linear-gradient(to bottom, #000 52%, transparent);
}
.rag-welcome__toggle {
  display: flex; align-items: center; justify-content: center; margin: 6px auto 0;
  width: 56px; height: 28px; border: 1px solid var(--ai-border); border-radius: 999px;
  background: #fff; color: var(--ai-text-light); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background-color .15s, border-color .15s, color .15s;
}
.rag-welcome__toggle:hover { background: var(--ai-bg-light); }
.rag-welcome:not(._collapsed) .rag-welcome__toggle { border-color: var(--ai-secondary); color: var(--ai-primary); }
.rag-welcome__toggle svg { transition: transform .2s; }
.rag-welcome:not(._collapsed) .rag-welcome__toggle svg { transform: rotate(180deg); }

.rag__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rag__topbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 4px; }
.rag__gpt-info { border: 0; background: none; color: var(--ai-text-lighter); cursor: pointer; display: inline-flex; padding: 2px; }
.rag__gpt-label { font-size: 14px; font-weight: 600; color: var(--ai-text); }
.rag__gpt-switch {
  width: 42px; height: 24px; border-radius: 12px; background: var(--ai-primary);
  display: inline-flex; align-items: center; padding: 2px; text-decoration: none; transition: background .2s;
}
.rag__gpt-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ai-primary);
  display: inline-flex; align-items: center; justify-content: center; margin-left: 18px; transition: margin .2s;
}

.rag__feed { flex: 1; overflow-y: auto; padding: 8px 8px 24px; display: flex; flex-direction: column; gap: 22px; }
/* Лента прижата к низу: первое сообщение — у поля ввода, новые вытесняют
   старые вверх (как в чатах). margin-top: auto, а не justify-content:
   flex-end — с flex-end у переполненной колонки ломается прокрутка к началу. */
.rag__feed > :first-child { margin-top: auto; }
.rag-msg { max-width: 760px; width: 100%; }
.rag-msg--user { align-self: flex-end; display: flex; justify-content: flex-end; }
.rag-msg__bubble {
  background: #e7f3ef; color: var(--ai-text); border-radius: 14px; padding: 10px 16px;
  max-width: 70%; white-space: pre-wrap; word-wrap: break-word; font-size: 15px;
}
.rag-msg__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rag-msg__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.rag-msg__who b { display: block; font-size: 15px; color: var(--ai-text); }
.rag-msg__who span { font-size: 12px; color: var(--ai-text-lighter); }
.rag-msg__body { font-size: 15px; line-height: 1.6; color: var(--ai-text); word-wrap: break-word; }
.rag-msg__body a { color: var(--ai-primary); }
.rag-msg__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ai-text-light); }
.rag-dots { display: inline-flex; gap: 3px; }
.rag-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai-secondary); animation: rag-dot 1s infinite ease-in-out; }
.rag-dots i:nth-child(2) { animation-delay: .15s; }
.rag-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rag-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.rag__composer {
  display: flex; align-items: center; gap: 8px; margin: 4px 8px 20px;
  border: 1px solid var(--ai-border); border-radius: 26px; padding: 6px 6px 6px 18px; background: #fff;
}
.rag__composer:focus-within { border-color: var(--ai-primary); }
.rag__input { flex: 1; border: 0; outline: 0; font-size: 15px; color: var(--ai-text); background: none; padding: 8px 0; }
.rag__send {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--ai-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.rag__send:disabled { opacity: .5; cursor: default; }

@media (max-width: 760px) {
  .rag { flex-direction: column; height: auto; padding: 0; }
  .rag__sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--ai-border); padding: 12px 16px; max-height: 160px; }
  .rag__logo { display: none; }
  .rag__main { min-height: calc(100vh - var(--header-height) - 180px); }
}

/* ================= Страница результатов поиска (/search) ================= */
.search-results { width: 100%; }
.search-results__count { font-size: 22px; font-weight: 700; color: var(--ai-text); margin: 0 0 4px; }
.search-results__query { font-size: 14px; color: var(--ai-text-light); margin: 0 0 18px; }
.search-results__list { display: flex; flex-direction: column; gap: 16px; }
.search-card {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--ai-border); border-radius: 10px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.search-card:hover { box-shadow: var(--shadow-medium); border-color: var(--ai-border-light); }
.search-card__logo { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.search-card__body { min-width: 0; }
.search-card__title { font-size: 17px; font-weight: 700; color: var(--ai-text); margin: 2px 0 6px; }
.search-card:hover .search-card__title { color: var(--ai-primary); }
.search-card__snippet {
  font-size: 14px; color: var(--ai-text-light); margin: 0 0 10px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-card__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ai-text-lighter); }
.search-card__score {
  position: absolute; top: 14px; right: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--ai-text-light);
}
.search-card__score svg { color: #f5a623; }
.search-results__empty { padding: 32px 0; color: var(--ai-text-light); }
.search-results__empty p { margin-top: 8px; font-size: 14px; }

/* Источники ответа: плашка с мини-логотипами и всплывающая панель списка. */
.rag-sources { margin-top: 14px; position: relative; display: block; }
.rag-sources__chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ai-border); border-radius: 999px; background: #fff;
  padding: 5px 14px 5px 8px; cursor: pointer; font-size: 14px; color: var(--ai-text);
  transition: border-color .15s, box-shadow .15s;
}
.rag-sources__chip:hover { border-color: var(--ai-secondary); box-shadow: 0 0 0 3px rgba(54,157,140,.15); }
.rag-sources__avatars { display: inline-flex; }
.rag-sources__avatars img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: #fff; }
.rag-sources__avatars img:first-child { margin-left: 0; }
.rag-sources__panel {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 60;
  background: #fff; border: 1px solid var(--ai-border); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 14px 18px;
  min-width: 300px; max-width: 380px; max-height: 320px; overflow-y: auto;
}
.rag-sources__panel-title { font-size: 13px; color: var(--ai-text-light); margin-bottom: 6px; }
.rag-source { display: flex; gap: 12px; align-items: center; padding: 9px 0; text-decoration: none; color: inherit; }
.rag-source img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.rag-source__site { display: block; font-weight: 700; font-size: 14px; color: var(--ai-text); }
.rag-source__title { display: block; font-size: 13px; color: var(--ai-text-light); }
.rag-source:hover .rag-source__site { color: var(--ai-primary); }

/* Модальное окно входа (шапка → «Войти»): форма в дизайне публичных модалок. */
.login-modal .custom-modal__dialog { max-width: 360px; }
.login-modal .custom-modal__content { padding: 22px 26px 26px; }
.login-modal__form { display: flex; flex-direction: column; }
.login-modal__label { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ai-text-lighter); margin: 0 0 6px; }
.login-modal__label + .login-modal__label, .login-modal__input + .login-modal__label { margin-top: 14px; }
.login-modal__input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--ai-border); border-radius: 10px; padding: 11px 14px;
  font-size: 15px; color: var(--ai-text); outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-modal__input:focus { border-color: var(--ai-primary); box-shadow: 0 0 0 3px rgba(0,102,85,.12); }
.login-modal__remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ai-text); margin: 14px 0 0; cursor: pointer; user-select: none; }
.login-modal__remember input { width: 16px; height: 16px; accent-color: var(--ai-primary); cursor: pointer; }
.login-modal__error { color: var(--ai-error); font-size: 13.5px; margin: 10px 0 0; }
.login-modal__submit {
  margin-top: 18px; width: 100%; border: 0; border-radius: 24px; padding: 12px 18px; cursor: pointer;
  background: var(--ai-primary); color: #fff; font-size: 15px; font-weight: 600;
  transition: filter .15s;
}
.login-modal__submit:hover { filter: brightness(1.08); }
.login-modal__submit:disabled { opacity: .6; cursor: default; }

/* Страница «Категории вопросов» (/questions): заголовок и плашки категорий. */
.qcat-heading {
  font-size: 28px;
  font-weight: 500;
  margin: 8px 0 22px;
}
.qcat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
}
.qcat-btn {
  display: block;
  padding: 18px 24px;
  background: #f2f2f2;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s;
}
.qcat-btn:hover {
  background: #e2e2e2;
}
.qcat-support {
  margin-top: 42px;
  max-width: 1120px;
}

/* Публичный кабинет HelpEddy повторяет интерфейс knowledge/UserPage. */
.user-portal {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 200px);
  padding-bottom: 50px;
}
.user-portal .category-page__breadcrumbs { margin: 24px 0 50px; padding: 0; }
.user-portal__profile { margin-bottom: 24px; }
.user-portal__profile-details { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.user-portal__name { margin: 0; color: #111827; font-size: 24px; line-height: 1.2; font-weight: 500; }
.user-portal__email { margin: 0; color: #6b7280; font-size: 16px; }
.user-portal__logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: all .2s ease;
}
.user-portal__logout:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(220,38,38,.3); }
.user-portal__logout:focus { outline: none; box-shadow: 0 0 0 2px rgba(220,38,38,.2); }
.user-portal__main-buttons { display: flex; align-items: flex-start; }
.user-portal__create, .user-modal__submit, .user-reply__submit {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border: 0; border-radius: 8px;
  background: #006655; color: #fff; cursor: pointer; text-decoration: none; font-family: inherit;
  font-size: 16px; font-weight: 600; transition: all .2s ease;
}
.user-portal__create { margin-bottom: 32px; }
.user-portal__create:hover, .user-modal__submit:hover, .user-reply__submit:hover { background: #005544; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,102,85,.3); }
.user-portal__create:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,102,85,.2); }
.user-portal__heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.user-portal__heading { flex-shrink: 0; margin: 0; color: #111827; font-size: 24px; line-height: 1.2; font-weight: 500; }
.user-portal__tabs { display: flex; flex-shrink: 0; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid #e5e7eb; }
.user-portal__tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; background: none; color: #6b7280; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s ease; }
.user-portal__tab:hover { color: #374151; background: #f9fafb; }
.user-portal__tab span { min-width: 18px; padding: 2px 6px; border-radius: 10px; background: #e5e7eb; color: #374151; font-size: 12px; font-weight: 600; text-align: center; }
.user-portal__tab._active { color: #006655; background: none; }
.user-portal__tab._active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #006655; }
.user-portal__tab._active span { background: #006655; color: #fff; }
.user-portal__state { margin: 24px 0; color: #6b7280; }
.user-portal__state_empty-open {
  box-sizing: border-box;
  margin: 24px 0 0;
  padding: 40px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
.user-portal__error { color: #b42318; }
.user-portal__tickets { display: grid; gap: 16px; margin-top: 24px; }
.user-ticket { position: relative; overflow: visible; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; transition: all .2s ease; }
.user-ticket:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.user-ticket__summary { position: relative; display: block; width: 100%; padding: 20px 20px 32px; border: 0; border-radius: 8px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: all .2s ease; }
.user-ticket__summary:hover { background: #f9fafb; }
.user-ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.user-ticket__title { flex: 1; min-width: 0; margin: 0; color: #111827; font-size: 18px; font-weight: 600; }
.user-ticket__status { flex: none; padding: 4px 12px; border-radius: 16px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.user-ticket__status._progress { background: #dbeafe; color: #1e40af; }
.user-ticket__status._done { background: #d1fae5; color: #065f46; }
.user-ticket__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: #6b7280; font-size: 14px; }
.user-ticket__chevron { position: absolute; left: 50%; bottom: -12px; display: grid; place-items: center; width: 24px; height: 24px; padding: 2px; border: 1px solid #e5e5e5; border-radius: 50%; background: #fff; color: #6b7280; box-shadow: 0 2px 4px rgba(0,0,0,.1); transition: all .3s ease; transform: translateX(-50%); }
.user-ticket._open .user-ticket__chevron { transform: translateX(-50%) rotate(180deg); }
.user-ticket__body { padding: 28px 32px 32px; border-top: 1px solid #f3f4f6; background: #fff; }
.user-ticket__loading { color: #6b7280; }
.user-ticket__chat { display: flex; flex-direction: column; gap: 16px; min-height: 220px; padding: 16px 0 28px; }
.user-message-row { display: flex; align-items: flex-start; }
.user-message-row._user { justify-content: flex-end; }
.user-message-row._support { justify-content: flex-start; }
.user-message {
  box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; max-width: 85%;
  padding: 16px; border-radius: 8px; background: #fff; color: #1f2937;
}
.user-message._user { align-items: flex-end; max-width: 70%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 15px 0 15px 15px; background: #f0fdf4; }
.user-message__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.user-message__avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #006655; color: #fff; }
.user-message__avatar-icon { width: 18px; height: 18px; }
.user-message__author { color: #006655; font-size: 14px; font-weight: 600; }
.user-message__text { max-width: 100%; color: #374151; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.user-message__files { display: flex; flex-direction: column; gap: 10px; width: 100%; color: #374151; text-align: left; }
.user-message__files-label { line-height: 1.5; }
.user-message__files-list { display: flex; flex-wrap: wrap; gap: 10px; }
.user-message-file { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; max-width: 110px; color: inherit; text-decoration: none; }
.user-message-file:hover { color: #006655; text-decoration: none; }
.user-message-file__sheet { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 9px; background: #2196f3; color: #fff; box-shadow: 0 5px 14px rgba(33,150,243,.24); }
.user-message-file__sheet svg { width: 30px; height: 30px; }
.user-message-file__extension { position: absolute; right: -5px; bottom: -5px; min-width: 34px; padding: 2px 4px; border-radius: 4px; background: #fff; color: #2196f3; box-shadow: 0 2px 5px rgba(0,0,0,.16); font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; }
.user-message-file__name { width: 100%; overflow: hidden; color: #6b7280; font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.user-message__time { margin-top: 4px; color: #9ca3af; font-size: 11px; opacity: .75; }
.user-message._user .user-message__time { text-align: right; }
.user-message._support .user-message__time { text-align: left; }
.user-reply { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 4px; padding-top: 24px; border-top: 1px solid #f3f4f6; }
.user-reply__files-control { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.user-reply__file-input { display: none; }
.user-reply__file-button { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 14px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #111827; cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.user-reply__file-button:hover { border-color: #006655; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.user-reply__file-icon { width: 18px; height: 18px; }
.user-reply__selected { display: flex; flex-wrap: wrap; gap: 6px; }
.user-reply__selected-item { display: inline-flex; align-items: center; gap: 6px; max-width: 320px; padding: 5px 8px; border-radius: 4px; background: #f3f4f6; font-size: 12px; }
.user-reply__selected-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-reply__selected-remove { flex: none; padding: 0 3px; border: 0; background: none; color: #dc2626; cursor: pointer; font-size: 17px; line-height: 1; }
.user-reply__error { margin: 0; color: #b42318; font-size: 13px; }
.user-reply__input { box-sizing: border-box; width: 100%; min-height: 110px; resize: vertical; border: 1px solid #cfd5dc; border-radius: 6px; padding: 13px 15px; color: #374151; font: inherit; line-height: 1.5; }
.user-reply__input:focus { outline: none; border-color: #006655; box-shadow: 0 0 0 3px rgba(0,102,85,.1); }
.user-reply__submit { align-self: flex-end; min-width: 150px; padding: 13px 20px; justify-content: center; }

.user-modal-open { overflow: hidden; }
.user-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.48); }
.user-modal__dialog { position: relative; width: min(660px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 8px; background: #fff; box-shadow: 0 16px 50px rgba(0,0,0,.22); }
.user-modal__close { position: absolute; right: 20px; top: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f4f6f7; color: #344054; cursor: pointer; font-size: 29px; line-height: 1; }
.user-modal__step { padding: 38px 50px 42px; }
.user-modal__step h2 { margin: 0 54px 24px 0; font-size: 24px; line-height: 1.25; }
.user-modal__categories { display: grid; gap: 8px; }
.user-modal__category { display: block; width: 100%; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; color: #20242a; padding: 13px 16px 13px calc(16px + var(--depth, 0) * 20px); text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.user-modal__category:hover { border-color: #007563; color: #007563; background: #f4fbf8; }
.user-modal__empty { margin: 0; color: #747b8a; }
.user-modal__form { display: flex; flex-direction: column; padding: 38px 50px 42px; }
.user-modal__back { align-self: flex-start; border: 0; background: transparent; color: #007563; padding: 0; margin: 0 0 16px; font: inherit; font-weight: 700; cursor: pointer; }
.user-modal__chosen { margin: 0 0 22px; color: #747b8a; font-weight: 700; }
.user-modal__form label { margin: 0 0 9px; color: #344054; font-weight: 700; }
.user-modal__form input, .user-modal__form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd5dc; border-radius: 6px; padding: 14px 16px; font: inherit; }
.user-modal__form input[type="file"] { padding: 12px; background: #fafbfc; }
.user-modal__form textarea { min-height: 190px; resize: vertical; }
.user-modal__form input + label { margin-top: 26px; }
.user-modal__error { margin: 12px 0 0; color: #b42318; }
.user-modal__submit { align-self: center; min-width: 170px; margin-top: 30px; }
.user-modal__submit:disabled, .user-reply__submit:disabled { opacity: .55; cursor: default; }

@media (max-width: 1085px) {
  .user-portal { padding-bottom: 24px; }
  .user-portal .category-page__breadcrumbs { margin-bottom: 32px; }
}
@media (max-width: 768px) {
  .user-portal__heading-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .user-portal__heading { font-size: 20px; }
  .user-portal__name { font-size: 20px; }
  .user-portal__profile-details { flex-direction: column; align-items: flex-start; gap: 8px; }
  .user-portal__tabs { flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
  .user-portal__tab { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .user-portal__heading-row { gap: 24px; }
  .user-portal__heading { margin-bottom: 16px; }
  .user-portal__tabs { flex-direction: column; gap: 4px; border-bottom: 0; }
  .user-portal__tab { justify-content: space-between; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 6px; }
  .user-portal__tab._active { border-color: #006655; background: #f0fdf4; }
  .user-portal__tab._active::after { display: none; }
  .user-portal__state_empty-open { padding: 30px 15px; font-size: 14px; }
  .user-ticket__summary, .user-ticket__body { padding-left: 18px; padding-right: 18px; }
  .user-ticket__top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .user-ticket__body { padding: 18px; }
  .user-ticket__chat { min-height: 120px; }
  .user-message._user { max-width: 90%; }
  .user-message._support { max-width: 100%; }
  .user-message { padding: 12px; }
  .user-message__header { gap: 8px; }
  .user-message__avatar { width: 28px; height: 28px; }
  .user-message__avatar-icon { width: 16px; height: 16px; }
  .user-message__text { font-size: 14px; }
  .user-message__time { font-size: 10px; }
  .user-reply__selected-item { max-width: 100%; }
  .user-reply__submit { width: 100%; }
  .user-modal { align-items: start; padding: 14px; }
  .user-modal__dialog { max-height: calc(100vh - 28px); }
  .user-modal__step { padding: 68px 22px 28px; }
  .user-modal__form { padding: 68px 22px 28px; }
}
