/* Проект: ZVUMO — новая главная: первый экран и телефон с демо-кабинетом */

/* ============ ПЕРВЫЙ ЭКРАН ============ */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - 69px); display: flex; align-items: center; padding: 40px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -3; right: -10vw; top: 50%; width: 60vw; height: 60vw; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 107, 255, .32), rgba(124, 92, 255, .14) 55%, transparent); pointer-events: none; }
/* звуковые горы: снизу растворяются в фон страницы */
.land { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 2s var(--ease) .2s; }
.is-ready .land, .still .land { opacity: 1; transition: none; }
.land canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.land__glow { filter: blur(9px) saturate(1.8) brightness(1.3); }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 7, 26, .9) 0%, rgba(7, 7, 26, .7) 32%, rgba(7, 7, 26, .25) 48%, rgba(7, 7, 26, 0) 60%),
              linear-gradient(180deg, rgba(7, 7, 26, 0) 66%, var(--bg) 100%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__h { font: 800 clamp(38px, 5vw, 74px)/1.02 var(--display); letter-spacing: -.02em; }
.hero__h span { display: block; }
.facts dt small { font: 600 .62em/1 var(--body); color: var(--muted); margin-right: 4px; letter-spacing: 0; }

/* ============ СЦЕНА С ТЕЛЕФОНОМ ============ */
.stage { position: relative; display: grid; justify-items: center; gap: 14px; }
.stage__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.stage__hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 2.4s ease-in-out infinite; }
.stage__box { position: relative; width: 100%; display: grid; place-items: center; }

/* ярлыки модулей вокруг телефона — это тоже кнопки вкладок */
.jump { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 0; border-radius: 16px; cursor: pointer;
  font: 500 14px/1 var(--body); color: var(--soft); background: rgba(16, 18, 48, .74); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 40px -14px var(--c); animation: float 7s ease-in-out infinite alternate;
  transition: color .25s, background .25s, box-shadow .25s; }
