/* =========================================================
   Техническо ръководство „Публикувай сайт с Claude и Bulinfo.net“
   Всички класове започват с префикс howtoAI_.
   Шрифт: 'Open Sans' (като на сайта), с резервен sans-serif.
   Палитра: 3 цвята + неутрални сиви
     1) лилаво  #4949c9  – основен акцент
     2) Claude  #d97757  – думата Claude
     3) зелено  #3fae6a  – препоръчително / резултат
   ========================================================= */

.howto-ai-page {
    display: grid;
	grid-template-areas: 
		'main side';
	grid-template-columns: 1fr 300px;
	grid-gap: 50px;
    width: 1220px;
    margin: 0 auto;
    padding: 35px 0px 30px;
}

.howto-ai-page .main	{ grid-area: main; }
.howto-ai-page .side	{ grid-area: side; }

.howto-ai-page .side .sticky {
    position: sticky;
    top: 20px;
}

@media (max-width: 1260px) {
    .howto-ai-page {
        width: 100%;
        max-width: 800px;
        padding: 20px 15px 40px;
        box-sizing: border-box;
        grid-template-areas:
			'main';
        grid-template-columns: 1fr;
        grid-gap: 50px;
    }
	
	.howto-ai-page .side {
		display: none;
	}
	
	.howtoAI_finish2_item {
    align-items: center;
}
}

aicontent {
	display: block;
	padding: 15px 20px 26px 22px;
    border: 1px solid #dbdbdb;
	border-bottom-width: 7px;
    border-radius: 10px;
    background: #fff;
}

aicontent p {
	margin: 5px 0 15px;
    font-size: 28px;
    font-weight: 300;
}

aicontent ul {
	padding-left: 20px;
	margin: 0;
}

aicontent li {
	list-style: square;
	margin-bottom: 10px;
}

aicontent li:last-of-type {
	margin-bottom: 0;
}

aicontent a {
	color: #09F;
	font-size: 18px;
	font-weight: 500;
	text-decoration: underline;
}

aicontent a:hover {
	color: #4949c9;
	text-decoration: none;
}

.howtoAI_guide {
  --howtoAI_heading: #666;
  --howtoAI_dark: #444;
  --howtoAI_text: #666;
  --howtoAI_line: #dbdbdb;
  --howtoAI_line_soft: #e3e3e3;
  --howtoAI_neutral_soft: #f5f5f5;

  --howtoAI_accent: #4949c9;
  --howtoAI_accent_text: #4c4acc;
  --howtoAI_accent_soft: #edf3ff;
  --howtoAI_accent_edge: #9393d3;
  --howtoAI_accent_ring: #4949c970;

  --howtoAI_claude: #d97757;
  --howtoAI_bulinfo: #09F;

  --howtoAI_green: #3fae6a;
  --howtoAI_green_soft: #f6fbf8;
  --howtoAI_green_line: #d3ecdc;
  --howtoAI_green_edge: #b5e0c5;

  --howtoAI_radius: 10px;

  box-sizing: border-box;
  width: 100%;
  max-width: 870px;
  margin: 0 auto;
  padding: 0 0 24px;
  font-family: 'Open Sans', sans-serif;
  color: var(--howtoAI_text);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.howtoAI_guide *,
.howtoAI_guide *::before,
.howtoAI_guide *::after {
  box-sizing: inherit;
}

.howtoAI_guide p {
  margin: 0 0 1em;
}

.howtoAI_guide p .phone {
	display: inline-block;
    background: url("/img/ico/phone.svg") 0 center no-repeat;
	background-size: auto 20px;
	padding-left: 23px;
}

.howtoAI_guide p .phone a {
    font-weight: bold;
}

.howtoAI_guide p .phone i {
	font-size: 16px;
}

.howtoAI_guide strong {
  font-weight: 700;
  color: var(--howtoAI_dark);
}

/* Думата Claude */
.howtoAI_guide .howtoAI_claude {
  color: var(--howtoAI_claude);
  font-weight: 700;
}

/* Думата Bulinfo */
.howtoAI_guide .howtoAI_bulinfo {
  color: var(--howtoAI_bulinfo);
  font-weight: 700;
}

/* SVG икони */
.howtoAI_guide .howtoAI_icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.howtoAI_guide .howtoAI_icon_lg {
  width: 48px;
  height: 48px;
}

/* Линкове */
.howtoAI_link {
  color: var(--howtoAI_accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--howtoAI_accent_ring);
  text-underline-offset: 3px;
}

.howtoAI_link:hover {
  text-decoration-color: var(--howtoAI_accent);
}

/* ---------- Заглавия (с !important заради стиловете на сайта) ---------- */

.howtoAI_gtitle {
  margin: 0 0 14px !important;
  font-size: clamp(30px, 5vw, 42px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: var(--howtoAI_heading) !important;
}

.howtoAI_gh2 {
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-size: clamp(26px, 4vw, 32px) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: var(--howtoAI_heading) !important;
}

.howtoAI_gh2_step {
  margin: 0 !important;
}

.howtoAI_gh3 {
  margin: 32px 0 14px !important;
  padding: 0 !important;
  font-size: 25px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--howtoAI_heading) !important;
}

.howtoAI_gh4 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--howtoAI_heading) !important;
}

