/* Слайдер на началната страница — трета версия (16.11.2026; config/hero_v3_helper.php, client/assets/js/hero-v3.js).
   Височината идва от .hero-slider (index.css — съотношението на снимката на първия слайд); тук всичко се мери спрямо рамката (container query),
   затова телефон/компютър се решава по ширината на самия слайдер. Анимира се само transform/opacity (+ маска на мазката). */
@property --hsA { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.hero-slider .hs-frame { height: 100%; container-type: size; }
.hs { --or: #f05328; --or2: #c8421d; --gr: #67c23a; --h: 100cqh; --d: calc(var(--h) * 1.06);
  position: relative; height: 100%; overflow: hidden; border-radius: 0 0 35px 35px; color: #fff; isolation: isolate;
  background: radial-gradient(60% 90% at 74% 55%, #24130a 0%, #0f0a08 45%, #080707 100%); }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 2; }

.hs-ghost { position: absolute; left: 36%; top: 50%; transform: translate(0, -50%); font-family: 'Zaglaviq', sans-serif; text-transform: uppercase; white-space: nowrap; line-height: .8;
  font-size: calc(var(--h) * .56); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .075); z-index: 0; pointer-events: none; user-select: none; }

.hs-art { position: absolute; left: 73%; top: 53%; width: var(--d); height: var(--d); transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.hs-enso { position: absolute; left: -14.9%; top: -14.9%; width: 129.8%; height: 129.8%; max-width: none; transform: rotate(var(--rot)); }
.hs-shadow { position: absolute; left: 6%; right: 6%; top: 12%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, 0) 100%); transform: translateY(5%); }
.hs-spin { position: absolute; inset: 3%; }
.hs-dish { width: 100%; height: 100%; object-fit: contain; display: block; }
.hs-sat { position: absolute; width: 34%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.hs-sat.s1 { left: -15%; bottom: 0; }
.hs-sat.s2 { right: -9%; top: 1%; width: 29%; }
.hs-rolls { position: absolute; inset: 2%; transform: rotate(-9deg); display: flex; flex-direction: column; justify-content: center; }
.hs-rolls img { width: 76%; height: auto; display: block; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .55)); margin-top: -4.5%; }
.hs-rolls img:first-child { margin-top: 0; }
.hs-rolls img:nth-child(odd) { align-self: flex-end; }
.hs-p { position: absolute; display: block; }
.hs-s { width: calc(var(--d) * .011 * var(--k)); height: calc(var(--d) * .018 * var(--k)); border-radius: 50%; background: #f4e6cc; rotate: var(--r); }
.hs-o { width: calc(var(--d) * .038 * var(--k)); height: calc(var(--d) * .038 * var(--k)); border-radius: 50%; border: calc(var(--d) * .008) solid var(--gr); scale: 1 .8; }
.hs-steam { position: absolute; left: 30%; top: -6%; width: 40%; height: 34%; }
.hs-steam i { position: absolute; bottom: 0; width: 22%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); opacity: 0; }
.hs-steam i:nth-child(1) { left: 8%; } .hs-steam i:nth-child(2) { left: 39%; } .hs-steam i:nth-child(3) { left: 70%; }

/* слайд със собствена снимка от админа */
.hs-bg { position: absolute; inset: 0; z-index: 0; }
.hs-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hs-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 7, 7, .72) 0%, rgba(8, 7, 7, .25) 48%, rgba(8, 7, 7, 0) 70%); pointer-events: none; }

.hs-copy { position: absolute; left: max(24px, calc((100cqw - 1400px) / 2 + 24px)); top: 46%; transform: translateY(-50%); width: min(41cqw, 600px); z-index: 3; text-align: left; }
.hs-kick { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 10px; border-radius: 8px; background: rgba(240, 83, 40, .13); border: 1px solid rgba(240, 83, 40, .38);
  font-size: clamp(11px, .9cqw, 13px); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ff8a5c; line-height: 1; }