.jump i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.jump:hover { color: #fff; background: rgba(26, 28, 70, .9); }
.jump[aria-pressed="true"] { color: #fff; background: rgba(30, 32, 84, .95); box-shadow: inset 0 0 0 1px var(--c), 0 0 26px -4px var(--c); }
@keyframes float { to { translate: 0 -10px; } }
.j1 { --c: #22D3EE; left: 0; top: 80px; }                          .j2 { --c: #E040FB; right: 0; top: 130px; animation-delay: -2s; }
.j3 { --c: #3B8BFF; left: -14px; top: 220px; animation-delay: -4s; } .j4 { --c: #5EF2C7; right: -14px; top: 270px; animation-delay: -1s; }
.j5 { --c: #FFB547; left: -6px; top: 360px; animation-delay: -3s; }  .j6 { --c: #7C5CFF; right: -6px; top: 410px; animation-delay: -5s; }
.j7 { --c: #FF4D7E; left: 10px; top: 500px; animation-delay: -6s; }  .j8 { --c: #9A55FF; right: 10px; top: 550px; animation-delay: -2.5s; }

/* ============ ТЕЛЕФОН ============ */
.phone { position: relative; z-index: 2; width: 340px; height: 690px; border-radius: 48px; padding: 11px;
  background: linear-gradient(160deg, #23264f, #0b0c22 40%, #15163a);
  box-shadow: 0 0 0 1px rgba(170, 178, 255, .22), 0 40px 120px -20px rgba(91, 76, 255, .65), 0 0 80px -10px rgba(224, 64, 251, .32); }
.phone::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), #22D3EE, #7C5CFF, #E040FB, #3B8BFF, #22D3EE);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; animation: spin 8s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.scr { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(120% 50% at 50% 0%, #1a1c48, #0a0b20 60%); font-size: 13.5px; line-height: 1.35; }
.scr button { font: inherit; color: inherit; border: 0; cursor: pointer; }

.p-top { display: flex; align-items: center; gap: 10px; padding: 30px 16px 10px; }
.p-ava { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0d0e2a;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 18px rgba(124, 92, 255, .5); }
.p-ava .brand__bars { height: 17px; gap: 2px; } .p-ava .brand__bars i { width: 2.5px; }
.p-top b { display: block; font: 600 14.5px/1.2 var(--body); }
.p-top small { color: var(--mint); font-size: 11.5px; }
.p-demo { margin-left: auto; padding: 4px 8px; border-radius: 8px; font-size: 10.5px; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }

/* вкладки: прокручиваются вбок пальцем */
.p-tabs { display: flex; gap: 6px; padding: 4px 12px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { flex: none; padding: 7px 11px; border-radius: 999px; font-size: 12.5px !important; color: var(--muted) !important; background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.p-tab[aria-selected="true"] { color: #fff !important; background: var(--btn); box-shadow: 0 4px 16px -4px rgba(124, 92, 255, .8); }

.p-body { position: relative; flex: 1; overflow-y: auto; padding: 12px 12px 18px; scrollbar-width: none; }
.p-body::-webkit-scrollbar { display: none; }
.pane { display: grid; gap: 9px; animation: paneIn .35s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; translate: 10px 0; } }
.p-h { font: 700 15px/1.2 var(--display); }
.p-sub { color: var(--dim); font-size: 11.5px; }
.p-note { color: var(--dim); font-size: 11px; line-height: 1.4; }

.c { padding: 11px 12px; border-radius: 16px; background: rgba(36, 39, 92, .62); box-shadow: inset 0 0 0 1px rgba(170, 178, 255, .12); }
.c--hot { background: linear-gradient(135deg, rgba(59, 107, 255, .42), rgba(124, 92, 255, .38)); }
.c--ok { box-shadow: inset 0 0 0 1px rgba(94, 242, 168, .45); }
.row { display: flex; align-items: center; gap: 10px; }
.row > .grow { flex: 1; min-width: 0; }
button.row { width: 100%; text-align: left; }
.ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: color-mix(in srgb, var(--c, #7C5CFF) 22%, transparent); color: var(--c, #fff); }
.go { color: var(--dim); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .07); color: var(--soft); white-space: nowrap; }
.tag--ok { background: rgba(94, 242, 168, .14); color: #5EF2A8; }
.tag--wait { background: rgba(255, 181, 71, .15); color: #FFC56E; }
.tag--bad { background: rgba(255, 77, 126, .15); color: #FF7A9C; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.b { padding: 7px 11px; border-radius: 10px; font-size: 12px !important; font-weight: 600 !important; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.b:hover { background: rgba(255, 255, 255, .13); }
.b--go { background: var(--btn); box-shadow: 0 4px 14px -4px rgba(124, 92, 255, .8); }
.b--wide { width: 100%; padding: 11px; font-size: 13px !important; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.seg button { flex: 1; padding: 6px 4px; border-radius: 9px; font-size: 12px; color: var(--muted); background: transparent; }
.seg button[aria-pressed="true"] { color: #fff; background: rgba(124, 92, 255, .45); }

/* музыка */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 38px; }
.eq i { width: 5px; border-radius: 4px; height: 30%; background: linear-gradient(#E040FB, #22D3EE); }
.is-playing .eq i { animation: eqb .9s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-delay: -.3s; } .eq i:nth-child(3n) { animation-delay: -.6s; }
@keyframes eqb { from { height: 20%; } to { height: 100%; } }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--btn); box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .9); }
.play svg { width: 18px; height: 18px; fill: #fff; }

/* чек-лист */
.ring { --p: 0; width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--display);
  background: radial-gradient(closest-side, #12133a 76%, transparent 78% 100%), conic-gradient(#5EF2C7 calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.chk { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 13px; color: transparent; }
.done .chk { background: #5EF2C7; color: #07071A; box-shadow: none; }
.done .grow > span:first-child { color: var(--muted); text-decoration: line-through; }

/* склад */
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22D3EE, #7C5CFF); transition: width .6s var(--ease); }
.low .bar i { background: linear-gradient(90deg, #FF4D7E, #FFB547); }

/* QR */
.qr { width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff; margin-inline: auto; box-shadow: 0 0 30px rgba(124, 92, 255, .6); }
.qr svg { width: 100%; height: 100%; }

/* киоск */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile { position: relative; padding: 0 0 9px; border-radius: 14px; overflow: hidden; text-align: left; background: rgba(36, 39, 92, .62); box-shadow: inset 0 0 0 1px rgba(170, 178, 255, .12); transition: transform .2s; }
.tile:active { transform: scale(.97); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; margin-bottom: 7px; }
.tile b { display: block; padding: 0 10px; font-size: 13px; } .tile small { display: block; padding: 0 10px; color: var(--muted); font-size: 11.5px; }
.tile em.heart { background: rgba(7, 7, 26, .7); color: #FF7A9C; font-size: 13px; }
.tile--on { box-shadow: inset 0 0 0 1.5px #FFB547, 0 0 18px -6px #FFB547; }
.tile em { top: 8px !important; right: 8px !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* фото блюд в «Складе» и «Кассе» */
.sells { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sell { display: grid; gap: 6px; padding: 0 0 9px; border-radius: 14px; overflow: hidden; text-align: center; font-size: 12px !important; font-weight: 600 !important;
  background: rgba(36, 39, 92, .62); box-shadow: inset 0 0 0 1px rgba(170, 178, 255, .2); }
.sell img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.line { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border-radius: 12px; text-align: left; background: transparent; }
.line + .line { margin-top: 4px; }
.line .grow { flex: 1; min-width: 0; }
.line img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; background: #fff; }
.line[aria-pressed="true"] { background: rgba(124, 92, 255, .3); box-shadow: inset 0 0 0 1px rgba(150, 140, 255, .5); }
.tile em { position: absolute; top: 6px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font: 700 11px/20px var(--body); font-style: normal; text-align: center; background: var(--btn); }

/* всплывающая подсказка внизу экрана */
.toast { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 5; padding: 10px 12px; border-radius: 14px; font-size: 12.5px;
  background: rgba(16, 60, 50, .95); box-shadow: inset 0 0 0 1px rgba(94, 242, 168, .4), 0 10px 30px -8px rgba(0, 0, 0, .6);
  opacity: 0; translate: 0 10px; transition: opacity .25s, translate .25s; pointer-events: none; }
.toast.on { opacity: 1; translate: 0 0; }

@media (max-width: 1180px) { .jump { display: none; } }
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 32px 0 48px; }
  /* на телефоне горы стоят под текстом и уходят под телефон: ниже их закрыл бы сам телефон */
  .land { top: 300px; bottom: auto; height: 620px; }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 7, 26, .2) 0%, rgba(7, 7, 26, .5) 360px, rgba(7, 7, 26, .35) 700px, rgba(7, 7, 26, 0) 900px); }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 380px) { .phone { width: 100%; height: 640px; } }

/* 22.10: плавный низ первого экрана — без резкой кромки у свечения и гор (компьютер и телефон) */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 7, 26, 0) 0%, rgba(7, 7, 26, .55) 55%, var(--bg) 100%); }
.land { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); }
@media (max-width: 960px) { .hero::after { height: 200px; } }
.more__kick { margin: 40px 0 16px; }
/* 22.10: заголовок первого экрана не обрезается на 360 px */
@media (max-width: 420px) { .hero__h { font-size: 27px; letter-spacing: -.03em; } }
/* 22.10: каталог «Стартер» в телефоне — ровная сетка и мягкий низ экрана вместо обреза */
.tiles { align-items: stretch; }
.tile { display: flex; flex-direction: column; align-self: stretch; }
.tile img { flex: none; }
.tile b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; min-height: 2.5em; }
.scr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 5; pointer-events: none; background: linear-gradient(180deg, rgba(10, 11, 34, 0), rgba(10, 11, 34, .92)); border-radius: 0 0 38px 38px; }
.p-body { padding-bottom: 36px; }
/* 22.10: блок «Мы — команда ZVUMO», только текст */
.team-note__in { max-width: 860px; padding-block: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }

/* 24.10 (аудит UX, п.1): на телефоне колонка героя не шире экрана — раньше её распирала лента вкладок демо-телефона */
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__copy, .stage { min-width: 0; max-width: 100%; }
  .stage, .stage__box { grid-template-columns: minmax(0, 1fr); } .stage__hint { max-width: 100%; text-align: center; } }