.howtoAI_option_title {
  margin: 0 0 8px !important;
  font-size: 17px !important;
}

/* ---------- Заглавна част ---------- */

.howtoAI_ghero {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--howtoAI_line_soft);
}

.howtoAI_gkicker {
  display: inline-block;
  margin: 0 0 14px !important;
  padding: 4px 16px;
  border-radius: 50px;
  background: var(--howtoAI_accent_soft);
  color: var(--howtoAI_accent_text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.howtoAI_glead {
  font-size: 1.4em;
  line-height: 1.3;
  font-weight: 300;
}

.howtoAI_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.howtoAI_meta_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--howtoAI_line);
  border-radius: 50px;
  background: #fff;
  color: var(--howtoAI_dark);
  font-size: 14px;
  font-weight: 600;
}

.howtoAI_meta_item .howtoAI_icon {
  width: 23px;
  height: 23px;
  color: var(--howtoAI_accent);
  transform: scale(1.2);
}

/* ---------- Секции ---------- */

.howtoAI_gsection {
  margin: 0 0 56px;
  scroll-margin-top: 90px;
}

/* Схема на процеса */
.howtoAI_pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.howtoAI_pipe {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 16px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
  text-align: center;
}

.howtoAI_pipe + .howtoAI_pipe::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  width: 20px;
  border-top: 2px dashed var(--howtoAI_accent_edge);
}

.howtoAI_pipe + .howtoAI_pipe::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -9px;
  border: 5px solid transparent;
  border-left: 6px solid var(--howtoAI_accent_edge);
  border-right: 0;
}

.howtoAI_pipe_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--howtoAI_accent_soft);
  color: var(--howtoAI_accent);
}

.howtoAI_pipe_icon .howtoAI_icon {
  width: 34px;
  height: 34px;
}

