/* Глобальные 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;
}

@font-face {
  font-family: 'Material Icons';
  src: url(/assets/fonts/MaterialIcons-Regular.aba5a2a316a1d312db26.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
}

.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;
}

.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-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__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;
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

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

.category-block__item._pin:before {
  font-family: 'Material Icons';
  content: 'push_pin';
  background-color: transparent;
  color: #606060;
  height: 0;
  width: 0;
  top: 1px;
  left: -3px;
}

.category-block__link {
  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(/assets/images/support-bg.2c1a8e70d054b7dda6e8.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(/assets/images/1.8397b6fc24658fb0120a.svg);
}
.category-card._13 {
  background-image: url(/assets/images/13.35bfa40a6d4321a4d4c3.svg);
}
.category-card._300 {
  background-image: url(/assets/images/300.9769aee9cb8265adfe61.svg);
}
.category-card._301 {
  background-image: url(/assets/images/301.ad5338c3a7d13385e7bf.svg);
}
.category-card._306 {
  background-image: url(/assets/images/306.33d50d1c6da279777612.svg);
}
.category-card._307 {
  background-image: url(/assets/images/307.6f2f2daa30ad9ef29a1f.svg);
}
.category-card._335 {
  background-image: url(/assets/images/335.bde119bfd3fe151855d6.svg);
}
.category-card._345 {
  background-image: url(/assets/images/345.28bccf39878774fc4e51.svg);
}
.category-card._346 {
  background-image: url(/assets/images/346.63504287001fc6613781.svg);
}
.category-card._349 {
  background-image: url(/assets/images/349.eb7d01e23a5b140f9056.svg);
}
.category-card._350 {
  background-image: url(/assets/images/350.521877dc40397c27937b.svg);
}
.category-card._351 {
  background-image: url(/assets/images/351.80bd4b9eec409325bf41.svg);
}
.category-card._352 {
  background-image: url(/assets/images/352.c5fc0f9c8a6a0c49063a.svg);
}
.category-card._353 {
  background-image: url(/assets/images/353.660fce32829aad44aa09.svg);
}
.category-card._354 {
  background-image: url(/assets/images/354.b3246423a1a86c91bfcd.svg);
}
.category-card._355 {
  background-image: url(/assets/images/355.2ad2329cace4eccfde11.svg);
}
.category-card._356 {
  background-image: url(/assets/images/356.595333f01ea9914b58c0.svg);
}
.category-card._357 {
  background-image: url(/assets/images/357.259088006530ee735b0b.svg);
}
.category-card._358 {
  background-image: url(/assets/images/358.a64e9ada49cf223ae522.svg);
}
.category-card._411 {
  background-image: url(/assets/images/411.71b13f1af9ac32cc3b48.svg);
}
.category-card._435 {
  background-image: url(/assets/images/435.f81c704a8774cb2ac0db.svg);
}
.category-card._644 {
  background-image: url(/assets/images/644.5f88afd9341dfe86d47a.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) { background: var(--ai-secondary); 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); }
.global-search__search-btn:disabled { background: var(--ai-border); color: var(--ai-text-lighter); 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(/assets/images/support-bg.2c1a8e70d054b7dda6e8.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%;
  }
}

/* ===== ЗАГРУЗКА ===== */
.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;
}

/* Стили для форм и 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) {
  margin-bottom: 32px;
}

/* ===== МОИ ВОПРОСЫ ===== */
.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: 16px;
}

.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;
}

/* 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;
}

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

/* Левая панель (sidebar) */
.layout__sidebar {
  width: 300px;
  min-width: 300px;
  overflow: visible;
  padding: 16px;
  box-sizing: border-box;
  position: sticky;
  top: var(--header-height, 50px);
  align-self: flex-start;
  margin-right: 50px;
}

/* Логотип в 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);
}

/* Правая панель (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: 9;
  /* 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;
}

/* Основной контент */
.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;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .layout__container {
    flex-direction: column;
  }
  
  .layout__sidebar {
    width: 100%;
    min-width: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    padding: 12px;
    position: static;
    overflow: visible;
  }
  
  .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;
  }
}

/* ===== 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;
}

.global-search__form {
  position: relative;
  width: 100%;
  isolation: isolate; /* Creates a new stacking context */
}

.global-search__input-container {
  position: relative;
  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);
}

/* Logo on the left */
.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; /* Right padding when both buttons visible */
  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;
}

/* 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;
  }
  
  .global-search__input-container {
    height: 44px;
    width: 100%;
    max-width: none;
  }

  .global-search__search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 10px 105px 10px 45px; /* Same as 480px settings */
  }
  
  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px; /* Same as 480px settings */
  }
  
  .global-search__logo {
    width: 34px;
    height: 34px;
    left: 4px; /* Same as 480px settings */
  }
  
  .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 45px; /* Further reduced */
    font-size: 16px;
  }
  
  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px;
  }
  
  .global-search__logo {
    width: 34px;
    height: 34px;
    left: 4px;
  }
  
  .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;
}

/* 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__logo {
  width: 24px;
  height: 24px;
  left: 3px; /* Proportionally smaller than 4px */
}

.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: flex !important; /* Принудительно показываем кнопку */
}

/* Гарантированное позиционирование кнопки очистки */
.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 45px;
  }
  
  .global-search:not(._focused) .global-search__search-input {
    padding-right: 30px;
  }
  
  .global-search__logo {
    left: 4px;
  }
  
  .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;
}

/* Стили 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;
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

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

.category-block__item._pin:before {
  font-family: 'Material Icons';
  content: 'push_pin';
  background-color: transparent;
  color: #606060;
  height: 0;
  width: 0;
  top: 1px;
  left: -3px;
}

.category-block__link {
  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__sub-category {
  margin-bottom: 12px;
}

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

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

/* Стили для статей подкатегорий */
.category-block__subcategory-articles {
  margin-top: 8px;
  margin-left: 22px;
  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;
  }
}

/* Стили 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 {
  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;
  }
}

/* Стили 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: 16px;
}

.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;
}

/* НЕИСПОЛЬЗУЕМЫЙ КОМПОНЕНТ - все стили закомментированы */

/* Стили для компонента 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;
  }
}
*/

/* 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;
  }
}

/* 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;
}

* {
  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;
}

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

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 {
}

/* Стили для красивой иконки закрытия */
.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);
}

/* Стили для мобильного меню */
.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;
  }
}

/* Стили для гамбургер иконки */
.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;
  }
}

.custom-modal__close-button {
  position: absolute !important;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #fff !important;
  padding: 6px !important;
  @media (max-width: 460px) {
    top: 6px;
    right: 6px;
  }
}

.custom-modal__top {
  width: 100% !important;
  padding: 16px 0 !important;
  background-color: #369D8C !important;
  box-shadow: none !important;
  border-radius: 5px 5px 0 0 !important;
  @media (max-width: 460px) {
    padding: 12px 0 !important;
  }
}

.custom-modal__title {
  min-height: auto !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 0 50px 0 20px !important;
}

.custom-modal__content {
  background-color: #fff;
  padding: 24px 20px !important;
  @media (max-width: 460px) {
    padding: 16px 12px !important;
  }
}

.custom-modal .MuiDialog-paper {
  width: 100%;
  min-width: 500px;
  border-radius: 4px;
  background-color: transparent;
  margin: 40px 24px 24px;
  padding: 0;
  @media (max-width: 600px) {
    min-width: auto;
    margin: 12px;
  }
  @media (max-width: 460px) {
    max-width: calc(100% - 24px) !important;
  }
}
.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;
}
.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;
}
.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;
}

/* Стили для уведомления о 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;
  }
}

