/* ===== Начална страница — класове bh- ===== */
.bh-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero: видеото на цял екран, текстът е във видеото, отдолу ред + два входа */
.bh-hero { position: relative; height: min(100svh, 940px); min-height: 600px; background: #000; color: var(--w); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.bh-hero video, .bh-hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%); pointer-events: none; }
.bh-hero-in { position: relative; z-index: 2; padding-bottom: 54px; text-align: center; }
.bh-hero-in p { max-width: 640px; margin: 0 auto 30px; color: #e9e9e9; font-size: 17.5px; text-shadow: var(--shadow-txt-k); }
.bh-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 14px; }
.bh-door { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border: 1.5px solid rgba(255,255,255,.5); background: rgba(14,14,14,.35); backdrop-filter: blur(6px); text-align: left; transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease); }
.bh-door b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bh-door small { display: block; font-size: 13px; font-weight: 300; color: #d4d4d4; margin-top: 2px; transition: color .35s; }
.bh-door .bp-arrow { font-size: 20px; }
.bh-door:hover, .bh-door:focus-visible { background: var(--y); border-color: var(--y); color: var(--k); transform: translateY(-3px); }
.bh-door:hover small, .bh-door:focus-visible small { color: #3a3214; }
.bh-door.y { background: var(--y); border-color: var(--y); color: var(--k); }
.bh-door.y small { color: #3a3214; }
.bh-door.y:hover { background: var(--y2); }
.bh-scroll { position: absolute; z-index: 2; right: max(24px, calc((100% - 1240px) / 2)); bottom: 62px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #cfcfcf; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.bh-scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--y), transparent); }
/* лента под hero: сезонно предложение (замества „Направи запитване за оферта“) */
.bh-ribbon { background: var(--k); color: var(--w); border-top: 1px solid #262626; }
.bh-ribbon a { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 15px 24px; font-size: 15px; text-align: center; }
.bh-ribbon .tag { background: var(--y); color: var(--k); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; }
.bh-ribbon u { text-decoration: none; color: var(--y); font-weight: 700; white-space: nowrap; }
.bh-ribbon a:hover u { text-decoration: underline; }

/* защо да изберете нас */
.bh-why .bp-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 70px; align-items: start; }
.bh-why h2 { margin-top: 18px; }
.bh-why .intro { margin-top: 22px; color: var(--mute); font-size: 18px; }
.bh-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bh-why-it { padding: 34px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.bh-why-it:hover { background: var(--paper); }
.bh-why-it .ic { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--y); border-radius: 50%; margin-bottom: 22px; }
.bh-why-it .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--k); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bh-why-it h3 { font-size: 20px; margin-bottom: 10px; }
.bh-why-it p { font-size: 15.5px; color: var(--mute); }

/* портфолио с филтър */
.bh-pf-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.bh-pf-head h2 { margin-top: 18px; }
.bh-pf-head p { color: var(--mute); font-size: 18px; margin-top: 14px; }
.bh-flt { display: flex; flex-wrap: wrap; gap: 10px; }
.bh-flt button, .bh-sub button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--line); background: var(--w); font-size: 14.5px; font-weight: 600; transition: border-color .3s, background .3s, color .3s; }
.bh-flt button i, .bh-sub button i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.bh-flt button:hover, .bh-sub button:hover { border-color: var(--k); }
.bh-flt button[aria-pressed=true] { background: var(--k); border-color: var(--k); color: var(--w); }
.bh-flt button[aria-pressed=true] i { color: var(--y); }
.bh-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bh-sub[hidden] { display: none; }
.bh-sub button { min-height: 40px; font-size: 13.5px; padding: 0 16px; background: transparent; }
.bh-sub button[aria-pressed=true] { border-color: var(--y); background: var(--ys); }
.bh-pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; margin-top: 30px; }
.bh-pf-it { display: block; animation: bhIn .6s var(--ease) both; }
@keyframes bhIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bh-pf-it .im { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e5dc; }
.bh-pf-it img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bh-pf-it .im::after { content: "→"; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--y); color: var(--k); font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.bh-pf-it:hover img, .bh-pf-it:focus-visible img { transform: scale(1.07); }
.bh-pf-it:hover .im::after, .bh-pf-it:focus-visible .im::after { opacity: 1; transform: none; }
.bh-pf-it h3 { font-size: 17px; font-weight: 700; margin-top: 14px; line-height: 1.3; }
.bh-pf-it span { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bh-pf-foot { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 46px; }
.bh-pf-foot .bp-btn-k2 { border: 1.5px solid var(--k); }
.bh-pf-foot .bp-btn-k2:hover { background: var(--k); color: var(--w); }
.bh-pf-foot [hidden] { display: none; }

/* услуги */
.bh-srv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: end; margin-bottom: 44px; }
.bh-srv-head h2 { margin-top: 18px; }
.bh-srv-head p { color: #c8c8c8; font-size: 18px; }
.bh-srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 14px; }
.bh-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; isolation: isolate; }
.bh-tile .bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform 1.4s var(--ease); }
.bh-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.3) 55%, rgba(10,10,10,.1) 100%); }
.bh-tile::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); transition: border-color .5s; pointer-events: none; }
.bh-tile:hover .bg, .bh-tile:focus-visible .bg { transform: scale(1.08); }
.bh-tile:hover::after, .bh-tile:focus-visible::after { border-color: var(--y); }
.bh-tile h3 { font-size: 24px; font-weight: 800; }
.bh-tile .n { position: absolute; top: 22px; left: 26px; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--y); }
.bh-tile .ar { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease), border-color .4s; }
.bh-tile:hover .ar { background: var(--y); border-color: var(--y); color: var(--k); transform: rotate(-45deg); }