.howtoAI_pipe_step {
  color: var(--howtoAI_accent_text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.howtoAI_pipe_title {
  color: var(--howtoAI_dark);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.howtoAI_pipe_done {
  border-color: var(--howtoAI_green_edge);
  background: var(--howtoAI_green_soft);
}

.howtoAI_pipe_done .howtoAI_pipe_icon {
  background: #fff;
  color: var(--howtoAI_green);
}

.howtoAI_pipe_done .howtoAI_pipe_step {
  color: var(--howtoAI_green);
}

/* Съдържание */
.howtoAI_toc {
  padding: 16px 20px 8px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
}

.howtoAI_toc_title {
  margin: 0 0 8px !important;
  color: var(--howtoAI_dark);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.howtoAI_toc_list {
  margin: 0;
  padding-left: 1.4em;
}

.howtoAI_toc_list li {
  margin: 0 0 8px;
}

.howtoAI_toc_list li::marker {
  color: var(--howtoAI_accent);
  font-weight: 700;
}

.howtoAI_toc_link {
  color: var(--howtoAI_dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--howtoAI_accent_edge);
  font-size: 18px;
}

.howtoAI_toc_link:hover {
  color: var(--howtoAI_accent);
  border-bottom-color: var(--howtoAI_accent);
}

/* ---------- Заглавна лента на стъпка ---------- */

.howtoAI_shead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--howtoAI_line_soft);
}

.howtoAI_snum {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--howtoAI_accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.howtoAI_slabel {
  margin: 0 0 -4px !important;
  color: var(--howtoAI_accent_text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Номерирани задачи ---------- */

.howtoAI_tasks {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: howtoAI_task;
}

.howtoAI_tasks[start="6"] {
  counter-reset: howtoAI_task 5;
}

.howtoAI_task {
  position: relative;
  margin: 0;
  padding: 0 0 20px 50px;
  counter-increment: howtoAI_task;
}

.howtoAI_task::before {
  content: counter(howtoAI_task);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--howtoAI_accent);
  border: 2px solid var(--howtoAI_accent_ring);
  font-size: 16px;
  font-weight: 700;
}

.howtoAI_task::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 6px;
  left: 16px;
  border-left: 2px dashed var(--howtoAI_line);
}

.howtoAI_task:last-child::after {
  display: none;
}

.howtoAI_task > p:first-child {
  padding-top: 5px;
}

/* Бутони и елементи от интерфейса */
.howtoAI_ui {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--howtoAI_line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--howtoAI_dark);
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* Цена */
.howtoAI_price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 18px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
}

.howtoAI_price_value {
  color: var(--howtoAI_accent);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.howtoAI_price_note {
  font-size: 14px;
}

/* Полета за попълване */
.howtoAI_fields {
  margin: 0 0 16px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  overflow: hidden;
}

.howtoAI_field {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.howtoAI_field + .howtoAI_field {
  border-top: 1px solid var(--howtoAI_line_soft);
}

.howtoAI_field_name {
  margin: 0;
  padding: 12px 16px;
  background: var(--howtoAI_neutral_soft);
  color: var(--howtoAI_dark);
  font-size: 14px;
  font-weight: 700;
}

.howtoAI_field_value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
}

.howtoAI_value {
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--howtoAI_accent_soft);
  color: var(--howtoAI_accent_text);
  font-weight: 700;
  word-break: break-all;
}

.howtoAI_copy {
  display: inline-block;
  user-select: none;
  padding: 4px 14px;
  border: 1px solid var(--howtoAI_accent_ring);
  border-radius: 50px;
  background: #fff;
  color: var(--howtoAI_accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.howtoAI_copy[hidden] {
  display: none;
}

.howtoAI_copy:hover {
  background: var(--howtoAI_accent);
  border-color: var(--howtoAI_accent);
  color: #fff;
}

.howtoAI_copy_done,
.howtoAI_copy_done:hover {
  background: var(--howtoAI_green);
  border-color: var(--howtoAI_green);
  color: #fff;
}

/* ---------- Сравнение на двата варианта за домейна ---------- */

.howtoAI_compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 24px 50px;
}

.howtoAI_option {
  padding: 18px 18px 6px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
}

.howtoAI_option_best {
  border: 2px solid var(--howtoAI_green_edge);
  background: var(--howtoAI_green_soft);
}

.howtoAI_option_tag {
  display: inline-block;
  margin: 0 0 14px !important;
  padding: 2px 12px;
  border-radius: 50px;
  background: var(--howtoAI_green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.howtoAI_option_tag_alt {
  background: var(--howtoAI_accent_soft);
  color: var(--howtoAI_accent_text);
}

.howtoAI_option_diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.howtoAI_node {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  min-width: 74px;
  border: 1px solid var(--howtoAI_line);
  border-radius: 8px;
  background: #fff;
  color: var(--howtoAI_dark);
  font-size: 12px;
  font-weight: 700;
}

.howtoAI_node .howtoAI_icon {
  color: var(--howtoAI_accent);
}

.howtoAI_link_line {
  flex: 1 1 auto;
  position: relative;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.howtoAI_link_line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 2px solid currentColor;
}

.howtoAI_link_auto {
  color: var(--howtoAI_green);
}

.howtoAI_link_manual {
  color: var(--howtoAI_accent_edge);
}

.howtoAI_link_manual::after {
  border-top-style: dashed;
}

/* ---------- Резултат ---------- */

.howtoAI_result {
  margin: 8px 0 0;
  padding: 16px 18px 4px;
  border-left: 7px solid var(--howtoAI_green_edge);
  border-radius: 4px;
  background: var(--howtoAI_green_soft);
}

.howtoAI_result_title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px !important;
  color: var(--howtoAI_green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Бележки ---------- */

.howtoAI_callout {
  margin: 0 0 24px;
  padding: 16px 18px 2px;
  border-left: 7px solid var(--howtoAI_accent_edge);
  border-radius: 4px;
  background: var(--howtoAI_accent_soft);
}

.howtoAI_callout strong {
  color: var(--howtoAI_accent);
}

/* ---------- Картинки (увеличават се при клик) ---------- */

.howtoAI_gfigure {
  margin: 12px 0 8px;
  padding: 0;
}

.howtoAI_guide .howtoAI_img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.howtoAI_guide .howtoAI_img:hover,
.howtoAI_guide .howtoAI_img:focus-visible {
  border-color: var(--howtoAI_accent);
  box-shadow: 0 3px 12px rgba(35, 36, 50, 0.1);
  outline: none;
}

.howtoAI_caption {
  margin-top: 8px;
  color: var(--howtoAI_text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.howtoAI_gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Сигурност на входа ---------- */

.howtoAI_secure {
  margin: 4px 0 28px;
  padding: 2px 20px 6px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
}

.howtoAI_secure .howtoAI_gh3 {
  margin-top: 18px !important;
}

.howtoAI_secure_flow {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}

.howtoAI_secure_box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 120px;
  padding: 14px 8px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: var(--howtoAI_neutral_soft);
  color: var(--howtoAI_accent);
}

.howtoAI_secure_box_claude {
  color: var(--howtoAI_claude);
}

.howtoAI_secure_name {
  color: var(--howtoAI_dark);
  font-size: 16px;
  font-weight: 700;
}

.howtoAI_secure_arrow {
  flex: 1 1 auto;
  position: relative;
  padding: 0 8px 12px;
  text-align: center;
}

.howtoAI_secure_arrow::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 14px;
  bottom: 4px;
  border-top: 2px dashed var(--howtoAI_accent_edge);
}

.howtoAI_secure_arrow::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 0;
  border: 5px solid transparent;
  border-left: 8px solid var(--howtoAI_accent_edge);
  border-right: 0;
}

.howtoAI_secure_label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.howtoAI_secure_note {
  font-size: 15px;
}

/* ---------- Макет: меню Connectors в чата ---------- */

.howtoAI_mock {
  max-width: 420px;
  margin: 12px 0 8px;
  padding: 16px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: var(--howtoAI_neutral_soft);
}

.howtoAI_mock_menu {
  width: 240px;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--howtoAI_line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(35, 36, 50, 0.1);
}

.howtoAI_mock_head {
  margin: 0 0 6px !important;
  color: var(--howtoAI_text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.howtoAI_mock_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px;
  border-radius: 8px;
}

.howtoAI_mock_row_on {
  background: var(--howtoAI_accent_soft);
  box-shadow: 0 0 0 2px var(--howtoAI_accent_ring);
}

.howtoAI_mock_name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--howtoAI_dark);
  font-size: 15px;
  font-weight: 700;
}

.howtoAI_mock_name .howtoAI_icon {
  width: 23px;
  height: 23px;
  color: var(--howtoAI_accent);
}

.howtoAI_toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: var(--howtoAI_line);
}

.howtoAI_toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.howtoAI_toggle_on {
  background: var(--howtoAI_green);
}

.howtoAI_toggle_on::after {
  left: 18px;
}

.howtoAI_mock_input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--howtoAI_line);
  border-radius: 12px;
  background: #fff;
}

.howtoAI_mock_plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--howtoAI_accent);
  color: var(--howtoAI_accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.howtoAI_mock_placeholder {
  color: #999;
  font-size: 14px;
}

/* ---------- Примерни разговори (чат) ---------- */

.howtoAI_chats {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.howtoAI_chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--howtoAI_line);
  border-radius: var(--howtoAI_radius);
  background: #FFF;
}