.hs-kick i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--gr); }
.hs-kick-t { display: inline-flex; perspective: 300px; } .hs-kick-t b { display: inline-block; font-weight: inherit; transform-origin: 50% 100%; }
.hero-slider .hs .hs-title.slide-title { margin: 0; font-family: 'Zaglaviq', sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1.04; letter-spacing: .01em;
  font-size: clamp(34px, 4.6cqw, 72px) !important; color: #fff; text-shadow: none; text-wrap: balance; animation: none; opacity: 1; }
.hs-title > b { display: block; font-weight: 400; color: var(--or); }
.hs-sub { margin: clamp(10px, 1.1cqw, 18px) 0 0; font-size: clamp(14px, 1.2cqw, 18px); line-height: 1.55; color: #cfcbc6; max-width: 34em; text-wrap: pretty; }
.hs-cta { margin-top: clamp(16px, 1.8cqw, 28px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-slider .hs .hs-btn.slide-btn { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: clamp(12px, 1cqw, 16px) clamp(20px, 1.7cqw, 28px); border-radius: 10px; background: var(--or); color: #fff; text-decoration: none; border: 0;
  font-family: 'Zaglaviq', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 1.2cqw, 19px); line-height: 1.2; box-shadow: none; transition: background .18s ease, transform .18s ease; animation: none; opacity: 1; }
.hs-btn svg { flex: none; transition: transform .18s ease; }
.hero-slider .hs .hs-btn.slide-btn:hover { background: var(--or2); transform: translateY(-2px); } .hs-btn:hover svg { transform: translateX(3px); }
.hero-slider .hs .hs-btn.slide-btn:active { transform: scale(.98); }
.hs-btn:focus-visible, .hs-tab:focus-visible, .hs-arrows button:focus-visible, .hs-rating:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hs-price { display: inline-flex; align-items: baseline; gap: 6px; padding: clamp(10px, .9cqw, 14px) 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); font-size: clamp(13px, 1cqw, 15px); font-weight: 600; color: #cfcbc6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-price b { font-size: 1.25em; font-weight: 800; color: #fff; }
.hs-rating { margin-top: clamp(14px, 1.3cqw, 22px); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; font-size: clamp(13px, .95cqw, 15px); color: #cfcbc6; text-decoration: none; }
.hs-rating span { color: #f5b301; letter-spacing: 2px; } .hs-rating b { color: #fff; font-weight: 700; } .hs-rating em { font-style: normal; }
.hs-rating:hover em { text-decoration: underline; }

.hs-tabs { position: absolute; left: max(24px, calc((100cqw - 1400px) / 2 + 24px)); bottom: clamp(18px, 2.2cqw, 30px); z-index: 5; display: flex; gap: clamp(10px, 1.4cqw, 22px); }
.hs-tab { appearance: none; -webkit-appearance: none; border: 0; background: none; cursor: pointer; text-align: left; color: rgba(255, 255, 255, .5); font: inherit; width: clamp(84px, 8.6cqw, 124px); padding: 6px 0 0; transition: color .2s ease; }
.hs-tab:hover, .hs-tab.is-active { color: #fff; }
.hs-n { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--or); margin-right: 8px; font-variant-numeric: tabular-nums; }
.hs-l { font-size: clamp(12px, .95cqw, 14px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hs-bar { display: block; margin-top: 9px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 100%; background: var(--or); border-radius: 3px; transform: scaleX(0); transform-origin: left; }
.hs-tab.is-active .hs-bar i { animation: hsBar 6.5s linear forwards; }
.hs.is-paused .hs-tab.is-active .hs-bar i { animation-play-state: paused; }
@keyframes hsBar { to { transform: scaleX(1); } }
.hs-arrows { position: absolute; right: clamp(16px, 2.4cqw, 34px); bottom: clamp(18px, 2.2cqw, 30px); z-index: 5; display: flex; gap: 8px; }
.hs-arrows button { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 9, 8, .55); color: #fff; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.hs-arrows button:hover { background: var(--or); border-color: var(--or); }

@media (prefers-reduced-motion: no-preference) {
  .hs-spin { animation: hsSpin 90s linear infinite; }
  .hs-slide.is-active .hs-dish { animation: hsDishIn .95s cubic-bezier(.2, .8, .2, 1) both; }
  .hs-slide.is-active .hs-enso { -webkit-mask: conic-gradient(from 90deg, #000 var(--hsA), transparent 0); mask: conic-gradient(from 90deg, #000 var(--hsA), transparent 0); animation: hsDraw 1s cubic-bezier(.5, 0, .2, 1) .08s both; }
  .hs-slide.is-active .hs-sat, .hs-slide.is-active .hs-rolls img { animation: hsPop .6s cubic-bezier(.2, .9, .3, 1.25) both; }
  .hs-slide.is-active .hs-sat.s1 { animation-delay: .35s; } .hs-slide.is-active .hs-sat.s2 { animation-delay: .5s; }
  .hs-slide.is-active .hs-rolls img:nth-child(1) { animation-delay: .1s; } .hs-slide.is-active .hs-rolls img:nth-child(2) { animation-delay: .2s; }
  .hs-slide.is-active .hs-rolls img:nth-child(3) { animation-delay: .3s; } .hs-slide.is-active .hs-rolls img:nth-child(4) { animation-delay: .4s; }
  .hs-slide.is-active .hs-ghost { animation: hsGhost 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hs-slide.is-active .hs-kick { animation: hsKick .45s cubic-bezier(.2, .8, .2, 1) both; }
  .hs-slide.is-active .hs-kick i { animation: hsPop .5s cubic-bezier(.2, .9, .3, 1.6) .15s both; }
  .hs-slide.is-active .hs-kick-t b { animation: hsLetter .5s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: calc(.18s + var(--i) * 38ms); }
  .hero-slider .hs .hs-slide.is-active .hs-title.slide-title, .hs-slide.is-active .hs-sub, .hs-slide.is-active .hs-cta, .hs-slide.is-active .hs-rating { animation: hsUp .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-slider .hs .hs-slide.is-active .hs-title.slide-title { animation-delay: .07s; } .hs-slide.is-active .hs-sub { animation-delay: .14s; } .hs-slide.is-active .hs-cta { animation-delay: .21s; } .hs-slide.is-active .hs-rating { animation-delay: .28s; }
  .hs-p { animation: hsFloat var(--fd, 7s) ease-in-out var(--dl, 0s) infinite; }
  .hs-steam i { animation: hsSteam 4.6s ease-in-out infinite; } .hs-steam i:nth-child(2) { animation-delay: -1.5s; } .hs-steam i:nth-child(3) { animation-delay: -3s; }
  /* извън екрана или в скрит слайд нищо не се върти */
  .hs.is-off .hs-spin, .hs.is-off .hs-p, .hs.is-off .hs-steam i, .hs-slide:not(.is-active) .hs-spin, .hs-slide:not(.is-active) .hs-p, .hs-slide:not(.is-active) .hs-steam i { animation-play-state: paused; }
  /* „лек“ режим (Андроид): без безкрайните движения — появяването остава */
  html.lite .hs-spin, html.lite .hs-p, html.lite .hs-steam i { animation: none; }
}
@keyframes hsSpin { to { transform: rotate(360deg); } }
@keyframes hsDishIn { from { opacity: 0; transform: scale(.82) rotate(-38deg); } to { opacity: 1; transform: none; } }
@keyframes hsDraw { from { --hsA: 0deg; opacity: 0; } 8% { opacity: 1; } to { --hsA: 360deg; opacity: 1; } }
@keyframes hsPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hsGhost { from { opacity: 0; transform: translate(60px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes hsKick { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes hsLetter { from { opacity: 0; transform: translateY(-.7em) rotateX(80deg); } to { opacity: 1; transform: none; } }
@keyframes hsUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hsSteam { 0% { opacity: 0; transform: translateY(18%) scaleX(1); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38%) scaleX(1.7); } }

/* ═══ телефон (тесен слайдер) ═══ */
@container (max-width: 768px) {
  .hs { --d: min(104cqw, calc(var(--h) * .8)); border-radius: 0 0 22px 22px; background: radial-gradient(90% 60% at 50% 78%, #24130a 0%, #0f0a08 50%, #080707 100%); }
  .hs-ghost { left: 50%; top: 47%; transform: translate(-50%, -50%); font-size: 30cqw; }
  .hs-art { left: 50%; top: 80%; }
  .hs-sat.s1 { left: -1%; bottom: 30%; width: 30%; } .hs-sat.s2 { right: 0; top: 4%; width: 26%; }
  .hs-rolls { inset: 9% 2% 16%; } .hs-rolls img { width: 86%; }
  .hs-bg img { object-position: center bottom; }
  .hs-photo::after { background: linear-gradient(180deg, rgba(8, 7, 7, .7) 0%, rgba(8, 7, 7, .15) 42%, rgba(8, 7, 7, 0) 60%); }
  .hs-copy { left: 16px; right: 16px; top: 6.5%; transform: none; width: auto; text-align: center; }
  .hs-kick { font-size: 10.5px; gap: 7px; padding: 6px 11px 6px 9px; } .hs-kick i { width: 10px; height: 10px; }
  .hero-slider .hs .hs-title.slide-title { font-size: clamp(26px, 8.4cqw, 40px) !important; margin-top: 0; }
  .hs-sub, .hs-rating, .hs-arrows { display: none; }
  .hs-cta { justify-content: center; margin-top: 14px; gap: 10px; }
  .hero-slider .hs .hs-btn.slide-btn { padding: 12px 20px; font-size: 16px; } .hs-price { padding: 10px 13px; font-size: 13px; background: rgba(10, 9, 8, .92); }
  .hs-tabs { left: 16px; right: 16px; bottom: 12px; gap: 6px; }
  .hs-tab { flex: 1; width: auto; padding: 12px 0 6px; } .hs-n, .hs-l { display: none; } .hs-bar { margin-top: 0; background: rgba(255, 255, 255, .28); }
  .hs::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 4; pointer-events: none; background: linear-gradient(to top, rgba(8, 7, 7, .85), rgba(8, 7, 7, 0)); }
  @keyframes hsGhost { from { opacity: 0; transform: translate(-42%, -50%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
