/* Лендинг і веб-афіша «Поряд». Шрифти й базові кольори — tokens.css (ті самі, що в застосунку); тут — решта
   токенів дизайн-системи (ds-bundle/tokens/poriad.css) і компоненти сайту. Сторінки світлі; темна лише секція .night. */
:root {
  color-scheme: light;
  --accent-text: #C2431F; --accent-on-photo: #FF8A5B;
  --success: #2E7D4F; --success-container: #DFF3E6;
  --scrim: rgba(29,29,31,.32);
  --radius-sm: 14px; --radius-md: 18px; --radius-lg: 24px; --radius-xl: 28px;
  --cat-sport: #0F7F73; --cat-art: #C43B6B; --cat-food: #C96A1E; --cat-outdoors: #3E7D3A; --cat-social: #B8562F;
  --cat-comedy: #A07813; --cat-kids: #1F8A8A; --cat-tours: #5F7F1F; --cat-conference: #933FA8;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 64px;
  --max: 1280px;
}
.cat-music { --hue: var(--cat-music); --partner: #C43B6B; --wash: #EBE4FB; }
.cat-sport { --hue: var(--cat-sport); --partner: #2F63C4; --wash: #DDF0EC; }
.cat-art { --hue: var(--cat-art); --partner: #6D4AC9; --wash: #FBE1EA; }
.cat-food { --hue: var(--cat-food); --partner: #C43B6B; --wash: #FBEBD9; }
.cat-games { --hue: var(--cat-games); --partner: #0F7F73; --wash: #E1EAFB; }
.cat-outdoors { --hue: var(--cat-outdoors); --partner: #0F7F73; --wash: #E4F1E2; }
.cat-social { --hue: var(--cat-social); --partner: #C96A1E; --wash: #FAE5DA; }
.cat-comedy { --hue: var(--cat-comedy); --partner: #C43B6B; --wash: #F7ECD2; }
.cat-kids { --hue: var(--cat-kids); --partner: #2F63C4; --wash: #D9EFEF; }
.cat-tours { --hue: var(--cat-tours); --partner: #3E7D3A; --wash: #ECF0E4; }
.cat-conference { --hue: var(--cat-conference); --partner: #6D4AC9; --wash: #F2E8F5; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ico { width: 22px; height: 22px; flex: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.overline { font: 600 12px/16px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-tertiary); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Кнопки й значки сторів */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/20px var(--font); white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-pressed); }
.btn.secondary { background: var(--brand-container); color: var(--ink); }
.btn.secondary:hover { background: #DEDEE5; }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline); }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; background: #000; color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 24px rgba(0,0,0,.18); }
.store:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 32px rgba(0,0,0,.24); }
.store:active { transform: scale(.98); }
.store .ico { width: 26px; height: 26px; }
.store.play .ico { width: 22px; height: 22px; }
.store span { display: flex; flex-direction: column; font: 600 19px/1.05 var(--font); letter-spacing: -.3px; }
.store small { font: 500 11px/1.2 var(--font); letter-spacing: .2px; opacity: .8; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font: 500 16px/22px var(--font); color: var(--ink-secondary); transition: color .2s, gap .2s; }
.text-link:hover { color: var(--ink); gap: 10px; }
.text-link .ico { width: 18px; height: 18px; }

/* ---- Шапка */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--canvas) 72%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--hairline) 80%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 24px/28px var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nav .links { display: flex; align-items: center; gap: 28px; font: 500 15px/20px var(--font); }
.nav .links > a:not(.btn) { color: var(--ink-secondary); transition: color .2s; }
.nav .links > a:not(.btn):hover, .nav .links > a[aria-current] { color: var(--ink); }

/* ---- Чипи */
.chips { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface);
  font: 500 15px/18px var(--font); white-space: nowrap; color: var(--ink); transition: background .2s, color .2s, transform .15s; }
.chip:hover { background: #ECECF1; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.chip .count { color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: rgba(255,255,255,.6); }
.chip .ico { width: 18px; height: 18px; }
.city-select { position: relative; display: inline-flex; align-items: center; }
.city-select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 18px; border: 0; border-radius: 999px; background: var(--surface);
  font: 600 16px/20px var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--hairline); }
.city-select .ico { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; }
.tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; gap: 2px; border-radius: 999px; background: var(--brand-container); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 999px; font: 600 15px/18px var(--font); color: var(--ink-secondary); transition: background .25s var(--ease), color .2s, box-shadow .25s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tabs .ico { width: 18px; height: 18px; }

/* ---- Обкладинка події (EventArt): насичений градієнт категорії й великий білий знак за кутом. */
.art { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hue, #6E6E73), var(--partner, #1D1D1F)); }
.art > .glyph { position: absolute; top: -6%; right: -24%; width: 82%; height: auto; aspect-ratio: 1; color: rgba(255,255,255,.18); }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.art > img.loading { opacity: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11px/14px var(--font);
  letter-spacing: 1px; text-transform: uppercase; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); white-space: nowrap; }
.badge.accent { background: var(--accent-container); color: var(--on-accent-container); box-shadow: none; }
.save { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s var(--ease); }
.save:hover { transform: scale(1.08); }
.save .ico { width: 18px; height: 18px; }

/* ---- Постер (PosterCard) */
.poster { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; cursor: pointer; }
.poster .cover, .poster .caption { display: block; }
.poster .cover { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; transform: translateZ(0);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.poster .cover > .art { position: absolute; inset: 0; }
.poster:hover .cover { transform: translateY(-4px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.28); }
.poster:hover .art > img { transform: scale(1.05); }
.poster .cover .badge { position: absolute; left: 10px; z-index: 1; }
.poster .cover .badge.top { top: 10px; } .poster .cover .badge.bottom { bottom: 10px; }
.poster > .save { position: absolute; top: 9px; right: 9px; z-index: 2; opacity: 0; transform: scale(.9) translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.poster:hover > .save, .poster > .save:focus-visible { opacity: 1; transform: translateY(-4px); }
@media (hover: none) { .poster > .save { opacity: 1; transform: none; } }
.poster .caption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.poster .when { font: 600 11px/14px var(--font); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster h3 { font-size: 18px; line-height: 23px; letter-spacing: -.1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .where { display: flex; align-items: center; gap: 6px; font: 500 13px/18px var(--font); color: var(--ink-secondary); min-width: 0; }
.poster .where span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster .where .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hue); flex: none; }
.poster .note { font: 600 11px/14px var(--font); color: var(--ink-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 36px 20px; }
.skeleton .cover { background: linear-gradient(100deg, #EBEBF0 30%, #F5F5F7 50%, #EBEBF0 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton .bar { height: 12px; border-radius: 6px; background: #E8E8ED; }
.skeleton .bar.wide { height: 18px; width: 85%; } .skeleton .bar.short { width: 50%; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---- Велика картка (EventHeroCard) */
.hero-card { position: relative; flex: none; width: min(420px, 82vw); height: 400px; border-radius: var(--radius-xl); overflow: hidden; color: #fff; cursor: pointer;
  isolation: isolate; transform: translateZ(0); transition: transform .4s var(--ease); scroll-snap-align: start; }
.hero-card:hover { transform: translateY(-4px); }
.hero-card > .art { position: absolute; inset: 0; }
.hero-card:hover .art > img { transform: scale(1.05); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.85)); }
.hero-card .text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.hero-card .when { font: 600 12px/16px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--accent-on-photo); }
.hero-card h3 { font-size: 28px; line-height: 33px; letter-spacing: -.4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card .where { font: 400 15px/21px var(--font); color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--gutter) 24px; margin: -8px calc(-1 * var(--gutter)) -24px; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }

/* ---- Поява під час прокрутки */
/* Ховаємо лише коли JS живий (клас .js з <head>): збій скрипта не лишить сторінку порожньою. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= Лендинг ================= */
/* Героїня — темна сцена: продукт світиться, а афіші живуть усередині телефона. Шапка над нею світла. */
.nav.on-dark { color: #F5F5F7; }
.nav.on-dark.scrolled { background: color-mix(in srgb, #0B0B0F 72%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.on-dark .links > a:not(.btn) { color: rgba(245,245,247,.68); }
.nav.on-dark .links > a:not(.btn):hover { color: #fff; }
.nav.on-dark .btn.primary { background: #F5F5F7; color: #0B0B0F; }

.hero { position: relative; }
.hero.dark { margin-top: -76px; padding: 156px 0 120px; background: #0B0B0F; color: #F5F5F7; overflow: clip; isolation: isolate; border-radius: 0 0 48px 48px; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora i { position: absolute; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; border-radius: 50%; filter: blur(110px); opacity: .42; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--cat-music); left: -12%; top: -10%; }
.aurora i:nth-child(2) { background: var(--cat-art); right: -6%; top: 6%; animation-duration: 26s; animation-delay: -6s; opacity: .36; }
.aurora i:nth-child(3) { background: var(--cat-food); right: 22%; bottom: -30%; animation-duration: 30s; animation-delay: -12s; opacity: .26; }
.aurora i:nth-child(4) { background: var(--cat-games); left: 30%; top: 30%; animation-duration: 24s; animation-delay: -3s; opacity: .2; }
.aurora::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 40%, transparent, rgba(11,11,15,.55)); }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vw,4vw,0) scale(1.12); } 100% { transform: translate3d(-4vw,8vw,0) scale(.94); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.live { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px; background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font: 500 15px/20px var(--font); color: rgba(245,245,247,.72); transition: transform .2s var(--ease), background .2s; }
.live:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.live b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.live .go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F5F5F7; color: #0B0B0F; }
.live .go .ico { width: 16px; height: 16px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2FB463; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2FB463; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.hero-copy h1 { margin-top: 28px; font-size: clamp(48px, 6.2vw, 92px); line-height: 1; letter-spacing: -.035em; color: #fff; }
.shine { background: linear-gradient(100deg, #B69CFF, #FF7EB6 35%, #FFB36B 60%, #B69CFF) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; padding-bottom: .06em; }
@keyframes shine { to { background-position: -220% 0; } }
.hero-copy .lead { margin-top: 26px; max-width: 560px; font: 400 20px/30px var(--font); color: rgba(245,245,247,.7); }
.hero .stores { margin-top: 38px; }
.store.light { background: #F5F5F7; color: #0B0B0F; box-shadow: 0 14px 34px -10px rgba(0,0,0,.6); }
.store.light:hover { box-shadow: 0 18px 40px -10px rgba(0,0,0,.7), 0 0 0 4px rgba(255,255,255,.08); }
.hero-note { margin-top: 26px; font: 500 14px/20px var(--font); color: rgba(245,245,247,.48); }
.hero-note span { margin: 0 10px; }

.hero-stage { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.ambient { position: absolute; left: 50%; top: 50%; width: 560px; height: 680px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.ambient i { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; filter: blur(80px) saturate(1.8); opacity: 0; transition: opacity 1.4s var(--ease); }
.ambient i.on { opacity: .75; }
.hero-phone { --w: 340px; transform: perspective(1800px) rotateY(-10deg) rotateX(3deg) rotateZ(1deg); transition: transform 1s var(--ease); }
.hero-phone:hover { transform: perspective(1800px) rotateY(0) rotateX(0); }

.glass { position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 22px; color: #fff; text-align: left; max-width: 330px;
  background: rgba(30,30,38,.55); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 24px 60px -18px rgba(0,0,0,.65); animation: bob 7s ease-in-out infinite;
  transition: opacity .8s var(--ease), translate .8s var(--ease); }
.glass[hidden] { display: flex; opacity: 0; translate: 0 16px; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.glass.notif { top: 40px; left: -56px; width: 330px; align-items: flex-start; padding: 12px 14px; }
.glass.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.glass.notif .head { display: flex; justify-content: space-between; font: 600 13px/18px var(--font); }
.glass.notif .head small { font-weight: 400; color: rgba(255,255,255,.55); }
.glass.notif p { font: 400 14px/19px var(--font); color: rgba(255,255,255,.88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-card i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.chip-card .ico { width: 22px; height: 22px; }
.chip-card b { display: block; font: 600 15px/20px var(--font); }
.chip-card small { display: block; max-width: 210px; font: 400 13px/18px var(--font); color: rgba(255,255,255,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass.company { top: 300px; right: -20px; animation-delay: -2s; } .glass.company i { background: var(--cat-social); }
.glass.safety { bottom: 170px; left: -40px; animation-delay: -4s; } .glass.safety i { background: var(--cat-sport); }
.glass.weekend { bottom: 40px; right: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px; animation-delay: -3s; }
.glass.weekend .overline { font-size: 10.5px; color: rgba(255,255,255,.55); }
.glass.weekend .big { font: 600 28px/1 var(--font); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.glass .mini { display: flex; }
.glass .mini span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #1E1E26; margin-right: -8px; background-size: cover; background-position: center; }

/* ---- Телефон: титанова рамка, кнопки, відблиск на склі. Екран — картинка або «живий» екран 402×874, що масштабується. */
.iphone { --w: 300px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .175);
  background: linear-gradient(145deg, #8E8E94 0%, #3B3B40 10%, #1B1B1E 38%, #2C2C30 70%, #707076 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), inset 0 0 0 calc(var(--w) * .013) #0A0A0C,
    0 70px 120px -40px rgba(0,0,0,.6), 0 30px 60px -30px rgba(0,0,0,.45); }
.iphone::before { content: ""; position: absolute; left: -2px; top: 18%; width: 3px; height: 5.5%; border-radius: 2px 0 0 2px; background: #3B3B40;
  box-shadow: 0 calc(var(--w) * .13) 0 #3B3B40, 0 calc(var(--w) * .23) 0 #3B3B40; }
.iphone::after { content: ""; position: absolute; right: -2px; top: 27%; width: 3px; height: 10%; border-radius: 0 2px 2px 0; background: #3B3B40; }
.iphone .screen { position: relative; aspect-ratio: 402 / 874; border-radius: calc(var(--w) * .145); overflow: hidden; background: #000; isolation: isolate; transform: translateZ(0); }
.iphone .screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iphone .screen::after { content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 26%, transparent 40%); }

.canvas { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(var(--s, .75)); transform-origin: 0 0; overflow: hidden;
  background: var(--canvas); color: var(--ink); font-family: var(--font); text-align: left; line-height: normal; -webkit-font-smoothing: antialiased; }
.canvas .gutter { padding: 0 16px; }
.canvas svg { flex: none; }
.canvas .p-art > .glyph { position: absolute; top: -4%; right: -25%; width: 220px; height: 220px; color: rgba(255,255,255,.18); }
.canvas .p-poster__art .glyph { width: 130px; height: 130px; }
.sb { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: 19px 30px 0 48px; display: flex; justify-content: space-between; z-index: 20;
  font: 600 17px/22px -apple-system, "SF Pro Text", var(--font); color: var(--ink); }
.sb.light { color: #fff; }
.sb-icons { display: flex; align-items: center; gap: 6px; padding-top: 3px; }
.sb-icons svg { fill: currentColor; }
.island { position: absolute; top: 11px; left: 138px; width: 126px; height: 37px; border-radius: 20px; background: #000; z-index: 21; }

.home-screen .feed { position: absolute; left: 0; right: 0; top: 0; padding-top: 54px; animation: feed 26s cubic-bezier(.65,0,.25,1) infinite; }
.home-screen .p-page-header { padding-top: 20px; }
.home-screen .pills { display: flex; gap: 8px; }
.home-screen .p-create-card { margin-top: 28px; }
.home-screen .p-section-title { margin: 24px 0 12px; }
.pager { overflow: hidden; padding: 0 16px; }
.pager-track { display: flex; gap: 12px; transition: transform .9s var(--ease); }
.pager-track > .p-hero { flex: 0 0 318px; cursor: pointer; }
.home-screen .p-chip-row { margin-top: 20px; }
.home-screen .p-poster-grid { margin-top: 24px; }
.home-screen .p-poster { cursor: pointer; }
.home-screen .p-tabbar-wrap { z-index: 10; }
.iphone.paused .feed { animation-play-state: paused; }
@keyframes feed { 0%, 40% { transform: none; } 52%, 84% { transform: translateY(-500px); } 96%, 100% { transform: none; } }

.detail-screen .d-cover { position: absolute; top: 0; left: 0; right: 0; height: 440px; color: #fff; }
.detail-screen .d-cover > .p-art { position: absolute; inset: 0; }
.detail-screen .d-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.3), transparent 22%, transparent 42%, rgba(0,0,0,.78)); }
.d-round { position: absolute; top: 62px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1D1D1F; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.d-round.left { left: 16px; } .d-round.left svg { transform: rotate(90deg); } .d-round.right { right: 16px; }
.d-text { position: absolute; left: 16px; right: 16px; bottom: 50px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.d-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.d-text h2 { margin: 0; font: 600 34px/40px var(--font-serif); letter-spacing: -.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.d-sheet { position: absolute; top: 412px; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; background: var(--canvas); border-radius: 28px 28px 0 0; }
.d-actions { display: flex; }
.d-facts { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 24px; }
.d-facts > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-facts > div:nth-child(odd) { border-right: 1px solid var(--hairline); } .d-facts > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.d-facts b { font: 600 16px/21px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-bar { position: absolute; left: 16px; right: 16px; bottom: 30px; z-index: 5; padding: 14px; border-radius: 28px; display: flex; flex-direction: column; gap: 10px; }
.d-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.d-bar-top > div { padding-left: 8px; display: flex; flex-direction: column; gap: 2px; }
.d-bar-top span { font: 400 16px/22px var(--font); color: var(--ink-secondary); }
.d-bar .p-btn--primary { width: auto; }

.companions-screen { background: #000; }
.c-under { position: absolute; inset: 0; } .c-under > .p-art { position: absolute; inset: 0; }
.c-under::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.c-sheet { position: absolute; top: 62px; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 14px; padding: 8px 20px 28px; background: var(--canvas); }
.c-sheet h2 { margin: 6px 0 0; font: 600 34px/40px var(--font-serif); letter-spacing: -.5px; }
.c-sheet h3 { margin: 0; font: 600 22px/27px var(--font-serif); color: var(--ink-secondary); }
.c-sheet p { margin: 0 0 4px; font: 400 17px/25px var(--font); color: var(--ink-secondary); }
.c-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 26px; background: var(--surface); }
.c-card > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.c-card b { font: 700 34px/38px var(--font); letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.c-card small { font: 400 15px/20px var(--font); color: var(--ink-secondary); }
.c-card button { width: 54px; height: 54px; border-radius: 50%; background: var(--surface-muted); font: 400 30px/1 var(--font); color: var(--ink); cursor: pointer; transition: transform .15s, background .2s; }
.c-card button:hover { background: var(--brand-container); }
.c-card button:active { transform: scale(.9); }
.c-label { margin: 6px 0 -4px; }
.c-field { padding: 20px 18px; border-radius: 20px; background: var(--surface); font: 400 17px/22px var(--font); color: var(--ink-secondary); }

/* ---- Вітрина функцій: яскраві плитки, телефони виростають з краю, малі екрани — справжні рядки застосунку. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 620px 500px 620px; gap: 20px; }
.feat { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: 36px; color: #fff; display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 10% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(150deg, var(--hue), var(--partner)); }
.feat.dark { background: radial-gradient(90% 70% at 100% 0%, rgba(109,74,201,.55), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(196,59,107,.35), transparent 60%), #111116; }
.feat-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.feat .tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.18);
  font: 600 12px/16px var(--font); letter-spacing: .8px; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feat .tag .ico { width: 16px; height: 16px; }
.feat-text h3 { font-size: 34px; line-height: 38px; letter-spacing: -.6px; color: #fff; }
.feat-text p { font: 400 17px/25px var(--font); color: rgba(255,255,255,.84); }
.feat .iphone { position: absolute; z-index: 1; transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); transition: transform .9s var(--ease); }
.feat:hover .iphone { --y: -14px; }
.f-map { grid-column: 1 / 3; grid-row: 1; }
.f-map .feat-text, .f-detail .feat-text { max-width: 340px; }
.f-map .iphone { --w: 300px; --r: -6deg; right: 56px; top: 64px; }
.f-company { grid-column: 3; grid-row: 1; }
.f-company .iphone { --w: 290px; left: 50%; margin-left: -145px; top: 296px; }
.f-notify { grid-column: 1; grid-row: 2; } .f-safety { grid-column: 2; grid-row: 2; } .f-follow { grid-column: 3; grid-row: 2; }
.f-create { grid-column: 1; grid-row: 3; }
.f-create .iphone { --w: 290px; left: 50%; margin-left: -145px; top: 286px; }
.f-detail { grid-column: 2 / 4; grid-row: 3; }
.f-detail .iphone { --w: 300px; --r: 5deg; right: 56px; top: 64px; }
.pushes { position: absolute; left: 24px; right: 24px; bottom: -34px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.push { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 20px; text-align: left; background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  animation: pushIn 14s var(--ease) infinite both; }
.push:nth-child(2) { animation-delay: .5s; } .push:nth-child(3) { animation-delay: 1s; }
@keyframes pushIn { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
.push img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.push > div { min-width: 0; flex: 1; }
.push-head { display: flex; justify-content: space-between; font: 600 11px/14px var(--font); letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.push-head b { font: inherit; } .push-head small { font: 400 12px/14px var(--font); letter-spacing: 0; text-transform: none; }
.push > div > b { display: block; font: 600 14px/19px var(--font); color: #fff; }
.push p { font: 400 13px/18px var(--font); color: rgba(255,255,255,.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-ui { position: absolute; left: 28px; right: 28px; bottom: -22px; z-index: 2; transform: rotate(-2deg); transition: transform .9s var(--ease); text-align: left; color: var(--ink); }
.feat:hover .mini-ui { transform: rotate(0) translateY(-10px); }
.mini-ui .p-rows { box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.mini-ui .p-row svg { color: var(--ink-secondary); }
.mini-ui .p-row__title { font-size: 16px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ui .p-row { padding: 14px 16px; }
.mini-ui .p-row__sub { white-space: nowrap; }
.f-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--wash); color: var(--hue); }
.f-bell { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; flex: none; background: var(--surface-muted);
  font: 600 13px/18px var(--font); color: var(--ink); transition: background .2s, color .2s, transform .15s; }
.f-bell:active { transform: scale(.94); }
.f-bell[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* ---- Афіша на лендингу — бонус, а не головне. */
.bonus { border-radius: 36px; background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.bonus-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.bonus-head .text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.bonus h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.bonus .sub { font-size: 17px; line-height: 25px; }
.bonus .chip { background: var(--canvas); } .bonus .chip:hover { background: var(--canvas-tint); } .bonus .chip[aria-pressed="true"] { background: var(--brand); }
.rail.posters { margin: 0 -40px; padding: 4px 40px 8px; scroll-padding: 0 40px; }
.rail.posters > .poster { flex: 0 0 200px; scroll-snap-align: start; }
.rail.posters > .empty { flex: 1; background: var(--canvas); }

/* Секції */
.section { padding: 140px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .text { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.section .sub { font: 400 19px/29px var(--font); color: var(--ink-secondary); }
.teaser-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; }
.empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-secondary); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty b { font: 600 22px/27px var(--serif); color: var(--ink); }

/* Нічна секція: сайт проти застосунку */
.night { position: relative; margin-top: 140px; padding: 120px 0; background: #0B0B0F; color: #F5F5F7; overflow: hidden; isolation: isolate; }
.night::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109,74,201,.55), rgba(196,59,107,.25) 55%, transparent); filter: blur(30px); z-index: -1; }
.night .section-head .text { margin: 0 auto; text-align: center; align-items: center; }
.night h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.night .sub { color: #A1A1A8; }
.compare { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { border-radius: 28px; padding: 32px; background: #17171C; box-shadow: 0 0 0 1px #2A2A33 inset; display: flex; flex-direction: column; gap: 24px; }
.plan.app { position: relative; background: linear-gradient(#17171C, #17171C) padding-box, linear-gradient(135deg, #6D4AC9, #C43B6B 45%, #FF8A5B) border-box;
  border: 1.5px solid transparent; box-shadow: 0 40px 120px -40px rgba(196,59,107,.55); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan header b { font: 600 26px/30px var(--serif); }
.plan header span { font: 500 14px/18px var(--font); color: #A1A1A8; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font: 400 16px/22px var(--font); color: #D1D1D6; }
.plan li .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; flex: none; }
.plan li .yes { background: rgba(93,195,137,.16); color: #5DC389; }
.plan li .no { background: #26262E; color: #6E6E78; }
.plan li.off { color: #6E6E78; }
.plan .stores { margin-top: auto; }
.plan .store { background: #F5F5F7; color: #0B0B0F; box-shadow: none; }
.plan .btn.light { background: #26262E; color: #F5F5F7; box-shadow: none; margin-top: auto; }

/* Довіра */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust > div { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.trust i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-muted); }
.trust b { font: 600 18px/23px var(--font); letter-spacing: -.2px; }
.trust small { font: 400 15px/21px var(--font); color: var(--ink-secondary); }

/* Фінал */
.final { position: relative; margin: 140px auto 0; max-width: calc(var(--max) - 2 * var(--gutter)); border-radius: 40px; padding: 80px 64px; overflow: hidden; isolation: isolate;
  background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 0%, color-mix(in srgb, var(--cat-music) 18%, transparent), transparent),
  radial-gradient(50% 80% at 100% 100%, color-mix(in srgb, var(--cat-food) 16%, transparent), transparent); }
.final .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow-raised); }
.final h2 { margin-top: 24px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.final p { margin-top: 16px; font: 400 19px/29px var(--font); color: var(--ink-secondary); max-width: 560px; }
.final .stores { margin-top: 32px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; border-radius: 28px; background: var(--canvas); text-align: center; }
.qr svg { width: 168px; height: 168px; padding: 12px; border-radius: 18px; background: #fff; color: #000; }
.qr small { font: 500 14px/19px var(--font); color: var(--ink-secondary); max-width: 180px; }

footer.site { margin-top: 96px; border-top: 1px solid var(--hairline); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 32px; padding-bottom: 40px; font: 400 14px/20px var(--font); color: var(--ink-secondary); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a:hover { color: var(--ink); }

/* ================= Шторки: подія й «у застосунку» ================= */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(11,11,15,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: rise .45s var(--ease); }
dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.event-sheet { position: fixed; inset: 16px 16px 16px auto; margin: 0; width: min(560px, calc(100vw - 32px)); height: auto; }
.event-sheet[open] { animation: slide .5s var(--ease); }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
.sheet-box { position: relative; height: 100%; border-radius: 32px; background: var(--canvas); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.round { position: absolute; z-index: 3; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.round:hover { transform: scale(1.06); }
.round .ico { width: 20px; height: 20px; }
.round.close { right: 16px; } .round.bookmark { right: 64px; }
.cover-big { position: relative; height: 420px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 24px 52px; isolation: isolate; }
.cover-big > .art { position: absolute; inset: 0; z-index: -2; }
.cover-big > .art .glyph { width: 90%; }
.cover-big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.18), transparent 25%, transparent 40%, rgba(0,0,0,.7)); }
.cover-big .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cover-big .when { font: 600 12px/16px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--accent-on-photo); }
.cover-big h2 { margin-top: 6px; font-size: 34px; line-height: 39px; letter-spacing: -.5px; text-shadow: 0 1px 20px rgba(0,0,0,.25); }
.detail { position: relative; margin-top: -28px; border-radius: 28px 28px 0 0; background: var(--canvas); padding: 24px 20px 140px; display: flex; flex-direction: column; gap: 28px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actions a, .actions button { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 14px/18px var(--font); color: var(--ink); }
.actions i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); transition: transform .2s var(--ease), background .2s; }
.actions a:hover i, .actions button:hover i { transform: translateY(-2px); background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.block { display: flex; flex-direction: column; gap: 14px; }
.block h3 { font-size: 22px; line-height: 27px; letter-spacing: -.2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--radius-lg); }
.facts > div { padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts > div:nth-child(odd) { border-right: 1px solid var(--hairline); }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.facts .overline { font-size: 11px; }
.facts b { font: 600 16px/21px var(--font); overflow-wrap: anywhere; }
.facts small { font: 400 14px/19px var(--font); color: var(--ink-secondary); overflow-wrap: anywhere; }
.artist-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.artist-chips button { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); font: 500 15px/18px var(--font); display: inline-flex; align-items: center; gap: 8px; transition: background .2s; }
.artist-chips button:hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.artist-chips .ico { width: 16px; height: 16px; color: var(--ink-tertiary); }
.sessions { display: flex; flex-wrap: wrap; gap: 8px; }
.sessions span { padding: 8px 14px; border-radius: 14px; background: var(--surface); font: 500 14px/18px var(--font); }
.sessions span.on { background: var(--brand); color: var(--on-brand); }
.description { font: 400 16px/25px var(--font); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.description.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more { align-self: flex-start; font: 600 15px/20px var(--font); color: var(--ink); border-bottom: 1px solid var(--hairline); }
.rows { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--hairline); }
.row > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--ink-secondary); }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .txt small { font: 500 12px/16px var(--font); letter-spacing: .6px; color: var(--ink-tertiary); }
.row .txt b { font: 600 16px/21px var(--font); overflow-wrap: anywhere; }
.row .txt span { font: 400 15px/21px var(--font); color: var(--ink-secondary); }
.row .act { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-muted); font: 600 14px/18px var(--font); flex: none; }
.row .act .ico { width: 18px; height: 18px; }
a.row:hover { background: #FAFAFC; }
.fine { font: 400 13px/18px var(--font); color: var(--ink-tertiary); }
.app-only { position: relative; border-radius: var(--radius-lg); padding: 22px; overflow: hidden; isolation: isolate; color: #fff; background: #0B0B0F; display: flex; flex-direction: column; gap: 14px; }
.app-only::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196,59,107,.7), transparent); z-index: -1; }
.app-only b { font: 600 22px/27px var(--serif); }
.app-only ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.app-only li { display: flex; gap: 10px; align-items: center; font: 400 15px/20px var(--font); color: #D1D1D6; }
.app-only li .ico { width: 18px; height: 18px; color: #FF8A5B; }
.app-only .btn { align-self: flex-start; background: #F5F5F7; color: #0B0B0F; }
.bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; padding: 14px; border-radius: 26px; display: flex; flex-direction: column; gap: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 12px 40px rgba(0,0,0,.14); }
.bar .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .meta { display: flex; flex-direction: column; min-width: 0; padding-left: 8px; }
.bar .meta small { font: 600 11px/14px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .meta span { font: 400 16px/22px var(--font); color: var(--ink-secondary); }
.bar .btn { height: 50px; }
.bar .btn.secondary { width: 100%; }

.install { margin: auto; width: min(520px, calc(100vw - 32px)); }
.install-box { position: relative; border-radius: 32px; background: var(--surface); padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); overflow: hidden; isolation: isolate; }
.install-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 220px; z-index: -1; background: linear-gradient(var(--glow), var(--surface)); }
.install-box .round { position: absolute; top: 14px; right: 14px; box-shadow: none; background: var(--surface-muted); }
.install-box .app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-raised); }
.install-box h2 { font-size: 30px; line-height: 35px; letter-spacing: -.5px; }
.install-box .lead { font: 400 16px/24px var(--font); color: var(--ink-secondary); margin-top: -8px; }
.install-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.install-box li { display: flex; gap: 12px; align-items: center; font: 400 15px/20px var(--font); }
.install-box li i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-muted); flex: none; }
.install-box li .ico { width: 20px; height: 20px; }
.install-box .get { display: flex; gap: 20px; align-items: center; }
.install-box .get .stores { flex-direction: column; }
.install-box .qr { padding: 0; background: none; gap: 8px; }
.install-box .qr svg { width: 128px; height: 128px; padding: 10px; box-shadow: 0 0 0 1px var(--hairline); }
.install-box .qr small { font-size: 13px; line-height: 17px; max-width: 140px; }
.install-box .open-app { align-self: stretch; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font: 500 15px/20px var(--font); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ================= Сторінка події за посиланням (worker/, poriad.app/e/{id}) ================= */
.event-page { background: linear-gradient(var(--glow), var(--canvas) 520px) no-repeat, var(--canvas); }
.event-shell { max-width: 640px; margin: 8px auto 0; padding: 0 16px; }
.event-shell .sheet-box { height: auto; overflow: visible; box-shadow: 0 30px 80px -30px rgba(29,29,31,.35); }
.event-shell .cover-big { border-radius: 32px 32px 0 0; overflow: hidden; }
.event-shell .cover-big h1 { margin-top: 6px; font-size: 38px; line-height: 43px; letter-spacing: -.6px; text-shadow: 0 1px 20px rgba(0,0,0,.25); }
.event-shell .detail { padding-bottom: 24px; border-radius: 28px 28px 32px 32px; }
.event-shell .detail.lost { margin-top: 0; padding: 24px 20px; border-radius: 32px; }
.event-shell .block h2 { font-size: 22px; line-height: 27px; letter-spacing: -.2px; }
.event-shell .description { max-height: none; }
.event-shell .bar { position: sticky; left: auto; right: auto; bottom: 12px; margin: 0 12px 12px; }
.event-shell .app-only .stores { margin-top: 4px; }
.event-shell .app-only .store { background: #F5F5F7; color: #0B0B0F; box-shadow: none; }
.notice { margin: 0; background: var(--accent-container); color: var(--on-accent-container); padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.note { font: 400 15px/21px var(--font); color: var(--ink-secondary); }
.note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .event-shell { padding: 0; margin-top: 0; }
  .event-shell .cover-big { border-radius: 0; }
  .event-shell .cover-big h1 { font-size: 30px; line-height: 35px; }
  .event-shell .sheet-box { border-radius: 0; box-shadow: none; }
}

/* ================= Афіша ================= */
.afisha-head { padding: 24px 0 8px; position: relative; }
.afisha-head::before { content: ""; position: absolute; inset: -76px 0 auto; height: 520px; z-index: -1; background: linear-gradient(var(--glow), var(--canvas)); }
.afisha-title { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.afisha-title h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.afisha-title .meta { display: flex; align-items: center; gap: 12px; font: 500 15px/20px var(--font); color: var(--ink-secondary); }
.toolbar { position: sticky; top: 76px; z-index: 40; padding: 14px 0; transition: background .3s, box-shadow .3s; }
.toolbar.stuck { background: color-mix(in srgb, var(--canvas) 80%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 0 var(--hairline); }
.toolbar .wrap { display: flex; flex-direction: column; gap: 12px; }
.toolbar .line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 46px; border: 0; border-radius: 999px; background: var(--surface); font: 400 16px/20px var(--font); color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline); transition: box-shadow .2s; }
.search input:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.search .ico { position: absolute; left: 16px; top: 12px; width: 22px; height: 22px; color: var(--ink-tertiary); pointer-events: none; }
.toolbar .tabs { margin-left: auto; flex: none; }
.toolbar .chips { flex: 1; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.sep { width: 1px; height: 24px; background: var(--hairline); flex: none; }
.afisha-main { padding-top: 28px; display: flex; flex-direction: column; gap: 56px; }
.afisha-main h2 { font-size: 30px; line-height: 36px; letter-spacing: -.4px; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.afisha-main h2 small { font: 500 16px/20px var(--font); color: var(--ink-tertiary); letter-spacing: 0; }
.load-more { display: flex; justify-content: center; margin-top: 48px; }
.map-view { position: relative; height: calc(100vh - 76px - 140px); min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--canvas-tint); }
.map-view .maplibregl-ctrl-attrib { font: 400 11px/16px var(--font); }
.map-view .hint { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 10px 16px; border-radius: 999px; font: 500 14px/18px var(--font);
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.stack { position: absolute; right: 16px; top: 16px; bottom: 16px; z-index: 3; width: 360px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-overlay); overflow: auto; padding: 8px; }
.stack header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 12px; font: 600 15px/20px var(--font); }
.stack header button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-muted); }
.stack header .ico { width: 18px; height: 18px; }
.mini { display: flex; gap: 12px; padding: 8px; border-radius: 16px; cursor: pointer; transition: background .2s; }
.mini:hover { background: var(--surface-muted); }
.mini .art { width: 64px; height: 80px; border-radius: 12px; flex: none; }
.mini .art .glyph { width: 120%; right: -40%; }
.mini div { display: flex; flex-direction: column; gap: 3px; min-width: 0; justify-content: center; }
.mini small { font: 600 10.5px/14px var(--font); letter-spacing: .9px; text-transform: uppercase; color: var(--accent-text); }
.mini b { font: 600 16px/20px var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini span { font: 400 13px/18px var(--font); color: var(--ink-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar { position: fixed; z-index: 45; right: 24px; bottom: 24px; width: 430px; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 20px 50px -12px rgba(0,0,0,.25); transition: transform .5s var(--ease), opacity .4s; }
.app-bar.gone { transform: translateY(140%); opacity: 0; pointer-events: none; }
.app-bar img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.app-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-bar b { font: 600 15px/19px var(--font); }
.app-bar span { font: 400 13px/17px var(--font); color: var(--ink-secondary); }
.app-bar .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.app-bar .x { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.app-bar .x .ico { width: 14px; height: 14px; }

/* ================= Вузькі екрани ================= */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero-phone { --w: 310px; }
  .glass.notif { left: -24px; } .glass.safety { left: -16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .bento .feat { grid-column: auto; grid-row: auto; min-height: 460px; }
  .bento .f-map, .bento .f-detail { grid-column: 1 / -1; min-height: 600px; }
  .bento .f-company, .bento .f-create { min-height: 600px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav .links > a:not(.btn) { display: none; }
  .hero.dark { padding: 120px 0 72px; border-radius: 0 0 32px 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .hero-phone { --w: 290px; transform: none; }
  .glass.company, .glass.safety { display: none; }
  .glass.notif { top: 0; left: 50%; margin-left: -230px; width: 300px; }
  .glass.weekend { right: 50%; margin-right: -230px; bottom: 40px; }
  .section { padding-top: 100px; }
  .bento .f-map .iphone, .bento .f-detail .iphone { right: 40px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .final { grid-template-columns: minmax(0, 1fr); padding: 56px 32px; }
  .final .qr { display: none; }
  .event-sheet { inset: auto 0 0 0; width: 100%; height: calc(100% - 40px); }
  .event-sheet[open] { animation: up .5s var(--ease); }
  .sheet-box { border-radius: 28px 28px 0 0; }
  .install { margin: auto 0 0; width: 100%; }
  .install[open] { animation: up .5s var(--ease); }
  .install-box { border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .install-box .qr { display: none; }
  .install-box .get .stores { flex-direction: row; }
  .toolbar .line.top { flex-wrap: wrap; }
  .search { max-width: none; }
  .stack { left: 12px; right: 12px; top: auto; width: auto; max-height: 55%; }
}
@keyframes up { from { transform: translateY(100%); } }
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bento .feat { min-height: 400px; padding: 26px; border-radius: 30px; }
  .bento .f-map, .bento .f-detail, .bento .f-company, .bento .f-create { min-height: 600px; }
  .bento .feat .iphone { --w: 260px; --r: 0deg; left: 50%; right: auto; margin-left: -130px; top: auto; bottom: -240px; }
  .bento .f-map .iphone { --r: -4deg; } .bento .f-detail .iphone { --r: 4deg; }
  .feat-text h3 { font-size: 28px; line-height: 32px; }
  .feat-text p { font-size: 16px; line-height: 23px; }
  .pushes { left: 16px; right: 16px; bottom: -30px; }
  .mini-ui { left: 18px; right: 18px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav .wrap { height: 64px; }
  .brand { font-size: 22px; } .brand img { width: 32px; height: 32px; }
  .hero.dark { margin-top: -64px; padding-top: 96px; }
  .hero-copy h1 { margin-top: 22px; font-size: 46px; }
  .hero-copy .lead { font-size: 17px; line-height: 25px; margin-top: 18px; }
  .hero-note { font-size: 13px; }
  .live { font-size: 14px; height: 40px; }
  .stores { flex-direction: column; align-items: stretch; }
  .hero .stores { margin-top: 28px; align-self: stretch; padding: 0 8px; }
  .store { justify-content: center; }
  .hero-phone { --w: 250px; }
  .ambient { width: 380px; height: 520px; }
  .glass.notif { left: 0; right: 0; margin: 0 auto; top: -8px; width: auto; max-width: 300px; }
  .glass.weekend { right: 0; margin-right: 0; bottom: 8px; padding: 10px 14px; }
  .glass.weekend .big { font-size: 22px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 28px; }
  .section .sub { font-size: 17px; line-height: 26px; }
  .bonus { padding: 24px 20px; border-radius: 28px; }
  .rail.posters { margin: 0 -20px; padding: 4px 20px 8px; scroll-padding: 0 20px; }
  .rail.posters > .poster { flex-basis: 168px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .poster h3 { font-size: 16px; line-height: 21px; }
  .night { margin-top: 100px; padding: 88px 0; }
  .plan { padding: 24px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .final { margin-top: 100px; border-radius: 0; padding: 56px 16px; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; }
  .hero-card { height: 360px; }
  .hero-card h3 { font-size: 24px; line-height: 29px; }
  .cover-big { height: 380px; padding: 20px 20px 48px; }
  .cover-big h2 { font-size: 28px; line-height: 33px; }
  .detail { padding: 22px 16px 150px; }
  .install-box { padding: 32px 20px 24px; }
  .install-box .get .stores { flex-direction: column; width: 100%; }
  .afisha-head { padding-top: 12px; }
  .toolbar { top: 64px; padding: 10px 0; }
  /* Два ряди замість трьох: пошук і місто; вигляд (лише значки) і чипи. */
  .toolbar .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 8px; }
  .toolbar .line { display: contents; }
  .toolbar .search { grid-column: 1 / 3; }
  .toolbar .tabs { margin-left: 0; }
  .toolbar .tabs button { padding: 0 11px; }
  .toolbar .tabs .label { display: none; }
  .toolbar .chips { grid-column: 2 / 4; align-self: center; }
  .app-bar span { display: none; }
  .app-bar b { white-space: nowrap; }
  .map-view { height: calc(100vh - 64px - 190px); margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .app-bar { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
