/* ==========================================================
   БГМАЙСТОР – модерни подобрения (before/after, CTA, блог)
   Зарежда се след style.css и само допълва темата.
   ========================================================== */

:root {
  --bgm-radius: 18px;
  --bgm-radius-sm: 12px;
  --bgm-shadow: 0 18px 50px -18px rgba(14, 18, 29, 0.35);
  --bgm-shadow-sm: 0 8px 24px -10px rgba(14, 18, 29, 0.25);
  --bgm-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

/* ---------- Общи модерни детайли ---------- */
.th-btn { border-radius: 999px; transition: transform .25s var(--bgm-ease), box-shadow .25s var(--bgm-ease); }
.th-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(246, 138, 10, .6); }

.process-card { border-radius: var(--bgm-radius); transition: transform .35s var(--bgm-ease), box-shadow .35s var(--bgm-ease); }
.process-card:hover { transform: translateY(-6px); box-shadow: var(--bgm-shadow); }

.project-item-img { border-radius: var(--bgm-radius); overflow: hidden; }
.project-item-img img { transition: transform .8s var(--bgm-ease); }
.project-item:hover .project-item-img img { transform: scale(1.06); }

.testi-grid { border-radius: var(--bgm-radius); transition: box-shadow .35s var(--bgm-ease); }
.testi-grid:hover { box-shadow: var(--bgm-shadow); }
.testi-grid_author img { border-radius: var(--bgm-radius-sm); }

.img-box4 .img1 img, .faq-img2 .img1 img { border-radius: var(--bgm-radius); }
.counter-area { border-radius: var(--bgm-radius); }

/* Плавна поява при скрол */
.bgm-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--bgm-ease), transform .8s var(--bgm-ease); }
.bgm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bgm-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Лента с предимства под hero ---------- */
.bgm-trust { background: var(--title-color); position: relative; z-index: 3; }
.bgm-trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.bgm-trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; color: #fff; font-family: var(--title-font); font-weight: 600; font-size: 17px; line-height: 1.25; border-right: 1px solid rgba(255, 255, 255, .08); }
.bgm-trust__item:last-child { border-right: 0; }
.bgm-trust__item i { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(246, 138, 10, .14); color: var(--theme-color); font-size: 19px; }
.bgm-trust__item small { display: block; font-family: var(--body-font); font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 3px; }
@media (max-width: 991px) {
  .bgm-trust__list { grid-template-columns: repeat(2, 1fr); }
  .bgm-trust__item:nth-child(2) { border-right: 0; }
  .bgm-trust__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 480px) {
  .bgm-trust__item { padding: 18px 12px; font-size: 15px; gap: 10px; }
  .bgm-trust__item i { flex-basis: 38px; width: 38px; height: 38px; font-size: 16px; }
}

/* ---------- Секция „Преди и след“ ---------- */
.bgm-ba-section { background: var(--smoke-color2); position: relative; overflow: hidden; }
.bgm-ba-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 138, 10, .16), transparent 70%); pointer-events: none; }
.bgm-ba-section .sec-title span { color: var(--theme-color); }

.bgm-checklist { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.bgm-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--title-color); }
.bgm-checklist li i { color: var(--theme-color); margin-top: 4px; }