.howtoAI_chat_label {
  margin: 0 !important;
  color: var(--howtoAI_text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.howtoAI_msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
}

.howtoAI_msg_user {
  align-self: flex-end;
  align-items: flex-end;
}

.howtoAI_msg_claude {
  align-self: flex-start;
  align-items: flex-start;
}

.howtoAI_msg_who {
  padding: 0 6px;
  color: var(--howtoAI_text);
  font-size: 17px;
  font-weight: 700;
}

.howtoAI_bubble {
  margin: 0 !important;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f1f1f1;
  color: var(--howtoAI_dark);
  font-size: 15px;
  line-height: 1.55;
}

.howtoAI_bubble_claude {
  border-radius: 16px 16px 16px 4px;
  background: none;
  color: #3f3a37;
  border: none;
  padding: 0 6px;
}

.howtoAI_bubble_claude strong {
  color: #3f3a37;
}

.howtoAI_chat_small {
  margin: 20px 0 0;
  padding: 16px 18px 18px;
}

/* ---------- „Какво следва“ ---------- */

.howtoAI_timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.howtoAI_tl {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 22px;
}

.howtoAI_tl::before {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 4px;
  left: 20px;
  border-left: 2px dashed var(--howtoAI_line);
}

.howtoAI_tl_last::before {
  display: none;
}

.howtoAI_tl_icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--howtoAI_accent_soft);
  color: var(--howtoAI_accent);
}

