/* Перший екран: сцена «товари -> інтернет-магазин».
   Геометрію (позиції ноутбука, телефона, карток) задає assets/js/hero-scroll.js,
   тут лише вигляд. Без JS сцена показує фінальний стан. */

.hs { position: relative; }
.hs__sticky { position: relative; display: flex; flex-direction: column; align-items: center; }
.hs--scroll { height: 480vh; }
.hs--scroll .hs__sticky { position: sticky; top: var(--hs-top, 0px); height: calc(100vh - var(--hs-top, 0px)); padding: 18px 20px 10px; }
.hs--auto .hs__sticky { padding: 10px 16px 30px; }

/* Текст етапу */
.hs__text { text-align: center; max-width: 760px; min-height: 118px; position: relative; z-index: 2; }
.hs__step { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: #e6f5f0; padding: 6px 12px; border-radius: 30px; }
.hs__title { margin-top: 12px; font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.hs__title em { font-style: normal; color: var(--green); }
.hs__lead { margin-top: 8px; font-size: 16px; font-weight: 300; color: var(--muted); }
.hs__text.is-swapping > * { opacity: 0; transform: translateY(6px); }
.hs__text > * { transition: opacity .25s, transform .25s; }

.hs__dots { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 3; }
.hs__dots span { width: 8px; height: 8px; border-radius: 50%; background: #cfd8dc; transition: background .3s, transform .3s; }
.hs__dots span.is-active { background: var(--green); transform: scale(1.4); }
.hs--auto .hs__dots { position: static; transform: none; display: flex; justify-content: center; margin-top: 14px; }

/* Сцена: фіксована система координат, масштабується під контейнер */
.hs__box { position: relative; flex: 1; width: 100%; min-height: 0; overflow: hidden; }
.hs--auto .hs__box { flex: none; }
.hs__scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hs__scene * { box-sizing: border-box; }
.hs__scene img { display: block; max-width: none; }

/* Ноутбук */
.hs-laptop { position: absolute; }
.hs-laptop__lid { position: absolute; inset: 0; background: #1d1f22; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.hs-laptop__cam { position: absolute; left: 50%; top: 6px; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #3a3d42; }
.hs-laptop__base { position: absolute; background: linear-gradient(#d9dde1, #b9bfc5); border-radius: 0 0 16px 16px; }
.hs-laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 120px; height: 7px; margin-left: -60px; background: #a9afb5; border-radius: 0 0 8px 8px; }

/* Екран магазину (і шар над картками з тими ж координатами) */
.hs-screen, .hs-over { position: absolute; overflow: hidden; border-radius: 4px; }
.hs-screen { background: #fff; }
.hs-over { pointer-events: none; z-index: 5; }

.hs-store__head { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid #eef1f3; }
.hs-store__logo { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: #1b1b1b; }
.hs-store__logo b { color: var(--orange); }
.hs-store__nav { display: flex; gap: 12px; flex: 1; }
.hs-store__nav i { display: block; width: 46px; height: 7px; border-radius: 4px; background: #e3e7ea; }
.hs-store__cart { position: relative; width: 26px; height: 22px; border: 2px solid #1b1b1b; border-radius: 3px 3px 6px 6px; }
.hs-store__cart::before { content: ""; position: absolute; left: 4px; right: 4px; top: -7px; height: 8px; border: 2px solid #1b1b1b; border-bottom: 0; border-radius: 8px 8px 0 0; }
.hs-store__badge { position: absolute; right: -9px; top: -11px; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* Банер: пісочний фон під шкіряні сумки, стікер знижки, два товари на колі */
.hs-store__banner { position: absolute; left: 20px; right: 20px; top: 58px; height: 92px; border-radius: 8px; overflow: hidden; transform-origin: 0 50%;
  background: radial-gradient(120% 140% at 0% 0%, #fbf4ec 0 40%, transparent 70%), linear-gradient(105deg, #f6eadc, #ead6bf); }
.hs-bn__c1 { position: absolute; right: 52px; top: -46px; width: 168px; height: 168px; border-radius: 50%; background: #dfc3a2; }
.hs-bn__c2 { position: absolute; right: 196px; bottom: -34px; width: 70px; height: 70px; border-radius: 50%; border: 10px solid rgba(255,133,98,.22); }
.hs-bn__kick { position: absolute; left: 22px; top: 13px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); }
.hs-store__banner strong { position: absolute; left: 22px; top: 26px; font-size: 18px; font-weight: 800; line-height: 1.15; color: #2a211b; }
.hs-store__banner span { position: absolute; left: 22px; top: 56px; padding: 6px 12px; border-radius: 20px; background: #2a211b; color: #fff; font-size: 10px; font-weight: 700; }
.hs-bn__p { position: absolute; filter: drop-shadow(0 10px 10px rgba(60,35,15,.3)); }
.hs-bn__p--a { right: 86px; top: 0; height: 96px; width: auto; }
.hs-bn__p--b { right: 12px; bottom: -8px; height: 62px; width: auto; transform: rotate(-12deg); }
.hs-bn__tag { position: absolute; right: 214px; top: 12px; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 800; transform: rotate(-12deg); box-shadow: 0 6px 14px -6px rgba(255,133,98,.9); }
.hs-bn__dots { position: absolute; left: 50%; bottom: 7px; display: flex; gap: 4px; transform: translateX(-50%); }
.hs-bn__dots b, .hs-bn__dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(42,33,27,.25); }
.hs-bn__dots b { width: 14px; background: #2a211b; }
.hs-store__rowtitle { position: absolute; left: 20px; top: 160px; width: 120px; height: 9px; border-radius: 4px; background: #1b1b1b; opacity: .8; }
.hs-store__rows { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Плитки під каталогом: спершу сірі заготовки, потім фон і вміст */
.hs-tile { position: relative; height: 70px; border-radius: 8px; overflow: hidden; background: #f2f5f7; }
.hs-tile__bg { position: absolute; inset: 0; }
.hs-tile--a .hs-tile__bg { background: linear-gradient(110deg, #f6eadc, #ecdac6); }
.hs-tile--b .hs-tile__bg { background: linear-gradient(110deg, #e6f5f0, #cfeadf); }
.hs-tile--c .hs-tile__bg { background: linear-gradient(110deg, #2a211b, #4a3a2e); }
.hs-tile__in { position: absolute; inset: 0; padding: 14px 14px 0; }
.hs-tile b { display: block; font-size: 13px; font-weight: 800; color: #2a211b; }
.hs-tile small { display: block; margin-top: 4px; font-size: 10px; font-weight: 600; color: #6b5a4c; }
.hs-tile--b small { color: var(--green-dark); }
.hs-tile--c b { color: #fff; } .hs-tile--c small { color: #e9d8c6; }
.hs-tile img { position: absolute; right: 8px; bottom: -6px; height: 66px; width: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.hs-tile--c img { right: 12px; top: 50%; bottom: auto; height: 20px; transform: translateY(-50%); filter: none; background: #fff; border-radius: 6px; padding: 4px 6px; box-sizing: content-box; }
.hs__scene[data-l="mob"] .hs-tile b { font-size: 17px; }
.hs__scene[data-l="mob"] .hs-tile small { font-size: 13px; }
.hs__scene[data-l="mob"] .hs-tile--c img { top: auto; bottom: 8px; right: 8px; height: 14px; transform: none; }

/* Картки товарів */
.hs-card { position: absolute; left: 0; top: 0; width: 150px; height: 204px; z-index: 4; will-change: transform; }
.hs-card__bg { position: absolute; inset: 0; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
.hs-card img { position: absolute; left: 8px; top: 6px; width: 134px; height: 134px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); }
.hs-card__meta { position: absolute; left: 12px; right: 12px; top: 146px; }
.hs-card__name { font-size: 12px; font-weight: 600; line-height: 1.2; color: #1b1b1b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-card__price { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: #1b1b1b; }
.hs-card__price i { width: 26px; height: 18px; border-radius: 5px; background: var(--green); }
.hs-card__tag { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 10px; }

/* Сторінка товару (етап 2): картка рюкзака розгортається, з'являються опис і характеристики */
.hs-pdp { position: absolute; z-index: 6; visibility: hidden; opacity: 0; display: grid; grid-template-columns: 236px 1fr; gap: 24px; padding: 22px;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.35); }
.hs-pdp__ph { position: relative; border-radius: 12px; background: #f6f8f9; }
.hs-pdp__ph img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); }
.hs-pdp__crumb { font-size: 11px; color: #8a949b; }
.hs-pdp__title { margin-top: 6px; font-size: 19px; font-weight: 800; line-height: 1.2; color: #1b1b1b; }
.hs-pdp__buy { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.hs-pdp__buy b { font-size: 20px; font-weight: 800; }
.hs-pdp__buy span { padding: 7px 18px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.hs-pdp__buy em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--green-dark); }
.hs-pdp__label { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8a949b; }
.hs-pdp__label::after { content: ""; flex: 1; height: 1px; background: #eef1f3; }
.hs-pdp__desc { margin-top: 6px; min-height: 56px; font-size: 12.5px; line-height: 1.5; color: #39434a; }
.hs-pdp__desc::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--green); animation: hsCaret .8s steps(1) infinite; }
@keyframes hsCaret { 50% { opacity: 0; } }
.hs-pdp__specs { margin: 6px 0 0; display: grid; gap: 4px; }
.hs-pdp__specs div { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #e7ebee; font-size: 12px; }
.hs-pdp__specs div::before { content: "✓"; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #e6f5f0; color: var(--green-dark); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hs-pdp__specs dt { color: #8a949b; }
.hs-pdp__specs dd { margin: 0 0 0 auto; font-weight: 700; color: #1b1b1b; }
/* Мобільна сцена масштабується сильніше, тому текст панелі більший і фото зверху */
.hs__scene[data-l="mob"] .hs-pdp { grid-template-columns: 1fr; grid-template-rows: 150px auto; gap: 16px; padding: 24px; border-radius: 26px; }
.hs__scene[data-l="mob"] .hs-pdp__crumb { font-size: 20px; }
.hs__scene[data-l="mob"] .hs-pdp__title { font-size: 31px; }
.hs__scene[data-l="mob"] .hs-pdp__buy { margin-top: 14px; gap: 18px; }
.hs__scene[data-l="mob"] .hs-pdp__buy b { font-size: 36px; }
.hs__scene[data-l="mob"] .hs-pdp__buy span { padding: 12px 28px; font-size: 22px; border-radius: 12px; }
.hs__scene[data-l="mob"] .hs-pdp__buy em { font-size: 20px; }
.hs__scene[data-l="mob"] .hs-pdp__label { margin-top: 14px; font-size: 17px; }
.hs__scene[data-l="mob"] .hs-pdp__desc { margin-top: 6px; min-height: 108px; font-size: 23px; line-height: 1.4; }
.hs__scene[data-l="mob"] .hs-pdp__specs { gap: 2px; }
.hs__scene[data-l="mob"] .hs-pdp__specs div { padding: 5px 0; font-size: 21px; gap: 12px; }
.hs__scene[data-l="mob"] .hs-pdp__specs div::before { width: 28px; height: 28px; font-size: 16px; }

/* Етап 3: ставимо логотип і банер — заглушки, рамка виділення як у редакторі */
.hs-ph { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #c5ced4; border-radius: 6px; background: #f6f8f9; color: #9aa4ab; font-size: 10px; font-weight: 600; opacity: 0; }
.hs-ph--logo { left: 14px; top: 9px; width: 104px; height: 28px; }
.hs-ph--banner { left: 20px; right: 20px; top: 58px; height: 92px; border-radius: 8px; font-size: 12px; }
.hs-ph--banner::before { content: ""; width: 22px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px;
  background: linear-gradient(135deg, transparent 55%, currentColor 55% 62%, transparent 62%); }
.hs-sel { position: absolute; z-index: 3; border: 2px solid var(--green); border-radius: 4px; opacity: 0; pointer-events: none; }
.hs-sel i { position: absolute; width: 8px; height: 8px; background: #fff; border: 2px solid var(--green); border-radius: 2px; }
.hs-sel i:nth-child(1) { left: -5px; top: -5px; } .hs-sel i:nth-child(2) { right: -5px; top: -5px; }
.hs-sel i:nth-child(3) { left: -5px; bottom: -5px; } .hs-sel i:nth-child(4) { right: -5px; bottom: -5px; }
/* «Логотип» — під рамкою (над нею край екрана), «Банер» — над рамкою (під нею картки) */
.hs-sel__tag em { position: absolute; left: -2px; top: calc(100% + 5px); white-space: nowrap; padding: 3px 8px; border-radius: 4px; background: var(--green); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.hs-sel__tag em + em { left: 130px; top: auto; bottom: calc(100% + 5px); }
.hs__scene[data-l="mob"] .hs-sel { border-width: 4px; }
.hs__scene[data-l="mob"] .hs-sel i { width: 14px; height: 14px; border-width: 3px; }
.hs__scene[data-l="mob"] .hs-sel i:nth-child(odd) { left: -9px; } .hs__scene[data-l="mob"] .hs-sel i:nth-child(even) { right: -9px; }
.hs__scene[data-l="mob"] .hs-sel i:nth-child(-n+2) { top: -9px; } .hs__scene[data-l="mob"] .hs-sel i:nth-child(n+3) { bottom: -9px; }
.hs__scene[data-l="mob"] .hs-sel__tag em { padding: 6px 14px; font-size: 20px; border-radius: 6px; }
.hs__scene[data-l="mob"] .hs-ph { font-size: 18px; border-width: 3px; }
.hs__scene[data-l="mob"] .hs-ph--banner { font-size: 22px; }

.hs__scene[data-l="mob"] .hs-bn__kick { font-size: 13px; top: 10px; }
.hs__scene[data-l="mob"] .hs-store__banner strong { font-size: 25px; top: 27px; }
.hs__scene[data-l="mob"] .hs-store__banner span { font-size: 13px; top: 61px; padding: 4px 12px; }

/* Кошик-шторка (етап 4) */
.hs-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 250px; background: #fff; box-shadow: -14px 0 40px rgba(0,0,0,.14); padding: 18px; }
.hs-drawer__title { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.hs-drawer__item { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eef1f3; }
.hs-drawer__item img { width: 46px; height: 46px; object-fit: contain; background: #f6f8f9; border-radius: 8px; }
.hs-drawer__item b { display: block; font-size: 11px; }
.hs-drawer__item span { font-size: 12px; font-weight: 800; }
.hs-drawer__label { margin: 12px 0 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a949b; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { height: 34px; padding: 0 10px; border: 1px solid #e3e7ea; border-radius: 8px; display: flex; align-items: center; background: #fff; }
.hs-chip img { height: 18px; width: auto; }
.hs-chip.is-on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0,153,117,.15); }
.hs-drawer__btn { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 38px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hs-big { position: absolute; left: 0; top: 0; z-index: 9; width: 200px; height: 88px; border-radius: 16px; background: #fff; opacity: 0;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.04); display: flex; align-items: center; justify-content: center; will-change: transform; }
.hs-big img { max-width: 150px; max-height: 44px; width: auto; height: auto; }
.hs-fly { position: absolute; width: 60px; height: 60px; object-fit: contain; z-index: 6; }

/* Телефон (етап 5) */
.hs-phone { position: absolute; z-index: 7; background: #1d1f22; border-radius: 30px; padding: 9px; box-shadow: 0 30px 60px -15px rgba(0,0,0,.4); }
.hs-phone__screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 22px; overflow: hidden; }
.hs-phone__notch { position: absolute; left: 50%; top: 6px; width: 54px; height: 14px; margin-left: -27px; background: #1d1f22; border-radius: 10px; z-index: 2; }
.hs-phone__head { height: 46px; padding: 22px 12px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 11px; }
.hs-phone__head b { color: var(--orange); }
.hs-phone__banner { position: relative; overflow: hidden; margin: 6px 10px; height: 64px; border-radius: 8px; background: linear-gradient(105deg, #f6eadc, #ead6bf); color: #2a211b; font-size: 11px; font-weight: 800; line-height: 1.2; padding: 12px; }
.hs-phone__banner img { position: absolute; right: 4px; top: 4px; height: 58px; width: auto; filter: drop-shadow(0 6px 6px rgba(60,35,15,.3)); }
.hs-phone__banner em { position: absolute; left: 12px; bottom: 9px; padding: 3px 7px; border-radius: 10px; background: var(--orange); color: #fff; font-style: normal; font-size: 8px; }
.hs-phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 10px; }
.hs-phone__grid div { background: #f6f8f9; border-radius: 8px; padding: 6px; }
.hs-phone__grid img { width: 100%; height: 62px; object-fit: contain; }
.hs-phone__grid i { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: #d9dee2; }
.hs-phone__grid i + i { width: 50%; background: var(--green); }

/* Сповіщення та маркетплейси (етап 5) */
.hs-toasts { position: absolute; z-index: 8; }
.hs__scene[data-l="mob"] .hs-toasts { transform: scale(1.25); transform-origin: 0 0; }
.hs-toast { position: absolute; left: 0; top: 0; white-space: nowrap; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.3); }
.hs-toast__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; }
.hs-toast b { display: block; font-size: 13px; }
.hs-toast span { font-size: 12px; color: #6b757c; }
.hs-mp { position: absolute; z-index: 8; display: grid; gap: 10px; }
.hs-mp div { height: 46px; width: 150px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
.hs-mp img { max-height: 24px; max-width: 100%; width: auto; }
.hs-badge { position: absolute; z-index: 8; width: 92px; height: 92px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; line-height: 1; box-shadow: 0 16px 34px -10px rgba(255,133,98,.7); }
.hs-badge b { font-size: 34px; }
.hs-badge span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hs--scroll { height: auto; }
  .hs--scroll .hs__sticky { position: static; height: auto; }
}
