body {
  font-family: 'Inter', 'Noto Sans Thai', 'Arial', sans-serif;
}

.button-orange {
  background-color: #f75622;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out, opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
}

/* Hover эффект */
.button-orange:hover {
  background-color: #e04518;
}

.button-blue {
  background-color: #0ba4fc;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out, opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
}

.button-blue:hover {
  background-color: #0994e0;
}

.button-red {
  background-color: #e3342f;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out, opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
}

.button-red:hover {
  background-color: #c12d29;
}

.button-social {
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out, opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.button-social-blue {
  background-color: #0ba4fc;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;     /* вертикально по центру */
  justify-content: center; /* горизонтально */
  font-size: 15px;
  line-height: 1.2; /* меньше высота строки */
}

.button-social-green {
  background-color: #38c172;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;     /* вертикально по центру */
  justify-content: center; /* горизонтально */
  font-size: 15px;
  line-height: 1.2; /* меньше высота строки */
}

.button-social-orange {
  background-color: #f75622;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;     /* вертикально по центру */
  justify-content: center; /* горизонтально */
  font-size: 15px;
  line-height: 1.2; /* меньше высота строки */
}

.button-social-blue:hover {
  background-color: #0994e0;
}

.button-social-orange:hover {
  background-color: #e04518;
}

.button-social-green:hover {
  background-color: #0b7033;
}

@media (max-width: 640px) {
  .button-orange,
  .button-blue,
  .button-red {
    font-size: 14px;
    padding: 8px 16px;
    width: 100%;
    max-width: 200px;
  }
  .button-social {
    font-size: 14px;
    padding: 8px 16px;
    width: 100%;
  }
}

/*filter-button*/
.button-orange-filter {
  background-color: #f75622;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out, opacity 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  white-space: nowrap;
}

.button-orange-filter:hover {
  background-color: #e04518;
}

@media (max-width: 640px) {
  .button-orange-filter {
    font-size: 14px;
    padding: 8px 16px;
    max-width: 100%;
  }
}

button.bg-transparent:hover {
  background-color: rgba(0, 0, 0, 0.05); /* лёгкий светло-серый */
  border-radius: 50%;
}

/*sticky-button*/
.sticky-button {
  position: fixed;
  background-color: #f75622;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 200px;
}

.sticky-button.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Десктопная позиция */
#sticky-find-button {
  right: 30px;
  bottom: 40px;
}

#sticky-executor-button {
  right: 30px;
  bottom: 90px; /* чтобы была выше второй */
}

/* Мобильная версия — кнопки на весь экран */
@media (max-width: 640px) {
  .sticky-button {
    left: 10px;
    right: 0;
    margin: 0 auto;
    width: 95%;
    border-radius: 10px;
    max-width: 100%;
    padding: 10px 0;
    font-size: 16px;
  }

  #sticky-response-button,
  #sticky-find-button {
    bottom: 10px;
  }

  #sticky-executor-button {
    bottom: 60px; /* Высота нижней кнопки */
  }
}

/* Десктопная позиция — сверху справа */
#sticky-response-button {
  position: fixed;     /* ОБЯЗАТЕЛЬНО — иначе top/right не работают */
  right: 100px;        /* вот тут сдвигаешь левее — например, 100px от правого края */
  top: 100px;          /* сверху на десктопе */
  bottom: auto;        /* сбрасываем */
  z-index: 9999;       /* чтобы не перекрывали другие элементы */
}

/* Мобильная версия — внизу, как у остальных */
@media (max-width: 640px) {
  #sticky-response-button {
    top: auto;     /* сбросим top */
    bottom: 30px;  /* внизу */
  }
}

.favorite-button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #ffcc00;
    transition: transform 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.2);
}

.favorite-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#favorite-count {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* === Формы проекта === */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #0ba4fc;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-control:focus {
  border-color: #083a60;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* Оранжевый */