.howtoAI_tl_body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 8px;
}

.howtoAI_tl_body p {
  margin-bottom: 0.4em;
}

/* ---------- Финал – карта с отметка ---------- */

.howtoAI_finish2 {
  margin-top: -20px;
  margin-bottom: 0;
  padding: 34px 28px 14px;
  border-bottom: 7px solid #51ae67;
  border-radius: 4px;
  background: var(--howtoAI_green_soft);
  text-align: center;
}

.howtoAI_finish2_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--howtoAI_green_edge);
  color: var(--howtoAI_green);
}

.howtoAI_guide .howtoAI_finish2_badge .howtoAI_icon {
  width: 45px;
  height: 45px;
}

.howtoAI_finish2_title {
  margin: 0 0 8px !important;
  font-size: clamp(26px, 5vw, 32px) !important;
}

.howtoAI_finish2_lead {
  max-width: 560px;
  margin: 0 auto 26px !important;
  color: var(--howtoAI_dark);
  font-size: 1.15em;
  line-height: 1.45;
  font-weight: 600;
}

.howtoAI_finish2_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.howtoAI_finish2_item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--howtoAI_green_line);
  border-radius: var(--howtoAI_radius);
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.howtoAI_finish2_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--howtoAI_green_soft);
  border: 1px solid var(--howtoAI_green_line);
  color: var(--howtoAI_green);
}

.howtoAI_finish2_note {
  max-width: 600px;
  margin: 0 auto 1em !important;
  font-size: 15px;
}

@media (max-width: 760px) {
  .howtoAI_finish2_grid {
    grid-template-columns: 1fr;
  }

  .howtoAI_finish2 {
    padding: 28px 18px 10px;
  }
}

/* ---------- Прозорец за увеличена снимка ---------- */

.howtoAI_lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(35, 36, 50, 0.88);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.howtoAI_lightbox_open {
  opacity: 1;
  visibility: visible;
}

.howtoAI_lightbox_img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.2s ease-out;
}

.howtoAI_lightbox_open .howtoAI_lightbox_img {
  transform: scale(1);
}

.howtoAI_lightbox_close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.howtoAI_lightbox_close::before,
.howtoAI_lightbox_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
}

.howtoAI_lightbox_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.howtoAI_lightbox_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.howtoAI_lightbox_close:hover {
  background: #4949c9;
  border-color: #4949c9;
}

/* ---------- Таблет и мобилни устройства ---------- */

@media (max-width: 902px) {
  .howtoAI_guide {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 760px) {
  .howtoAI_pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .howtoAI_pipe + .howtoAI_pipe::before,
  .howtoAI_pipe + .howtoAI_pipe::after {
    display: none;
  }

  .howtoAI_compare {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .howtoAI_gallery {
    grid-template-columns: 1fr;
  }

  .howtoAI_secure_flow {
    flex-direction: column;
    align-items: stretch;
  }

  .howtoAI_secure_box {
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .howtoAI_secure_arrow {
    padding: 10px 0 10px 54%;
    text-align: left;
  }

  .howtoAI_secure_arrow::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 8px;
    border-top: 0;
    border-left: 2px dashed var(--howtoAI_accent_edge);
  }

  .howtoAI_secure_arrow::after {
    left: calc(50% - 4px);
    right: auto;
    bottom: 0;
    border: 5px solid transparent;
    border-top: 8px solid var(--howtoAI_accent_edge);
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .howtoAI_guide {
    font-size: 15px;
    padding-top: 16px;
  }

  .howtoAI_snum {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .howtoAI_task {
    padding-left: 44px;
  }

  .howtoAI_field {
    grid-template-columns: 1fr;
  }

  .howtoAI_field_name {
    padding: 8px 14px;
  }

  .howtoAI_msg {
    max-width: 94%;
  }

  .howtoAI_lightbox {
    padding: 10px;
  }
}
