/* ============================================================
   Събитийно заснемане: тъмно и циан (образецът е site/src/styles/subitia.css).
   Тук е само видът на елементите; фонът на страницата и въздухът са в CSS-а на страницата.
   ============================================================ */

.pfx .dot { color: var(--room, #2AC4EA); }
.pfx .ev-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pfx .ev-mag { display: inline-block; }
.pfx .ev-sub { max-width: 34em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: rgba(237, 239, 241, .75); }
.pfx .ev-ghost, .pfx .ev-ghost:hover { color: #EDEFF1; }
.pfx .ev-h2 { font-size: clamp(40px, 5.6vw, 100px); line-height: .98; letter-spacing: -.055em; }

/* ---------- хирото: контактен лист ---------- */
.pfx.ev-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: clip; background: #07080A; color: #EDEFF1; }
/* пет ленти с кадри, които бавно текат (редуват посоката) */
.pfx .ev-sheet { position: absolute; inset: 0; display: grid; align-content: center; gap: clamp(10px, 1.2vw, 18px); padding-block: 70px 20px; }
.pfx .ev-strip { --fh: clamp(96px, 15svh, 168px); position: relative; overflow: clip; padding-block: 22px; background-color: #121315;
  /* перфорацията горе и долу */
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, #07080A 9px 19px, transparent 19px 26px), repeating-linear-gradient(90deg, transparent 0 9px, #07080A 9px 19px, transparent 19px 26px);
  background-size: 100% 7px, 100% 7px; background-position: 0 6px, 0 calc(100% - 6px); background-repeat: repeat-x; }
.pfx .ev-run { display: flex; gap: 12px; width: max-content; animation: pfx-ev-run 150s linear infinite; }
.pfx .ev-strip:nth-child(even) .ev-run { animation-direction: reverse; animation-duration: 180s; }
.pfx .ev-strip:nth-child(3) .ev-run { animation-duration: 125s; }
@keyframes pfx-ev-run { to { transform: translateX(-50%); } }
/* хирото не се вижда (или разделът на браузъра е скрит): лентите спират */
.pfx.ev-hero[data-off] .ev-run { animation-play-state: paused; }
.pfx .ev-fr { position: relative; flex: none; height: var(--fh); aspect-ratio: 3 / 2; margin: 0; background: #0c0d0f; }
.pfx .ev-fr .img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1) brightness(.72) contrast(1.05); transition: filter 1.4s var(--ease); }
.pfx .ev-fr.is-pick .img { filter: none; transition-delay: .5s; }
.pfx .ev-fr figcaption { position: absolute; left: 0; right: 0; bottom: -16px; display: flex; gap: 22px; font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: .16em; color: rgba(42, 196, 234, .5); pointer-events: none; }
.pfx .ev-brand { margin-left: auto; padding-right: 8px; }
/* маркерът „на ръка“ */
.pfx .ev-mark { position: absolute; left: -10%; top: -14%; width: 120%; height: 128%; max-width: none; overflow: visible; pointer-events: none; }
.pfx .ev-mark path { fill: none; stroke: var(--c-biz, #2AC4EA); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: stroke-dashoffset 1s cubic-bezier(.6, .1, .3, 1), opacity .5s; }
.pfx .ev-fr.is-pick { z-index: 2; }
.pfx .ev-fr.is-pick .ev-mark path { opacity: .95; }
/* лупата */
.pfx .ev-loupe { position: fixed; left: 0; top: 0; z-index: 3; width: clamp(180px, 16vw, 260px); aspect-ratio: 1; border-radius: 50%; pointer-events: none; background-color: #0c0d0f; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(237, 239, 241, .55), 0 0 0 7px rgba(7, 8, 10, .5), 0 0 0 8px rgba(42, 196, 234, .45), 0 30px 70px rgba(0, 0, 0, .6); opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease-out); }
.pfx .ev-loupe::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 62%, rgba(0, 0, 0, .35)); }
.pfx .ev-loupe.is-on.has-img { opacity: 1; scale: 1; }
.pfx .ev-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 10, .94) 0%, rgba(7, 8, 10, .84) 36%, rgba(7, 8, 10, .3) 60%, rgba(7, 8, 10, 0) 74%), linear-gradient(0deg, #07080A 0%, rgba(7, 8, 10, 0) 22%); pointer-events: none; }
.pfx .ev-hero-in { position: relative; z-index: 1; align-self: center; display: grid; gap: 24px; justify-items: start; padding-top: 120px; }
.pfx .ev-label { color: var(--c-biz, #2AC4EA); }
.pfx .ev-title { font-size: clamp(56px, 10vw, 190px); line-height: .9; letter-spacing: -.06em; }
.pfx .ev-title .thin { font-size: .56em; letter-spacing: -.04em; }
.pfx .ev-index { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 26px 34px; border-top: 1px solid rgba(237, 239, 241, .14); }
.pfx .ev-index a { display: inline-flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 600; color: rgba(237, 239, 241, .7); transition: color .3s; }
.pfx .ev-index a:hover { color: #fff; }
.pfx .ev-index span { font-size: 11px; color: var(--c-biz, #2AC4EA); letter-spacing: .14em; }

/* ---------- главите ---------- */
.pfx.ev-chaps { background: #07080A; color: #EDEFF1; }
.pfx .ev-chap { padding-block: clamp(90px, 14vh, 170px); border-top: 1px solid rgba(237, 239, 241, .08); overflow-x: clip; }
.pfx .ev-chap-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.pfx .ev-chap.is-flip .ev-chap-t { order: 2; }
/* снимките вляво са по-големи, текстът е изтеглен вдясно */
.pfx .ev-chap.is-flip .ev-chap-in { grid-template-columns: minmax(0, 8.6fr) minmax(0, 3.8fr); }
.pfx .ev-chap.is-flip .ev-h { font-size: clamp(30px, 3.1vw, 58px); }
.pfx .ev-chap-t { position: sticky; top: 130px; z-index: 2; display: grid; gap: 16px; text-shadow: 0 2px 24px rgba(7, 8, 10, .7); }
.pfx .ev-n { font-size: clamp(64px, 7vw, 120px); line-height: .8; font-weight: 100; color: var(--c-biz, #2AC4EA); }
.pfx .ev-h { font-size: clamp(36px, 4.2vw, 74px); line-height: .98; letter-spacing: -.05em; }
.pfx .ev-chap-t p { font-size: 18px; line-height: 1.6; color: rgba(237, 239, 241, .7); max-width: 24em; }
.pfx .ev-count { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(237, 239, 241, .45); }
.pfx .ev-cl { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.pfx .ev-col { display: grid; gap: clamp(10px, 1.4vw, 20px); will-change: transform; }
.pfx .ev-col + .ev-col { margin-top: clamp(40px, 10vw, 160px); }
body .pfx .ev-ph { aspect-ratio: var(--r, 1.5); width: 100%; position: relative; overflow: clip; padding: 0; cursor: pointer; background: #111; border-radius: 0 !important; }
.pfx .ev-ph .img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.6s var(--ease-out), opacity .9s, filter .8s; }
.pfx .ev-ph:hover .img { transform: scale(1.05); }
.pfx .ev-ph:focus-visible { outline: 2px solid var(--c-biz, #2AC4EA); outline-offset: 3px; }

/* ---------- как работя ---------- */
.pfx.ev-how { background: #fff; color: var(--ink, #16181B); }
.pfx .ev-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 8vh, 90px); }
.pfx .ev-how-it { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink, #16181B); }
.pfx .ev-how-n { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-biz, #2AC4EA); }
.pfx .ev-how-it h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.pfx .ev-how-it p { color: var(--muted, #5C6166); line-height: 1.65; }

/* ---------- контакт ---------- */
.pfx.ev-contact { background: #07080A; color: #EDEFF1; }
.pfx .ev-contact-in { display: grid; gap: 26px; justify-items: start; }

@media (max-width: 900px) {
  .pfx .ev-sheet { align-content: start; padding-top: 76px; }
  .pfx .ev-strip { --fh: clamp(72px, 11svh, 110px); padding-block: 18px; }
  .pfx .ev-veil { background: linear-gradient(0deg, #07080A 0%, rgba(7, 8, 10, .9) 45%, rgba(7, 8, 10, .3) 72%, rgba(7, 8, 10, .15) 100%); }
  /* текстът стои долу: първата лента остава свободна над надписа и маркерът огражда кадър там */
  .pfx .ev-hero-in { align-self: end; padding-bottom: 14px; }
  .pfx .ev-chap-in, .pfx .ev-chap.is-flip .ev-chap-in { grid-template-columns: minmax(0, 1fr); }
  .pfx .ev-chap.is-flip .ev-chap-t { order: 0; }
  .pfx .ev-chap-t { position: relative; top: auto; }
  .pfx .ev-how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .pfx .ev-how-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pfx .ev-run { animation: none; } .pfx .ev-mark path { transition: none; } }