.text-orange {
  color: #f75622;
}
.text-orange:hover {
  color: #9e2805;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-orange-nohover {
  color: #f75622;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Голубой */
.text-blue {
  color: #0ba4fc;
}
.text-blue:hover {
  color: #2569b1;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-blue-nohover {
  color: #0ba4fc;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Зелёный */
.text-green {
  color: #38c172;
}
.text-green:hover {
  color: #0b7033;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-green-nohover {
  color: #38c172;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Жёлтый */
.text-yellow {
  color: #fdc622;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-yellow:hover {
  color: #9c7c05;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-yellow-nohover {
  color: #fdc622;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Красный */
.text-red {
  color: #e3342f;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-red:hover {
  color: #a1120a;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-red-nohover {
  color: #e3342f;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Чёрный */
.text-black {
  color: #000;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-black:hover {
  color: #f75622;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-black-nohover {
  color: #000;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/* Белый на тёмном фоне */
.text-white {
  color: #fff;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-white:hover {
  color: #000;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}
.text-white-nohover {
  color: #fff;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

/*.bg-orange {*/
/*  background-color: #f75622;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-orange:hover {*/
/*  background-color: #9e2805;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-orange-nohover {*/
/*  background-color: #f75622;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/*.bg-blue {*/
/*  background-color: #0ba4fc;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-blue:hover {*/
/*  background-color: #2569b1;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-blue-nohover {*/
/*  background-color: #0ba4fc;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/*.bg-yellow {*/
/*  background-color: #fdc622;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-yellow:hover {*/
/*  background-color: #9c7c05;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-yellow-nohover {*/
/*  background-color: #fdc622;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/*.bg-red {*/
/*  background-color: #e3342f;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-red:hover {*/
/*  background-color: #a1120a;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-red-nohover {*/
/*  background-color: #e3342f;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/*.bg-black {*/
/*  background-color: #000;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-black:hover {*/
/*  background-color: #f75622; !* Оранжевая подсветка при наведении *!*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-black-nohover {*/
/*  background-color: #000;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/*.bg-white {*/
/*  background-color: #fff;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-white:hover {*/
/*  background-color: #000;*/
/*  color: #fff;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/
/*.bg-white-nohover {*/
/*  background-color: #fff;*/
/*  font-family: 'Inter', 'Noto Sans Thai', sans-serif;*/
/*}*/

/* === Дополнительные шрифтовые стили === */
.heading-lg {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.3;
}

.paragraph {
  font-size: 1rem;
  line-height: 1.5;
  color: #000000;
}

.paragraph-sm {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #000000;
}

/* avatar ico */
.button-bar {
  display: flex;
  align-items: center;
  gap: 12px; /* расстояние между кнопками */
  justify-content: center; /* выравнивание по центру */
  flex-wrap: wrap; /* перенос на новую строку при необходимости */
  margin: 16px 0;
}

.button-bar .icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.button-bar svg {
  width: 100%;
  height: 100%;
  max-width: 48px; /* подгон под кнопку */
  max-height: 48px;
}

.button-bar svg {
  width: 100%;
  height: 100%;
  max-width: 48px; /* подгон под кнопку */
  max-height: 48px;
}

.button-bar .icon-btn,
.button-bar .icon,
.button-bar .upload-label {
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: background-color 0.2s ease;
}

.button-bar .icon-btn:hover,
.button-bar .icon:hover,
.button-bar .upload-label:hover {
  background-color: #e0e0e0;
}

.button-bar input[type="file"] {
  display: none;
}

.button-bar svg {
  width: 24px;
  height: 24px;
  color: #0ba4fc;
}


/* profile ico */
.icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    display: inline-block;
    transform-origin: center center;
}

.icon.small {
  width: 18px;   /* 30 * 0.6 */
  height: 18px;
  transform: none;  /* отключаем масштаб */
}

.icon.medium {
  transform: scale(1);
}

.icon.large {
  transform: scale(1.4);
}

/* Цвета отдельно */
.icon-blue {
    color: #0ba4fc;
}

.icon-red {
    color: #e3342f;
}

.icon-orange {
    color: #f75622;
}

.icon-yellow {
    color: #fdc622;
}

.icon-green {
    color: #38c172;
}

.icon-white {
    color: #fff;
}

.icon-gray {
    color: #595858;
}

.icon-black {
    color: #000;
}

.custom-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* расстояние между иконкой и текстом */
    padding: 6px 12px;
    border: 1.5px solid #0ba4fc; /* твой синий */
    background-color: #fff;
    color: #0ba4fc;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px; /* круглые края */
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap; /* чтобы не переносилось на новую строку */
}

.custom-chat-btn:hover {
    background-color: #dcfce7; /* светло-зеленый */
    color: #38c172; /* зеленый */
}

/* Класс для отключения hover */
.custom-chat-btn.no-hover:hover {
  background-color: transparent !important;
  color: #f75622 !important; /* ярко-оранжевый */
  cursor: default !important;
}

.custom-chat-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

@media (max-width: 640px) {
  .custom-chat-btn .chat-text {
    display: none;
  }

  .custom-chat-btn:hover .chat-text {
    display: inline;
    position: absolute;
    left: 100%;
    margin-left: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 50;
  }

  .custom-chat-btn {
    position: relative;
  }
}


/* main.css */

.markdown-body {
  font-family: Georgia, serif;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
  max-width: 100%;
  margin-bottom: 2rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 1.2em 0 0.6em;
  font-weight: bold;
  line-height: 1.25;
}

.markdown-body h1 { font-size: 2em; }
.markdown-body h2 { font-size: 1.5em; }
.markdown-body h3 { font-size: 1.25em; }

.markdown-body p {
  margin-bottom: 1em;
  white-space: pre-line; /* чтобы \n работал как <br> */
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1em 2em;
  padding-left: 1em;
}

.markdown-body li {
  margin-bottom: 0.4em;
}

.markdown-body a {
  color: #007bff;
  text-decoration: underline;
}

.markdown-body code {
  background-color: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 90%;
}

.markdown-body pre {
  background-color: #f4f4f4;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
  margin-bottom: 1em;
}

.markdown-body table {
  border-collapse: collapse;
  margin-bottom: 1em;
  width: 100%;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #ccc;
  padding: 0.5em;
  text-align: left;
}