/* ============================================================
   Началото (Бизнес): секциите, които са само тук.
   Пренесено от прототипа (site/src/styles/home.css, home2.css, DriftWall.css).
   Всичко е вътре в .pfx.hm (по-силно от нулирането на комплекта и от Salient).
   Променливи (CSS на страницата може да ги смени):
     --c-biz   цианът на бизнеса
     --hair    тънките сиви линии
     --muted   тихият текст
   ============================================================ */

.pfx.hm {
  /* основният текст: 17 px и редове 1,6 като в прототипа (Salient дава 14 px) */
  font-size: 17px;
  line-height: 1.6;
  --c-biz: #2AC4EA;
  --hair: #E3E7EA;
  --muted: #5C6166;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* левият ръб на съдържанието (като .wrap), за неща на цяла ширина */
  --hm-edge: max(var(--pad, 24px), calc((100% - var(--max, 1320px)) / 2));
}
.hm .dot { color: var(--room, #2AC4EA); }
.hm .t-l { font-size: clamp(38px, 5.6vw, 92px); line-height: .98; letter-spacing: -.04em; }
.hm .t-m { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.hm .hm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hm p { line-height: 1.6; }
.hm .hm-at::before { content: '@'; }

@keyframes hm-cap-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes hm-timer { from { transform: scaleX(0); } }

/* ============================================================ хиро */

.pfx.hm-hero { position: relative; display: flex; align-items: center; height: 100svh; min-height: 640px; overflow: clip; background: #07080A; color: #EDEFF1; }
.hm-hero .hm-wall { position: absolute; inset: 0; }
.hm-hero .hm-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 8, 10, .82), rgba(7, 8, 10, .35) 55%, rgba(7, 8, 10, .2)), radial-gradient(ellipse 95% 80% at 60% 52%, rgba(7, 8, 10, 0) 40%, rgba(7, 8, 10, .85) 100%), linear-gradient(0deg, #07080A, rgba(7, 8, 10, 0) 26%); }
/* празното място около текста пуска мишката до стената */
.hm-hero .hm-hero-in { position: relative; z-index: 2; padding-top: 80px; pointer-events: none; }
.hm-hero .hm-hero-in > * { width: fit-content; pointer-events: auto; }
.hm-hero .hm-label { color: var(--c-biz); }
.hm-hero .hm-title { margin-top: 24px; font-size: clamp(48px, min(7.4vw, 12.5vh), 128px); line-height: .92; letter-spacing: -.05em; font-weight: 200; }
.hm-hero .hm-title .pvp-dot, .hm-hero .hm-title .dot { font-weight: 900; font-variation-settings: 'wght' 900; }
.hm-hero .hm-sub { max-width: 560px; margin: 28px 0 34px; font-size: clamp(18px, 1.6vw, 22px); color: rgba(237, 239, 241, .76); }
.hm-hero .hm-row { gap: 18px 34px; }
.hm-hero .hm-ticker { position: absolute; right: var(--pad, 24px); bottom: 30px; z-index: 2; display: flex; gap: 18px; font-size: 14px; letter-spacing: .02em; color: rgba(237, 239, 241, .55); }
.hm-hero .hm-ticker span { font-weight: 300; transition: color .6s, font-weight .6s; }
.hm-hero .hm-ticker span i { font-style: normal; transition: color .6s; }
.hm-hero .hm-ticker span.is-on { color: #fff; font-weight: 800; }
.hm-hero .hm-ticker span.is-on i { color: var(--c-biz); }

/* бутонът за шоурийла */
.hm .hr-open { display: flex; align-items: center; gap: 16px; color: inherit; text-align: left; border-radius: 0 !important; }
.hm .hr-ring { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .4s, box-shadow .4s, transform .6s var(--ease-out); }
.hm .hr-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-biz); opacity: .7; animation: hm-hr-pulse 2.8s var(--ease-out) infinite; }
@keyframes hm-hr-pulse { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.hm .hr-open:hover .hr-ring, .hm .hr-open.is-on .hr-ring { background: var(--c-biz); box-shadow: inset 0 0 0 1.5px var(--c-biz); transform: scale(1.06); }
.hm .hr-open.is-on .hr-ring::after { animation: none; opacity: 0; }
.hm .hr-play { width: 0; height: 0; margin-left: 4px; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hm .hr-open:hover .hr-play, .hm .hr-open.is-on .hr-play { border-left-color: #0B2530; }
.hm .hr-pause { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hm .hr-open-t { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }

/* плаващият прозорец долу вдясно (стената остава да се вижда около него) */
.hm .hr-box { position: absolute; right: var(--pad, 24px); bottom: clamp(70px, 11vh, 110px); z-index: 4; width: min(42vw, 700px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: clip; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -40px rgba(0, 0, 0, .9); animation: hm-hr-in 1s var(--ease-out) both; }
@keyframes hm-hr-in { from { opacity: 0; clip-path: circle(4% at 8% 92%); transform: translate3d(-30px, 30px, 0) rotate(-2deg); } to { opacity: 1; clip-path: circle(80% at 50% 50%); transform: none; } }
.hm .hr-box:fullscreen { width: 100%; border-radius: 0; }
.hm .hr-video { width: 100%; height: 100%; max-width: none; object-fit: cover; cursor: pointer; }
.hm .hr-box:fullscreen .hr-video { object-fit: contain; }
.hm .hr-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(7, 8, 10, .62); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; line-height: 1.2; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out); }
.hm .hr-box:hover .hr-bar, .hm .hr-box:focus-within .hr-bar { opacity: 1; transform: none; }
@media (hover: none) { .hm .hr-bar { opacity: 1; transform: none; } }
.hm .hr-btn { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px !important; color: #fff; transition: background-color .3s; }
.hm .hr-btn:hover { background: rgba(255, 255, 255, .14); }
.hm .hr-txt { font-size: 11px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.hm .hr-close { font-size: 14px; }
.hm .hr-time { font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; }
.hm .hr-track { position: relative; flex: 1; height: 18px; cursor: pointer; }
.hm .hr-track::before, .hm .hr-track i { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.hm .hr-track::before { background: rgba(255, 255, 255, .25); }
.hm .hr-track i { background: var(--c-biz); transform-origin: left; transform: scaleX(0); }

/* стената от работи (React Bits: Drift Wall) */
.hm .dw { position: relative; width: 100%; height: 100%; overflow: hidden; perspective: var(--dw-perspective, 1050px); perspective-origin: 50% 50%; --dw-tile-w: 200px; --dw-tile-h: 208px; --dw-gap: 8px; --dw-radius: 14px; --dw-lift: 64px; --dw-dim: .75; --dw-overlay: #07080A; --dw-edge: 40%;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%), linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%), linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  mask-composite: intersect; }
.hm .dw-plane { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: row; transform-style: preserve-3d; transform-origin: 50% 50%; cursor: pointer; will-change: transform; }
.hm .dw-col { position: relative; width: calc(var(--dw-tile-w) + var(--dw-gap)); transform-style: preserve-3d; }
.hm .dw-track { display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.hm .dw-tile { position: relative; display: block; flex: 0 0 auto; width: 100%; height: calc(var(--dw-tile-h) + var(--dw-gap)); transform-style: preserve-3d; }
.hm .dw-inner { position: absolute; inset: calc(var(--dw-gap) / 2); display: block; overflow: hidden; border-radius: var(--dw-radius); background: #0B0B12; opacity: var(--dw-dim); transform: translateZ(0); pointer-events: none; transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1); }
/* #ajax-content-wrap: Salient слага `.row .col img:not([srcset]) { width: auto }` и вертикалните снимки
   се свиваха в плочката (черни ивици в стената, 10.11.2026) */
.hm .dw-inner img, #ajax-content-wrap .hm .dw-inner img { margin: 0; }
.hm .dw-inner img, #ajax-content-wrap .hm .dw-inner img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.92); transition: filter .42s cubic-bezier(.22, 1, .36, 1); user-select: none; -webkit-user-drag: none; }
.hm .dw-ov { position: absolute; inset: 0; background: var(--dw-overlay); opacity: .42; pointer-events: none; transition: opacity .42s cubic-bezier(.22, 1, .36, 1); }
.hm .dw-tile.is-active .dw-inner { opacity: 1; transform: translateZ(var(--dw-lift)); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); }
.hm .dw-tile.is-active img { filter: saturate(1.05); }
.hm .dw-tile.is-active .dw-ov { opacity: 0; }

@media (max-width: 760px) {
  /* на телефон текстът е долу, затова прозорецът е горе, под менюто */
  .hm .hr-box { left: 12px; right: 12px; width: auto; top: 86px; bottom: auto; border-radius: 14px; }
  .hm .hr-full, .hm .hr-time { display: none; }
}
@media (max-width: 700px) {
  .hm-hero .hm-veil { background: linear-gradient(0deg, rgba(7, 8, 10, .92), rgba(7, 8, 10, .45) 55%, rgba(7, 8, 10, .6)), radial-gradient(ellipse 100% 70% at 50% 45%, rgba(7, 8, 10, 0) 30%, rgba(7, 8, 10, .8) 100%); }
  .hm-hero .hm-hero-in { align-self: flex-end; padding-bottom: 96px; }
  .hm-hero .hm-title { font-size: clamp(46px, 13.5vw, 80px); }
  .hm-hero .hm-sub { margin: 20px 0 26px; }
  .hm-hero .hm-ticker { left: var(--pad, 24px); right: auto; bottom: 24px; gap: 12px; font-size: 12px; }
}

/* ============================================================ четирите думи (лепкава сцена) */

.pfx.hm-four { position: relative; height: calc(max(100svh, 600px) + var(--fw-len, 260svh)); background: #07080A; color: #EDEFF1; }
.hm-four .fw-stick { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: clip; display: flex; align-items: center; }
.hm-four .fw-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.hm-four .fw-words { display: flex; flex-direction: column; }
.hm-four .fw-word { font-size: clamp(56px, 7.6vw, 132px); line-height: .98; letter-spacing: -.05em; font-weight: 200; color: rgba(237, 239, 241, .32); transition: color .8s, font-weight .9s var(--ease-out); }
.hm-four .fw-word i { font-style: normal; transition: color .8s; }
.hm-four .fw-word.is-on { color: #fff; font-weight: 800; }
.hm-four .fw-word.is-on i { color: var(--c-biz); }
.hm-four .fw-stage { position: relative; aspect-ratio: 4 / 3.3; }
.hm-four .fw-layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; opacity: 0; pointer-events: none; transform: translate3d(0, 40px, 0) scale(.97); transition: opacity .8s var(--ease), transform 1.1s var(--ease-out); }
.hm-four .fw-layer.is-on { opacity: 1; pointer-events: auto; transform: none; }
.hm-four .fw-layer.is-past { transform: translate3d(0, -40px, 0) scale(.97); }
.hm-four .fw-media { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: clip; background: #111316; box-shadow: 0 60px 120px -60px rgba(42, 196, 234, .35), 0 0 0 1px rgba(255, 255, 255, .07); clip-path: inset(8% 8% 8% 8% round 16px); transition: clip-path 1.2s var(--ease-out); }
.hm-four .fw-layer.is-on .fw-media { clip-path: inset(0 0 0 0 round 16px); }
.hm-four .fw-media > img, .hm-four .fw-video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hm-four .fw-slides { position: absolute; inset: 0; }
.hm-four .fw-slides img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 3.4s var(--ease-out); }
.hm-four .fw-slides img.is-on { opacity: 1; transform: none; }
/* „Дизайн“: профил с постове, наклонен в пространството; мрежата бавно тече нагоре */
.hm-four .fwf { position: absolute; inset: 0; overflow: clip; perspective: 1100px; background: radial-gradient(ellipse at 60% 30%, #16222A, #0B0D10 70%); }
.hm-four .fwf-plane { position: absolute; left: 50%; top: -6%; width: 62%; padding: 18px 14px 0; border-radius: 22px; background: #F4F5F6; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8); transform: translateX(-58%) rotateX(24deg) rotateZ(-14deg) rotateY(8deg); transform-origin: 50% 0; }
.hm-four .fwf-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 12px; color: #1B1D20; font-size: 11px; }
.hm-four .fwf-av { width: 38px; height: 38px; flex: none; border-radius: 50%; background: conic-gradient(var(--c-biz), #E5109C, #E6C910, var(--c-biz)); box-shadow: inset 0 0 0 3px #F4F5F6, inset 0 0 0 9px #1B1D20; }
.hm-four .fwf-head span { flex: 1; display: grid; gap: 6px; }
.hm-four .fwf-head span i { display: block; height: 6px; border-radius: 3px; background: #C9CDD1; }
.hm-four .fwf-head span i + i { width: 60%; background: #E0E3E6; }
.hm-four .fwf-head b { font-weight: 800; }
.hm-four .fwf-tabs { display: flex; justify-content: space-around; padding: 8px 0; border-top: 1px solid #DDE0E3; }
.hm-four .fwf-tabs i { width: 12px; height: 12px; border: 1.5px solid #9AA0A6; border-radius: 2px; }
.hm-four .fwf-tabs i:first-child { border-color: #1B1D20; }
.hm-four .fwf-roll { height: 560px; overflow: clip; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hm-four .fwf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding-bottom: 3px; animation: hm-fwf-up 26s linear infinite; }
.hm-four .fwf-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes hm-fwf-up { to { transform: translate3d(0, -100%, 0); } }
.hm-four .fw-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.hm-four .fw-cap p { font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; color: rgba(237, 239, 241, .82); }
.hm-four .fw-progress { position: absolute; left: var(--pad, 24px); right: var(--pad, 24px); bottom: 30px; height: 2px; background: rgba(255, 255, 255, .1); }
.hm-four .fw-progress i { display: block; height: 100%; background: var(--c-biz); transform-origin: left; transform: scaleX(var(--fw-p, 0)); }
@media (max-width: 900px) {
  .hm-four .fw-in { grid-template-columns: minmax(0, 1fr); gap: 26px; align-content: center; }
  .hm-four .fw-words { flex-direction: row; flex-wrap: wrap; column-gap: .3em; }
  .hm-four .fw-word { font-size: clamp(34px, 10vw, 60px); }
  .hm-four .fw-stage { aspect-ratio: auto; height: 56svh; }
}
@media (max-width: 700px) { .hm-four .fw-cap { gap: 8px; } }

/* ============================================================ под един покрив: изречение, което минава хоризонтално */

.pfx.hm-roof { position: relative; padding-bottom: var(--space, clamp(96px, 13vh, 180px)); background: #fff; color: var(--ink, #16181B); }
/* височината на сцената = екранът + колкото се скролва (скриптът слага --roof-len) */
.hm-roof .roof-len { position: relative; height: calc(max(100svh, 560px) + var(--roof-len, 0px)); }
.hm-roof .roof-pin { position: sticky; top: 0; height: 100svh; min-height: 560px; display: flex; align-items: center; overflow: clip; }
.hm-roof .roof-label { position: absolute; left: var(--hm-edge); top: clamp(96px, 15vh, 150px); }
.hm-roof .roof-track { display: flex; align-items: center; gap: clamp(26px, 3vw, 60px); width: max-content; padding-inline: var(--hm-edge) 14vw; will-change: transform; }
.hm-roof .roof-word { font-size: clamp(64px, 8.4vw, 150px); line-height: .9; letter-spacing: -.055em; white-space: nowrap; }
.hm-roof .roof-word.thin { font-style: italic; letter-spacing: -.04em; }
.hm-roof .roof-win { position: relative; flex-shrink: 0; height: min(52svh, 520px); aspect-ratio: var(--ar); margin: 0; border-radius: 18px; overflow: clip; background: #EEF1F3; box-shadow: 0 50px 90px -50px rgba(11, 37, 48, .45); }
.hm-roof .roof-media { position: absolute; inset: 0 -7%; }
.hm-roof .roof-media img, .hm-roof .roof-media video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hm-roof .roof-win figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink, #16181B); font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hm-roof .roof-bar { position: absolute; left: var(--hm-edge); right: var(--hm-edge); bottom: clamp(36px, 7vh, 64px); height: 1px; background: var(--hair); }
.hm-roof .roof-bar i { display: block; height: 100%; background: var(--c-biz); transform-origin: left; transform: scaleX(var(--roof-p, 0)); }
.hm-roof .roof-foot { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 6vh, 72px); align-items: end; }
.hm .stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); }
.hm .stat { padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.hm .stat b { display: block; font-size: clamp(64px, 8vw, 128px); line-height: .9; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.hm .stat > span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 18ch; }

/* ============================================================ две посоки */

.pfx.hm-paths { background: #fff; color: var(--ink, #16181B); }
.hm-paths .paths-grid { position: relative; margin-top: 56px; height: clamp(440px, 64vh, 620px); container-type: inline-size; }
/* Кутиите растат, без страницата да се пренарежда (10.11.2026, вечер): всяка е широка колкото най-широкото си състояние
   (61,9 % от реда), а видимата част се реже с clip-path; текстът на дясната кутия се мести само с transform.
   Така браузърът не смята наново оформлението на всеки кадър и движението е плавно и на големи екрани. */
.hm-paths .path { --cut: 11.9cqw; position: absolute; top: 0; bottom: 0; left: 0; display: block; width: calc(61.9cqw - 10px); overflow: clip; border-radius: 10px; background: #F3F6F7; color: var(--ink, #16181B); clip-path: inset(0 var(--cut) 0 0 round 10px); }
.hm-paths .path, [data-js] .hm-paths .path { transition: opacity 1.1s var(--ease-out) calc(var(--d, 0) * 1ms), transform 1.3s var(--ease-out) calc(var(--d, 0) * 1ms), clip-path 1.1s var(--ease-out) 0s; }
.hm-paths .path + .path { left: auto; right: 0; clip-path: inset(0 0 0 var(--cut) round 10px); }
.hm-paths .path:hover { --cut: 0px; z-index: 1; }
.hm-paths .paths-grid:has(.path:hover) .path:not(:hover) { --cut: 23.8cqw; }
.hm-paths .path + .path .path-in { transform: translate3d(var(--cut), 0, 0); transition: transform 1.1s var(--ease-out); }
.hm-paths .path.is-dark { background: #16181B; color: #fff; }
/* снимката отзад е широка колкото най-широката кутия (64 % от реда) и е закачена за външния ръб на кутията:
   докато кутията се разтваря, снимката не мени размера и мястото си, а движат се само opacity и transform.
   В покой прозрачността е 0,001 (не 0): окото не я вижда, но браузърът я рисува предварително и първото посочване е плавно */
.hm-paths .path .path-bg { position: absolute; top: 0; left: 0; width: 100%; width: 64cqw; height: 100%; max-width: none; margin: 0; object-fit: cover; background: none; opacity: .001; transform: scale(1.08); will-change: opacity, transform; transition: opacity .9s var(--ease), transform 1.6s var(--ease-out); }
.hm-paths .path + .path .path-bg { left: auto; right: 0; }
.hm-paths .path:hover .path-bg { opacity: .22; transform: none; }
.hm-paths .path.is-dark:hover .path-bg { opacity: .44; }
.hm-paths .path-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(28px, 3.4vw, 54px); }
.hm-paths .path-h { font-size: clamp(66px, 8.6vw, 140px); line-height: .88; letter-spacing: -.055em; }
.hm-paths .path-sub { font-size: clamp(18px, 1.7vw, 24px); font-weight: 200; font-style: italic; }
.hm-paths .path-p { max-width: 380px; line-height: 1.6; color: color-mix(in srgb, currentColor 72%, transparent); }
.hm-paths .path .link { align-self: flex-start; margin-top: 8px; }

/* ============================================================ уеб проекти: списък и голям екран */

.pfx.hm-web { background: #fff; color: var(--ink, #16181B); }
.hm-web .wp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 80px); margin-top: 56px; align-items: start; }
.hm-web .wp-list { border-top: 1px solid var(--hair); }
.hm-web .wp-item { position: relative; border-bottom: 1px solid var(--hair); }
.hm-web .wp-item::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--c-biz); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.hm-web .wp-item.is-on::after { transform: scaleX(1); }
.hm-web .wp-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; padding: clamp(16px, 2.4vh, 26px) 0; text-align: left; border-radius: 0 !important; }
.hm-web .wp-num { grid-row: 1 / span 2; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
/* името е винаги на един ред; невидимото плътно копие пази място, затова нищо не подскача при смяна */
.hm-web .wp-name { display: inline-grid; justify-self: start; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; letter-spacing: -.045em; font-weight: 200; white-space: nowrap; transition: font-weight .7s var(--ease-out), transform .8s var(--ease-out); }
.hm-web .wp-name::after { content: attr(data-t); grid-area: 1 / 1; height: 0; overflow: hidden; visibility: hidden; font-weight: 800; }
.hm-web .wp-type { grid-column: 2; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .55; transition: opacity .5s; }
.hm-web .wp-item.is-on .wp-name { font-weight: 800; transform: translate3d(10px, 0, 0); }
.hm-web .wp-item.is-on .wp-type { opacity: 1; }
.hm-web .wp-row:hover .wp-name { transform: translate3d(10px, 0, 0); }
.hm-web .wp-stage { position: sticky; top: 110px; }
.hm-web .wp-screen { position: relative; display: block; color: inherit; aspect-ratio: 16 / 10.4; border-radius: 18px; overflow: clip; background: #EEF1F3; box-shadow: 0 60px 120px -60px rgba(11, 37, 48, .55), 0 0 0 1px rgba(11, 37, 48, .06); }
.hm-web .wp-m { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.hm-web .wp-m img, .hm-web .wp-m video { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.1); transition: transform 1.8s var(--ease-out); }
.hm-web .wp-m.is-prev { z-index: 1; clip-path: inset(0 0 0 0); }
.hm-web .wp-m.is-on { z-index: 2; clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io); }
.hm-web .wp-m.is-on img, .hm-web .wp-m.is-on video, .hm-web .wp-m.is-prev img, .hm-web .wp-m.is-prev video { transform: none; }
.hm-web .wp-tag { position: absolute; left: 16px; bottom: 14px; z-index: 3; display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; line-height: 1.3; color: var(--muted); animation: hm-cap-in .8s var(--ease-out) both; }
.hm-web .wp-tag b { color: var(--ink, #16181B); font-weight: 800; }
.hm-web .wp-case { display: grid; gap: 24px; margin-top: 26px; animation: hm-cap-in .8s var(--ease-out) both; }
.hm-web .wp-case[hidden] { display: none; }
.hm-web .wp-case dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; font-size: 15px; line-height: 1.55; }
.hm-web .wp-case dl > div { padding-top: 12px; border-top: 1px solid var(--hair); }
.hm-web .wp-case dt { font-weight: 700; }
.hm-web .wp-case dd { margin: 4px 0 0; color: var(--muted); }
.hm-web .webp-more { display: flex; justify-content: center; margin-top: 64px; }
.hm-web .wp-mob, .hm-web .wp-mob-link, .hm-web .wp-dots { display: none; }

/* ============================================================ видео */

.pfx.hm-video { position: relative; background: #0B0D0F; color: #fff; overflow: clip; }
/* наклонен ръб, с който тъмната сцена „влиза“ в светлата секция над нея */
.hm-video .slant { position: absolute; left: 0; right: 0; top: -1px; z-index: 3; height: clamp(40px, 7vw, 120px); background: var(--hm-slant, #fff); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.hm-video .vz-len { position: relative; height: calc(max(100svh, 560px) + 130vh); }
.hm-video .vz-pin { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: clip; }
.hm-video .vz-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; background: #000; overflow: clip; clip-path: inset(24% 31% 24% 31% round 18px); transform: rotate(-5deg); will-change: clip-path, transform; border-radius: 0 !important; }
.hm-video .vz-frame video { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.3); }
.hm-video .vz-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.hm-video .vz-words { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-inline: max(var(--pad, 24px), calc((100% - 1560px) / 2)); pointer-events: none; }
.hm-video .vz-a, .hm-video .vz-b { font-size: clamp(54px, 9vw, 160px); line-height: .9; letter-spacing: -.055em; white-space: nowrap; }
.hm-video .vz-b { font-style: italic; font-size: clamp(30px, 4.4vw, 80px); max-width: 5.6em; white-space: normal; text-align: right; line-height: 1; }
.hm-video .vz-end { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 2; display: flex; align-items: flex-end; gap: 20px; width: min(100% - 2 * var(--pad, 24px), 1560px); margin-inline: auto; pointer-events: none; }
.hm-video .vz-end .video-play { position: relative; left: auto; top: auto; margin: 0; flex-shrink: 0; }
.hm-video .vz-meta { display: flex; flex-direction: column; line-height: 1.3; }
.hm-video .vz-meta b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.hm-video .vz-meta span { font-size: 14px; opacity: .8; }
.hm-video .vz-story { margin-left: auto; font-size: clamp(36px, 5.6vw, 96px); line-height: .9; letter-spacing: -.05em; font-style: italic; }
.hm-video .vz-story b { font-weight: 800; font-style: normal; }
.hm-video .video-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); transition: transform .7s var(--ease-out), background-color .4s; }
.hm-video .video-play::after { content: ''; position: absolute; left: 46px; top: 38px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.hm-video:has(.vz-frame:hover) .video-play { transform: scale(1.1); background: var(--c-biz); }
.hm-video .video-after { padding-block: var(--space-s, clamp(64px, 9vh, 120px)) clamp(120px, 18vh, 220px); }
.hm-video .video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.hm-video .video-side .label { color: var(--c-biz); }
.hm-video .video-list { margin: 20px 0 30px; }
.hm-video .video-list li { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; font-weight: 300; }
.hm-video .video-vert { display: flex; flex-direction: column; gap: 16px; }
.hm-video .muted-d { color: rgba(255, 255, 255, .6); font-size: 15px; }
/* вертикалните видеа: без рамки, чисти кадри със заоблени ъгли, лентата е леко наклонена */
.hm-video .reels-stage { margin-top: clamp(150px, 22vh, 260px); padding-block: 90px; }
.hm-video .reels { overflow: clip; transform: rotate(-4deg) scale(1.08); }
.hm-video .reels-track { display: flex; align-items: center; width: max-content; padding-block: 80px; will-change: transform; }
.hm-video .reel { position: relative; flex-shrink: 0; width: clamp(170px, 14vw, 220px); aspect-ratio: 9 / 16; margin: 0 clamp(34px, 3.6vw, 60px) 0 0; will-change: transform, opacity; }
.hm-video .reel-screen { position: relative; display: block; width: 100%; height: 100%; overflow: clip; border-radius: 16px; background: #0E1013; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .85); }
.hm-video .reel-media { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hm-video .reel-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 40%); }
.hm-video .reel figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-size: 13px; line-height: 1.3; font-weight: 700; }
@media (max-width: 640px) {
  .hm-video .reels-stage { margin-top: 64px; padding-block: 24px; }
  .hm-video .reels-track { padding-block: 46px; }
  .hm-video .video-after { padding-bottom: 72px; }
}

/* ============================================================ фотография: жанрове и колаж */

.pfx.hm-photo { background: #fff; color: var(--ink, #16181B); }
.hm-photo .ph-head { align-items: flex-end; }
.hm-photo .ph { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin-top: clamp(36px, 5vh, 60px); }
.hm-photo .ph-genres { margin: 0 0 26px; }
.hm-photo .ph-genres button { position: relative; display: inline-flex; align-items: baseline; padding: 3px 0; font-size: clamp(24px, 2.3vw, 38px); line-height: 1.12; letter-spacing: -.035em; font-weight: 200; color: color-mix(in srgb, currentColor 55%, transparent); transition: font-weight .7s var(--ease-out), color .5s, transform .7s var(--ease-out); border-radius: 0 !important; }
.hm-photo .ph-genres button .dot { opacity: 0; transition: opacity .5s; }
.hm-photo .ph-genres button.is-on { font-weight: 800; color: var(--ink, #16181B); transform: translate3d(10px, 0, 0); }
.hm-photo .ph-genres button.is-on .dot { opacity: 1; }
.hm-photo .ph-genres button:hover { color: var(--ink, #16181B); }
.hm-photo .ph-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-biz); transform-origin: left; animation: hm-timer var(--ph-t, 4.2s) linear both; }
[data-js] .hm-photo .ph-stage[data-rv] { opacity: 1; transform: none; }
.hm-photo .ph-stage { position: relative; aspect-ratio: 1.22; }
/* парчетата сменят и мястото, и големината си с всеки жанр (подредбата идва от скрипта, на компютър) */
.hm-photo .ph-slot {
  position: absolute; margin: 0; overflow: clip; border-radius: 14px; background: #EEF1F3; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .5); clip-path: inset(100% 0 0 0 round 14px);
  left: var(--l); top: var(--t); width: var(--w); height: var(--h);
  --dl: calc(var(--s) * 110ms);
  transition: clip-path 1.5s var(--ease-out) calc(var(--s) * 140ms), left 1.7s var(--ease-io) var(--dl), top 1.7s var(--ease-io) var(--dl), width 1.7s var(--ease-io) var(--dl), height 1.7s var(--ease-io) var(--dl);
}
.hm-photo .ph-stage[data-in] .ph-slot { clip-path: inset(0 0 0 0 round 14px); }
.hm-photo .ph-s0 { --l: 0%; --t: 7%; --w: 57%; --h: 64%; --from: inset(0 100% 0 0); }
.hm-photo .ph-s1 { --l: 62%; --t: 0%; --w: 38%; --h: 58%; --from: inset(100% 0 0 0); }
.hm-photo .ph-s2 { --l: 43%; --t: 63%; --w: 51%; --h: 37%; --from: inset(0 0 0 100%); z-index: 2; }
.hm-photo .ph-s3 { --l: 10%; --t: 75%; --w: 27%; --h: 25%; --from: inset(0 0 100% 0); z-index: 1; }
/* мазна смяна: новата снимка се разкрива с маска (от различна страна за всяко парче), докато старата под нея бавно се приближава */
.hm-photo .ph-slot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; clip-path: var(--from); transform: scale(1.16); }
.hm-photo .ph-slot img.is-prev { z-index: 1; clip-path: inset(0 0 0 0); transform: scale(1.06); transition: clip-path 1.2s var(--ease-out), transform 2.4s var(--ease-io); }
.hm-photo .ph-slot img.is-on { z-index: 2; clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1.6s var(--ease-io) calc(var(--s) * 120ms), transform 2.6s var(--ease-out) calc(var(--s) * 120ms); }
.hm-photo .ph-cap { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; font-size: 15px; color: color-mix(in srgb, currentColor 62%, transparent); animation: hm-cap-in .8s var(--ease-out) both; }
.hm-photo .ph-count { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-biz); }

/* ============================================================ месечен абонамент (текстът и пакетите; фонът е на реда) */

.pfx.hm-sub-copy { color: #0B2530; }
.hm-sub-copy .sub-title { margin-top: 18px; font-size: clamp(46px, 5.9vw, 100px); line-height: .88; letter-spacing: -.06em; }
.hm-sub-copy .sub-dot { color: #fff; font-weight: 800; }
.hm-sub-copy .sub-lead { margin-top: 28px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; font-weight: 300; letter-spacing: -.015em; }
.hm-sub-copy .sub-lead b { font-weight: 800; }
.hm-sub-copy .sub-text { margin-top: 16px; max-width: 520px; font-weight: 500; }
.hm-sub-copy .sub-list { margin: 24px 0 32px; font-weight: 700; }
.hm-sub-copy .sub-list li { position: relative; padding: 4px 0 4px 28px; line-height: 1.5; }
.hm-sub-copy .sub-list li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 16px; height: 1.5px; background: currentColor; }
.hm-sub-copy .btn-ghost, .hm-sub-copy .btn-ghost:hover { color: #0B2530; }

.pfx.hm-plans { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(100% - 2 * var(--pad, 24px), var(--max, 1320px)); margin: clamp(72px, 10vh, 130px) auto 0; }
.hm-plans .plan { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; border-radius: 16px; background: #fff; color: #0B2530; transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.hm-plans .plan:hover { transform: translate3d(0, -10px, 0); box-shadow: 0 40px 80px -36px rgba(11, 37, 48, .5); }
.hm-plans .plan.is-best { background: #0B2530; color: #fff; }
.hm-plans .plan header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hm-plans .plan h3 { font-size: clamp(34px, 3vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.hm-plans .plan-badge { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c-biz); }
.hm-plans .plan-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-biz); animation: hm-pulse 2s infinite; }
@keyframes hm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 196, 234, .7); } 50% { box-shadow: 0 0 0 10px rgba(42, 196, 234, 0); } }
.hm-plans .plan-sub { font-weight: 600; opacity: .72; font-size: 15px; line-height: 1.5; }
.hm-plans .plan ul li { padding: 11px 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 15px; line-height: 1.45; }
.hm-plans .plan-price { margin-top: auto; padding-top: 10px; font-size: clamp(34px, 3vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.hm-plans .plan-price span { font-size: 15px; font-weight: 500; opacity: .7; letter-spacing: 0; }

/* ============================================================ вашият feed */

/* само хоризонтално изрязване: сянката на телефона отдолу не се реже */
.pfx.hm-feed { position: relative; z-index: 1; background: #F1F4F6; color: var(--ink, #16181B); overflow-x: clip; }
.hm-feed .feed-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.hm-feed .feed-copy > * + * { margin-top: 22px; }
.hm-feed .feed-list li { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-weight: 500; }
.hm-feed .feed-list i { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; }
.hm-feed .feed-list .sq { background: var(--c-biz); }
.hm-feed .feed-list .sq.dark { background: var(--ink, #16181B); }
.hm-feed .feed-list .circ { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink, #16181B); }
.hm-feed .feed-list .stack { box-shadow: inset 0 0 0 1.5px var(--ink, #16181B), 3px -3px 0 -1px #fff, 3px -3px 0 0 var(--ink, #16181B); }
.hm-feed .wink { display: flex; align-items: center; gap: 14px; font-style: italic; font-weight: 300; color: var(--muted); }
.hm-feed .wink .diamond { color: var(--room, #2AC4EA); flex-shrink: 0; }
/* телефон под перспектива; три поста изскачат пред екрана */
.hm-feed .phone-stage { position: relative; display: grid; place-items: center; padding-block: 60px 120px; perspective: 1700px; perspective-origin: 50% 40%; }
.hm-feed .phone-tilt { transform-style: preserve-3d; }
.hm-feed .phone { position: relative; width: clamp(270px, 25vw, 360px); aspect-ratio: 9 / 18.6; padding: 11px; border-radius: 48px; background: #0B0D0F; transform: rotateY(-18deg) rotateX(8deg) rotateZ(3deg); transform-style: preserve-3d; box-shadow: inset 0 0 0 1.5px #2A2E33, 40px 70px 120px -40px rgba(11, 37, 48, .55), 10px 20px 40px -20px rgba(11, 37, 48, .35); }
.hm-feed .phone::before { content: ''; position: absolute; left: 50%; top: 20px; z-index: 2; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: #0B0D0F; }
.hm-feed .phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: #fff; color: var(--ink, #16181B); font-size: 11px; line-height: 1.3; }
.hm-feed .ig-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 0; font-size: 11px; }
.hm-feed .ig-status span { display: flex; gap: 3px; }
.hm-feed .ig-status i { width: 4px; height: 8px; border-radius: 1px; background: var(--ink, #16181B); }
.hm-feed .ig-status i:nth-child(2) { height: 10px; }
.hm-feed .ig-status i:nth-child(3) { height: 12px; }
.hm-feed .ig-head { display: flex; align-items: center; gap: 16px; padding: 18px 14px 8px; }
.hm-feed .ig-ava { display: grid; place-items: center; flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--c-biz); color: #0B2530; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-biz); }
.hm-feed .ig-stats { display: flex; gap: 16px; }
.hm-feed .ig-stats > span { display: flex; flex-direction: column; font-size: 10px; color: var(--muted); }
.hm-feed .ig-stats b { font-size: 14px; color: var(--ink, #16181B); }
.hm-feed .ig-bio { display: flex; flex-direction: column; padding: 0 14px; }
.hm-feed .ig-bio b { font-size: 12px; }
.hm-feed .ig-bio span { color: var(--muted); }
.hm-feed .ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px; }
.hm-feed .ig-btns span { padding: 6px 0; border-radius: 8px; background: #EFF2F4; text-align: center; font-weight: 700; }
.hm-feed .ig-btns .is-main { background: var(--c-biz); color: #0B2530; }
.hm-feed .ig-high { display: flex; gap: 12px; padding: 2px 14px 12px; }
.hm-feed .ig-high span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; }
.hm-feed .ig-high i { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair), inset 0 0 0 5px #fff; background: #EAF7FB; }
.hm-feed .ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.hm-feed .ig-post { position: relative; aspect-ratio: 1; overflow: clip; background: #F2F4F5; }
.hm-feed .ig-post img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hm-feed .ig-post.is-bw img { filter: grayscale(1); }
.hm-feed .ig-tag { position: absolute; left: 5px; top: 5px; padding: 2px 5px; border-radius: 4px; background: var(--c-biz); color: #0B2530; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hm-feed .ig-tag.light { background: #fff; text-transform: none; letter-spacing: 0; }
.hm-feed .ig-design { display: flex; flex-direction: column; justify-content: space-between; padding: 8px; background: var(--c-biz); color: #0B2530; }
.hm-feed .ig-big { font-size: clamp(12px, 1.2vw, 17px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.hm-feed .ig-big .thin { font-weight: 200; }
.hm-feed .ig-brand { font-size: 6px; font-weight: 700; letter-spacing: .08em; }
.hm-feed .ig-price { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 4px 5px; background: rgba(255, 255, 255, .92); font-size: 7px; }
.hm-feed .ig-reel::after { content: ''; position: absolute; right: 6px; top: 6px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.hm-feed .ig-quote { display: flex; flex-direction: column; justify-content: space-between; padding: 8px; background: #0B2530; color: #fff; }
.hm-feed .ig-q { font-size: 26px; line-height: .6; color: var(--c-biz); }
.hm-feed .ig-lines { display: flex; flex-direction: column; gap: 4px; }
.hm-feed .ig-lines i { height: 3px; border-radius: 2px; background: currentColor; opacity: .5; }
.hm-feed .ig-lines i:last-child { width: 60%; }
.hm-feed .ig-stars { color: var(--c-biz); font-size: 8px; letter-spacing: .08em; }
.hm-feed .ig-count { position: absolute; right: 5px; top: 5px; padding: 1px 5px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 7px; }
.hm-feed .ig-hours { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; background: #F3F6F7; font-size: 7px; }
.hm-feed .ig-hours b { font-size: clamp(10px, .9vw, 13px); font-weight: 800; }
.hm-feed .ig-sale { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0B0D0F; color: #fff; text-align: center; font-size: 7px; }
.hm-feed .ig-sale b { font-size: clamp(16px, 1.6vw, 24px); font-weight: 900; letter-spacing: -.05em; color: var(--c-biz); }
.hm-feed .pop { position: absolute; z-index: 3; overflow: clip; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(11, 37, 48, .55); animation: hm-pop-float 7s ease-in-out infinite; }
.hm-feed .pop-reel { right: -34%; top: 18%; width: 46%; aspect-ratio: 9 / 16; background: #000; transform: translateZ(110px); }
.hm-feed .pop-reel img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hm-feed .pop-play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hm-feed .pop-play::after { content: ''; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.hm-feed .pop-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px; background: rgba(255, 255, 255, .3); }
.hm-feed .pop-bar i { display: block; height: 100%; background: #fff; transform-origin: left; animation: hm-timer 6s linear infinite; }
.hm-feed .pop-design { left: -30%; top: 46%; display: flex; flex-direction: column; width: 44%; aspect-ratio: 1; padding: 14px; background: var(--c-biz); color: #0B2530; transform: translateZ(80px); animation-delay: -2.5s; }
.hm-feed .pop-design b { font-size: clamp(18px, 1.8vw, 26px); line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.hm-feed .pop-design .thin { font-size: clamp(18px, 1.8vw, 26px); line-height: .95; letter-spacing: -.04em; }
.hm-feed .pop-design small { margin-top: auto; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.hm-feed .pop-review { right: -22%; bottom: 9%; display: flex; flex-direction: column; gap: 8px; width: 42%; padding: 12px; background: #fff; color: #0B2530; transform: translateZ(140px); animation-delay: -4.5s; }
.hm-feed .pop-review .ig-stars { font-size: 12px; }
@keyframes hm-pop-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ============================================================ оборудване */

.pfx.hm-gear { position: relative; background: #0B0D0F; color: #fff; overflow: clip; padding-block: calc(var(--space, clamp(96px, 13vh, 180px)) * 1.45) calc(var(--space, clamp(96px, 13vh, 180px)) * 1.2); }
.hm-gear .gear-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .26; pointer-events: none; }
.pfx.hm-gear::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0B0D0F 0%, rgba(11, 13, 15, .55) 30%, rgba(11, 13, 15, .7) 70%, #0B0D0F 100%); pointer-events: none; }
.hm-gear .gear-in, .hm-gear .gear-strip { position: relative; z-index: 2; }
.hm-gear .gear-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(44px, 8vw, 140px); margin-top: clamp(64px, 10vh, 110px); align-items: start; }
.hm-gear .gear-text { max-width: 58ch; font-size: clamp(18px, 1.55vw, 22px); font-weight: 300; line-height: 1.78; color: rgba(255, 255, 255, .88); }
.hm-gear .gear-tags { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.hm-gear .gear-tags li { padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-size: 14px; line-height: 1.3; font-weight: 600; cursor: default; transition: background-color .4s, color .4s, box-shadow .4s; }
.hm-gear .gear-tags li:hover { background: var(--c-biz); color: #0B2530; box-shadow: inset 0 0 0 1px var(--c-biz); }
/* етикетите светват един след друг като лампи в студио */
.hm-gear .gear-tags.is-lights li { display: inline-flex; align-items: center; gap: 10px; animation: hm-gear-lamp 7s ease-in-out infinite; animation-delay: calc(var(--i) * .9s); }
.hm-gear .gear-tags.is-lights li i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); animation: hm-gear-dot 7s ease-in-out infinite; animation-delay: inherit; }
@keyframes hm-gear-lamp { 0%, 18%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); } 6%, 10% { box-shadow: inset 0 0 0 1px var(--c-biz), 0 0 30px -6px rgba(42, 196, 234, .55); } }
@keyframes hm-gear-dot { 0%, 18%, 100% { background: rgba(255, 255, 255, .25); box-shadow: none; } 6%, 10% { background: var(--c-biz); box-shadow: 0 0 12px var(--c-biz); } }
/* мек лъч светлина минава бавно през секцията */
.hm-gear .gear-beam { position: absolute; top: -20%; bottom: -20%; left: -30%; z-index: 1; width: 26%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: hm-gear-beam 14s ease-in-out infinite; pointer-events: none; }
@keyframes hm-gear-beam { 0% { transform: translate3d(0, 0, 0) skewX(-18deg); } 60%, 100% { transform: translate3d(560%, 0, 0) skewX(-18deg); } }
.hm-gear .gear-strip { margin-top: clamp(110px, 16vh, 190px); }
.hm-gear .gear-shot { flex-shrink: 0; width: clamp(280px, 30vw, 470px); aspect-ratio: 16 / 10; margin: 0 14px 0 0; border-radius: 8px; overflow: clip; }
.hm-gear .gear-shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1) contrast(1.06); }

/* ============================================================ контакт: линиите се събират в бутона */

.pfx.hm-contact { position: relative; overflow: clip; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(120px, 16vh, 200px) clamp(90px, 12vh, 150px); background: #fff; color: var(--ink, #16181B); }
.hm-contact .converge { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.hm-contact .contact-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-contact .ct-title { margin-top: 22px; font-size: clamp(56px, 9.4vw, 160px); line-height: .9; letter-spacing: -.055em; }
.hm-contact .ct-title .dot { color: var(--ct, var(--c-biz)); }
.hm-contact .ct-sub { margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); color: color-mix(in srgb, currentColor 62%, transparent); }
.hm-contact .ct-go { margin-top: clamp(40px, 6vh, 64px); }
.hm-contact .ct-btn { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 22px 34px; border-radius: 999px; background: var(--ink, #16181B); color: #fff; font-size: 17px; line-height: 1.2; font-weight: 700; box-shadow: 0 0 0 10px rgba(42, 196, 234, .14), 0 30px 60px -24px rgba(11, 37, 48, .55); transition: background-color .4s, color .4s, box-shadow .6s var(--ease-out); }
.hm-contact .ct-btn i { font-style: normal; transition: transform .5s var(--ease-out); }
.hm-contact .ct-btn:hover { background: var(--c-biz); color: #0B2530; box-shadow: 0 0 0 18px rgba(42, 196, 234, .18), 0 40px 70px -24px rgba(11, 37, 48, .6); }
.hm-contact .ct-btn:hover i { transform: translateX(5px); }
.hm-contact .ct-lines { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 36px; margin-top: 40px; }
.hm-contact .contact-mail { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; font-weight: 800; letter-spacing: -.025em; border-bottom: 3px solid var(--ct, var(--c-biz)); }
.hm-contact .contact-phone { font-size: 22px; line-height: 1.3; font-weight: 300; }
.hm-contact .ct-plus { position: absolute; width: 18px; height: 18px; opacity: .5; }
.hm-contact .ct-plus::before, .hm-contact .ct-plus::after { content: ''; position: absolute; background: var(--ct, var(--c-biz)); }
.hm-contact .ct-plus::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hm-contact .ct-plus::after { top: 50%; left: 0; right: 0; height: 1px; }
.hm-contact .ct-plus.a { left: 8%; top: 22%; }
.hm-contact .ct-plus.b { right: 11%; top: 40%; }
.hm-contact .ct-plus.c { left: 18%; bottom: 14%; }

/* ============================================================ „гръбнак“: плюсчета по левия край (скриптът ги слага в body) */

.hm-spine { position: absolute; left: 0; right: 0; top: 0; z-index: 30; height: 0; pointer-events: none; }
.hm-spine-mark { position: absolute; left: max(6px, calc((100% - var(--max, 1320px)) / 2 - 52px)); width: 17px; height: 17px; margin-top: -8px; }
.hm-spine-seg { position: absolute; left: 8px; top: 20px; width: 1px; height: 32vh; background: linear-gradient(180deg, #2AC4EA, rgba(42, 196, 234, 0)); transform-origin: top; transform: scaleY(0); opacity: 0; transition: transform 1.4s var(--ease-io), opacity 1.2s; }
.hm-spine-mark.is-on .hm-spine-seg { transform: scaleY(1); opacity: 1; }
.hm-spine-mark::before, .hm-spine-mark::after { content: ''; position: absolute; background: #2AC4EA; }
.hm-spine-mark::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hm-spine-mark::after { top: 50%; left: 0; width: 46px; height: 1px; opacity: .8; }
.hm-spine-mark b { position: absolute; left: 24px; top: -14px; font: 700 10px/1 Montserrat, sans-serif; letter-spacing: .2em; color: #2AC4EA; }
@media (max-width: 700px) { .hm-spine { display: none; } }

/* ============================================================ прозорец за видеото (Vimeo) над страницата */

.hm-lb { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 8, .92); animation: hm-lb-in .5s var(--ease-out, ease) both; }
.hm-lb .hm-lb-in { position: relative; width: min(92vw, 160vh); aspect-ratio: 16 / 9; border-radius: 12px; overflow: clip; background: #000; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9); }
.hm-lb iframe, .hm-lb video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-lb video { display: block; object-fit: contain; background: #000; }
.hm-lb .hm-lb-x { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; min-width: 0; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50% !important; background: transparent; box-shadow: none; color: #fff; font: 400 18px/1 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .3s, color .3s; }
.hm-lb .hm-lb-x:hover, .hm-lb .hm-lb-x:focus-visible { background: #fff; color: #07080A; }
@keyframes hm-lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hm-lb { animation: none; } }

/* ============================================================ таблет */

@media (max-width: 1000px) {
  .hm-video .video-grid, .hm-gear .gear-row, .hm-feed .feed-in, .hm-photo .ph { grid-template-columns: minmax(0, 1fr); }
  .pfx.hm-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: var(--pad, 24px) auto; }
  .hm-roof .roof-foot { grid-template-columns: minmax(0, 1fr); }
  .hm-web .wp { grid-template-columns: minmax(0, 1fr); }
  .hm-web .wp-stage { position: relative; top: auto; order: -1; }
  .hm-photo .ph-genres { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 26px 0 18px; }
  .hm-photo .ph-genres button { font-size: clamp(20px, 3.4vw, 30px); }
  .hm-photo .ph-genres button.is-on { transform: none; }
  .hm-feed .phone-stage { padding-block: 20px 60px; }
}

/* ============================================================ телефон */

@media (max-width: 700px) {
  .hm-paths .paths-grid { display: flex; flex-direction: column; gap: 20px; height: auto; }
  .hm-paths .path, .hm-paths .path + .path { position: relative; left: auto; right: auto; width: auto; min-height: 380px; clip-path: none; }
  .hm-paths .path + .path .path-in { transform: none; }
  .hm-paths .path .path-bg { width: 100%; opacity: .2; transform: none; }
  .hm-paths .path.is-dark .path-bg { opacity: .4; }

  .hm-roof .roof-word { font-size: clamp(56px, 17vw, 96px); }
  .hm-roof .roof-win { height: 46svh; border-radius: 14px; }
  .hm-roof .roof-label { top: 96px; }

  /* уеб проектите: лента с карти за плъзгане, всяка със собствен екран */
  .hm-web .wp-stage { display: none; }
  .hm-web .wp-list { display: flex; gap: 14px; margin: 0 calc(-1 * var(--pad, 24px)); padding: 8px var(--pad, 24px) 22px; border-top: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad, 24px); scrollbar-width: none; overscroll-behavior-x: contain; }
  .hm-web .wp-list::-webkit-scrollbar { display: none; }
  .hm-web .wp-item { flex: 0 0 min(84vw, 420px); display: flex; flex-direction: column; gap: 6px; border: 0; scroll-snap-align: start; }
  .hm-web .wp-item::after { display: none; }
  .hm-web .wp-mob { position: relative; display: block; aspect-ratio: 16 / 10.4; border-radius: 16px; overflow: clip; background: #EEF1F3; box-shadow: 0 30px 60px -34px rgba(11, 37, 48, .6), 0 0 0 1px rgba(11, 37, 48, .06); }
  .hm-web .wp-mob img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .hm-web .wp-mob-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; line-height: 1.3; font-weight: 700; }
  .hm-web .wp-row { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0 0; }
  /* на телефон дългото име се пренася на втори ред, за да не влиза под следващата карта */
  .hm-web .wp-name, .hm-web .wp-item.is-on .wp-name { display: block; font-size: clamp(26px, 7.6vw, 34px); font-weight: 800; white-space: normal; transform: none; }
  .hm-web .wp-name::after { display: none; }
  .hm-web .wp-type { white-space: normal; opacity: 1; }
  .hm-web .wp-mob-link { display: inline-flex; align-self: flex-start; margin: 4px 0 0 46px; font-size: 14px; }
  .hm-web .wp-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
  .hm-web .wp-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--hair); transition: width .5s var(--ease-out), background-color .4s; }
  .hm-web .wp-dots i.is-on { width: 24px; background: var(--c-biz); }

  .hm-video .vz-words { flex-direction: column; justify-content: center; gap: 46svh; }
  .hm-video .vz-a { font-size: clamp(54px, 18vw, 90px); }
  .hm-video .vz-b { font-size: clamp(28px, 9vw, 44px); text-align: center; max-width: none; }
  .hm-video .vz-end { flex-wrap: wrap; }
  .hm-video .vz-end .video-play { width: 72px; height: 72px; }
  .hm-video .vz-end .video-play::after { left: 30px; top: 24px; border-width: 12px 0 12px 18px; }
  .hm-video .vz-story { margin-left: 0; width: 100%; }
  .hm-video .slant { height: 44px; }

  .hm-photo .ph-stage { aspect-ratio: .86; }
  .hm-photo .ph-s0 { --l: 0%; --t: 4%; --w: 64%; --h: 54%; }
  .hm-photo .ph-s1 { --l: 67%; --t: 0%; --w: 33%; --h: 46%; }
  .hm-photo .ph-s2 { --l: 30%; --t: 60%; --w: 70%; --h: 40%; }
  .hm-photo .ph-s3 { --l: 0%; --t: 62%; --w: 27%; --h: 30%; }

  .hm-feed .phone { width: min(66vw, 300px); transform: rotateY(-10deg) rotateX(6deg) rotateZ(2deg); }
  .hm-feed .pop-reel { right: -18%; }
  .hm-feed .pop-design { left: -16%; }
  .hm-feed .pop-review { right: -12%; }

  .hm-plans .plan { padding: 28px 24px; }
}

/* ============================================================ намалено движение: всичко стои */

@media (prefers-reduced-motion: reduce) {
  .hm .hr-ring::after, .hm-four .fwf-grid, .hm-plans .plan-badge i, .hm-feed .pop, .hm-feed .pop-bar i,
  .hm-gear .gear-tags.is-lights li, .hm-gear .gear-tags.is-lights li i, .hm-gear .gear-beam, .hm-photo .ph-timer { animation: none; }
  .hm-gear .gear-beam { display: none; }
  /* лепкавите сцени стават обикновени секции */
  .pfx.hm-four { height: auto; }
  .hm-four .fw-stick { position: relative; height: auto; min-height: 0; padding-block: var(--space, clamp(96px, 13vh, 180px)); }
  .hm-four .fw-layer { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 56px; }
  .hm-four .fw-layer .fw-media { clip-path: none; aspect-ratio: 16 / 10; flex: none; }
  .hm-four .fw-stage { aspect-ratio: auto; height: auto; }
  .hm-four .fw-progress { display: none; }
  .hm-roof .roof-len { height: auto; }
  .hm-roof .roof-pin { position: relative; height: auto; min-height: 0; padding-block: 140px 60px; overflow: visible; }
  .hm-roof .roof-label { position: static; display: flex; width: auto; margin: 0 0 32px var(--hm-edge); }
  .hm-roof .roof-pin { flex-direction: column; align-items: stretch; }
  .hm-roof .roof-track { width: auto; flex-wrap: wrap; padding-inline: var(--hm-edge); row-gap: 28px; }
  .hm-roof .roof-word { white-space: normal; }
  .hm-roof .roof-bar { display: none; }
  .hm-video .vz-len { height: auto; }
  .hm-video .vz-pin { position: relative; height: 100svh; }
  .hm-video .vz-frame { clip-path: none; transform: none; }
  .hm-video .vz-frame video { transform: none; }
  .hm-video .vz-a, .hm-video .vz-b { display: none; }
  .hm-video .reels-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 40px; }
  .hm-video .reels { transform: none; }
}