/* паралакс ленти — същите фонове като досега */
.bh-px { background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none), (max-width: 1024px) { .bh-px { background-attachment: scroll; } }
.bh-clients { background-image: url(img/bg-home-parallax.jpg); color: var(--w); text-align: center; padding: 120px 0; position: relative; }
.bh-clients::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.bh-clients h2 { position: relative; font-size: clamp(38px, 5vw, 70px); font-weight: 300; letter-spacing: -.01em; }
.bh-clients h2 b { font-weight: 800; }
.bh-stats { background-image: url(img/bg-parallax-home-4.jpg); padding: 110px 0; }
.bh-stats .bp-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.bh-rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 30px; }
.bh-ring { text-align: center; }
.bh-ring .r { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.bh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bh-ring circle { fill: none; stroke-width: 4; }
.bh-ring .t { stroke: #e6e1d6; }
.bh-ring .v { stroke: var(--y); stroke-linecap: round; stroke-dasharray: 427.3; stroke-dashoffset: 427.3; transition: stroke-dashoffset 1.8s var(--ease); }
.bh-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.bh-ring b sup { font-size: 15px; font-weight: 700; margin: -14px 0 0 2px; }
.bh-ring h3 { font-size: 19px; margin-bottom: 6px; }
.bh-ring p { font-size: 15px; color: var(--mute); max-width: 230px; margin: 0 auto; }
.bh-ipad { justify-self: center; filter: drop-shadow(0 40px 40px rgba(0,0,0,.25)); max-width: 400px; width: 100%; }
.bh-partners { background-image: url(img/bg-parallax-home-3.jpg); color: var(--w); padding: 120px 0; position: relative; }
.bh-partners::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.bh-partners .bp-wrap { position: relative; }
.bh-partners .head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.bh-partners .head h2 { margin: 18px 0 16px; }
.bh-partners .head p { color: #c9c9c9; font-size: 18px; }
.bh-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.bh-logo { position: relative; height: 140px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; padding: 26px 34px; transition: background .4s; }
.bh-logo img { grid-area: 1 / 1; max-height: 62px; width: auto; max-width: 100%; object-fit: contain; transition: opacity .4s, transform .5s var(--ease); }
.bh-logo img.c { opacity: 0; }
.bh-logo:hover { background: rgba(255,255,255,.04); }
.bh-logo:hover img.g { opacity: 0; }
.bh-logo:hover img.c { opacity: 1; transform: scale(1.05); }
.bh-cta { background: var(--y); color: var(--k); padding: 56px 0; }
.bh-cta .bp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.bh-cta h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.bh-cta p { font-size: 16.5px; font-weight: 400; max-width: 760px; text-shadow: none; }
.bh-cta .bp-btn { background: var(--k); color: var(--w); }
.bh-cta .bp-btn:hover { background: #2a2a2a; }
.bh-foot { background-image: url(img/bg-parallax-home-5.jpg); color: #b9b9b9; padding: 100px 0 36px; position: relative; font-size: 15px; }
.bh-foot::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.bh-foot .bp-wrap { position: relative; }
.bh-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 50px; }
.bh-foot h2 { color: var(--w); font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 18px; }
.bh-foot h3 { color: var(--w); font-size: 17px; margin-bottom: 14px; }
.bh-foot p { font-size: 15px; line-height: 1.8; }
.bh-foot a:hover { color: var(--y); }
.bh-foot .logo { font-weight: 300; font-size: 30px; letter-spacing: .14em; color: var(--w); margin-bottom: 26px; display: inline-block; }
.bh-foot .logo b { font-weight: 700; }
.bh-foot .bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }

@media (max-width: 1100px) {
  .bh-pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-why .bp-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .bh-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .bh-srv-head, .bh-stats .bp-wrap, .bh-cta .bp-wrap, .bh-foot-grid { grid-template-columns: minmax(0, 1fr); }
  .bh-srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .bh-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-ipad { max-width: 300px; }
}
@media (max-width: 600px) {
  /* телефон: видеото е 16:9 с вграден надпис, затова се показва цяло, а текстът е под него */
  .bh-hero { height: auto; min-height: 0; justify-content: flex-start; padding-top: 72px; }
  .bh-hero video, .bh-hero .poster { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
  .bh-hero .poster { display: none; }
  .bh-hero::after { display: none; }
  .bh-hero-in { padding: 26px 0 30px; }
  .bh-hero-in p { font-size: 15.5px; margin-bottom: 22px; }
  .bh-doors { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bh-door { padding: 15px 18px; }
  .bh-scroll { display: none; }
  .bh-why-grid { grid-template-columns: minmax(0, 1fr); }
  .bh-why-it { padding: 26px 22px; }
  .bh-pf-it h3 { font-size: 15px; }
  .bh-pf-it span { font-size: 11.5px; letter-spacing: .08em; }
  .bh-flt button { padding: 0 14px; font-size: 13.5px; }
  .bh-srv-grid { grid-auto-rows: 170px; gap: 8px; }
  .bh-tile { padding: 16px; }
  .bh-tile h3 { font-size: 17px; }
  .bh-tile .n { top: 14px; left: 16px; font-size: 11px; }
  .bh-tile .ar { top: 10px; right: 10px; width: 32px; height: 32px; }
  .bh-clients { padding: 80px 0; }
  .bh-stats, .bh-partners { padding: 80px 0; }
  .bh-rings { gap: 36px 12px; }
  .bh-ring .r { width: 118px; height: 118px; }
  .bh-ring b { font-size: 30px; }
  .bh-logo { height: 104px; padding: 18px; }
  .bh-logo img { max-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .bh-pf-it { animation: none; } .bh-ring .v { transition: none; } }