.bgm-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.bgm-btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 18px 30px; border-radius: 999px; border: 2px solid var(--title-color); color: var(--title-color); font-family: var(--title-font); font-weight: 700; text-transform: uppercase; font-size: 15px; transition: all .25s var(--bgm-ease); }
.bgm-btn-ghost:hover { background: var(--title-color); color: #fff; }

.bgm-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--bgm-shadow-sm); font-size: 14px; font-weight: 600; color: var(--title-color); }
.bgm-badge i { color: var(--theme-color); }
.bgm-ba-wrap { position: relative; max-width: 520px; margin-inline: auto; }
.bgm-ba-wrap .bgm-badge { position: absolute; z-index: 4; left: 50%; bottom: -18px; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Before / After слайдер ---------- */
.ba-slider { --pos: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: var(--bgm-radius); overflow: hidden; box-shadow: var(--bgm-shadow); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; background: #ddd; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-slider .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-slider .ba-handle { position: absolute; top: 50%; left: var(--pos); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--theme-color); border: 4px solid #fff; color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); cursor: ew-resize; outline: none; }
.ba-slider .ba-handle:focus-visible { box-shadow: 0 0 0 4px rgba(246, 138, 10, .45), 0 8px 22px rgba(0, 0, 0, .35); }
.ba-slider .ba-handle::before { content: "\2039\00a0\203A"; font-size: 28px; font-weight: 700; line-height: 1; margin-top: -3px; }
.ba-slider .ba-label { position: absolute; top: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(14, 18, 29, .72); backdrop-filter: blur(4px); pointer-events: none; transition: opacity .2s; }
.ba-slider .ba-label--before { left: 16px; }
.ba-slider .ba-label--after { right: 16px; background: var(--theme-color); }

/* ---------- Проекти стъпка по стъпка ---------- */
.bgm-projects { background: var(--title-color); }
.bgm-projects .sec-title, .bgm-projects .sec-text { color: #fff; }
.bgm-projects .sec-text { opacity: .75; max-width: 680px; margin-inline: auto; }
.bgm-project-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: calc(var(--bgm-radius) + 6px); padding: 22px; height: 100%; display: flex; flex-direction: column; }
.bgm-project-card .ba-slider { aspect-ratio: 4 / 5; }
.bgm-project-card h3 { color: #fff; font-size: 24px; margin: 24px 0 8px; }
.bgm-project-card p { color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.bgm-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.bgm-stages a { position: relative; display: block; border-radius: var(--bgm-radius-sm); overflow: hidden; aspect-ratio: 1; }
.bgm-stages img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bgm-ease); }
.bgm-stages a:hover img { transform: scale(1.08); }
.bgm-stages span { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(14, 18, 29, .78); color: #fff; font-size: 12px; font-weight: 600; }
.bgm-stages a:last-child span { background: var(--theme-color); }
.bgm-projects .bgm-cta-line { color: #fff; font-size: 18px; }

/* ---------- Блог карти ---------- */
.bgm-blog-card { background: #fff; border-radius: var(--bgm-radius); overflow: hidden; box-shadow: var(--bgm-shadow-sm); height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--bgm-ease), box-shadow .35s var(--bgm-ease); }
.bgm-blog-card:hover { transform: translateY(-6px); box-shadow: var(--bgm-shadow); }
.bgm-blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.bgm-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--bgm-ease); }
.bgm-blog-card:hover .bgm-blog-card__img img { transform: scale(1.06); }
.bgm-blog-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.bgm-blog-card__meta { font-size: 13px; color: #8a8f99; margin-bottom: 10px; display: flex; gap: 14px; }
.bgm-blog-card__meta i { color: var(--theme-color); margin-right: 5px; }
.bgm-blog-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.bgm-blog-card h3 a { color: var(--title-color); }
.bgm-blog-card h3 a:hover { color: var(--theme-color); }
.bgm-blog-card p { margin-bottom: 18px; }
.bgm-blog-card .bgm-more { margin-top: auto; font-weight: 700; color: var(--theme-color); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }

/* ---------- Статия ---------- */
.bgm-page-hero { background: var(--title-color); padding: 150px 0 70px; position: relative; overflow: hidden; }
.bgm-page-hero::after { content: ""; position: absolute; inset: auto -120px -220px auto; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 138, 10, .22), transparent 70%); }
.bgm-page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; max-width: 900px; margin-bottom: 18px; }
.bgm-page-hero p { color: rgba(255, 255, 255, .75); max-width: 760px; font-size: 18px; margin: 0; }
.bgm-crumbs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.bgm-crumbs a { color: var(--theme-color); }
.bgm-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.bgm-article { padding: 70px 0 90px; }
.bgm-article__body { font-size: 18px; line-height: 1.8; color: #3b3f48; }
.bgm-article__body h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 16px; }
.bgm-article__body h3 { font-size: 22px; margin: 32px 0 10px; }
.bgm-article__body ul, .bgm-article__body ol { padding-left: 22px; margin-bottom: 24px; }
.bgm-article__body li { margin-bottom: 8px; }
.bgm-article__body a { color: var(--theme-color); text-decoration: underline; text-underline-offset: 3px; }
.bgm-article__body figure { margin: 34px 0; }
.bgm-article__body figure img { width: 100%; border-radius: var(--bgm-radius); box-shadow: var(--bgm-shadow-sm); }
.bgm-article__body figcaption { font-size: 14px; color: #8a8f99; margin-top: 10px; text-align: center; }
.bgm-article__body .bgm-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.bgm-article__body .bgm-figs figure { margin: 0; }
.bgm-article__body .bgm-figs img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 575px) { .bgm-article__body .bgm-figs { grid-template-columns: 1fr; } }
.bgm-note { background: var(--smoke-color2); border-left: 4px solid var(--theme-color); border-radius: 0 var(--bgm-radius-sm) var(--bgm-radius-sm) 0; padding: 20px 24px; margin: 30px 0; }
.bgm-table { width: 100%; border-collapse: collapse; margin: 24px 0 30px; font-size: 16px; }
.bgm-table th, .bgm-table td { padding: 14px 16px; border-bottom: 1px solid #e6e7ea; text-align: left; }
.bgm-table th { background: var(--title-color); color: #fff; font-weight: 600; }
.bgm-table-wrap { overflow-x: auto; }

.bgm-aside { position: sticky; top: 110px; background: var(--title-color); color: #fff; border-radius: var(--bgm-radius); padding: 30px; }
.bgm-aside h3 { color: #fff; font-size: 24px; }
.bgm-aside p { color: rgba(255, 255, 255, .75); }
.bgm-aside .th-btn { width: 100%; justify-content: center; }
.bgm-aside ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
.bgm-aside li { margin-bottom: 10px; }
.bgm-aside li a { color: rgba(255, 255, 255, .85); }
.bgm-aside li a:hover { color: var(--theme-color); }

.bgm-article-cta { background: linear-gradient(120deg, var(--title-color), #1c2333); color: #fff; border-radius: var(--bgm-radius); padding: 36px; margin-top: 50px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.bgm-article-cta h3 { color: #fff; margin: 0 0 6px; }
.bgm-article-cta p { margin: 0; color: rgba(255, 255, 255, .75); }

/* ---------- Плаващи бутони (обаждане + Viber) ---------- */
.bgm-fab { position: fixed; left: 20px; bottom: 90px; z-index: 9000; display: flex; flex-direction: column; gap: 12px; }
.bgm-fab a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); position: relative; transition: transform .25s var(--bgm-ease); }
.bgm-fab a:hover { transform: scale(1.08); color: #fff; }
.bgm-fab .bgm-fab__call { background: var(--theme-color); }
.bgm-fab .bgm-fab__call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--theme-color); animation: bgm-pulse 2s infinite; }
.bgm-fab__tip { position: absolute; left: 70px; top: 50%; transform: translateY(-50%); background: var(--title-color); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bgm-fab a:hover .bgm-fab__tip { opacity: 1; }
@keyframes bgm-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bgm-fab .bgm-fab__call::after { animation: none; } }
@media (max-width: 575px) {
  .bgm-fab { left: 14px; bottom: 80px; }
  .bgm-fab a { width: 52px; height: 52px; font-size: 20px; }
}

/* ==========================================================
   Модерни детайли – втора вълна
   ========================================================== */

/* Лента за прогрес при скрол */
.bgm-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 10000; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--theme-color), #ffb648); pointer-events: none; }

/* Header при скрол – „стъклен“ ефект */
.sticky-wrapper.sticky { background-color: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }

/* Hero – бавен zoom на активния слайд + по-четим текст */
.hero-3 .hero-inner { overflow: hidden; }
.hero-3 .swiper-slide-active .th-hero-bg { animation: bgm-kenburns 9s ease-out both; }
@keyframes bgm-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-3 .hero-title { text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .hero-3 .swiper-slide-active .th-hero-bg { animation: none; } }

/* FAQ – заоблени карти, активен въпрос с оранжев акцент */
.accordion-card.style3 { border-radius: var(--bgm-radius-sm); overflow: hidden; border: 1px solid #ececef; transition: box-shadow .3s var(--bgm-ease), border-color .3s; }
.accordion-card.style3:hover { box-shadow: var(--bgm-shadow-sm); }
.accordion-card.style3:has(.accordion-button:not(.collapsed)) { border-color: rgba(246, 138, 10, .45); box-shadow: var(--bgm-shadow-sm); }
.accordion-card.style3 .accordion-button:after { border-radius: 0 var(--bgm-radius-sm) var(--bgm-radius-sm) 0; }
.faq-text a { color: var(--theme-color); text-decoration: underline; text-underline-offset: 3px; }

/* Отзиви – карти с кавички */
.testimonial-area3 .testi-grid { position: relative; background: #fff; border: 1px solid #ececef; padding: 28px; box-shadow: var(--bgm-shadow-sm); }
.testimonial-area3 .testi-grid::after { content: "\201C"; position: absolute; right: 28px; top: 6px; font-family: Georgia, serif; font-size: 120px; line-height: 1; color: var(--theme-color); opacity: .18; pointer-events: none; }
.testimonial-area3 .testi-grid_name { display: inline-flex; align-items: center; gap: 10px; }
.testimonial-area3 .testi-grid_name::before { content: ""; width: 28px; height: 2px; background: var(--theme-color); }
@media (max-width: 575px) { .testimonial-area3 .testi-grid { padding: 18px; } }

/* Броячи – градиент */
.counter-area.bg-theme { background: linear-gradient(120deg, #f68a0a 0%, #ff9f2e 55%, #e07400 100%) !important; box-shadow: 0 24px 60px -24px rgba(246, 138, 10, .7); }

/* Карти с услуги – иконата „оживява“ */
.process-card .process-card_icon { transition: transform .4s var(--bgm-ease); }
.process-card:hover .process-card_icon { transform: translateY(-4px) rotate(-6deg); }
