/* Stalex — сайт у стилі застосунку (як вітальний тур).
   Пастельне тло з плямами зеленого, бірюзового й трохи рожевого; скляні картки й кнопки;
   округлий жирний шрифт заголовків; маленькі розріджені «кікери» великими літерами.
   Палітра: зелений + рожевий (фламінго) + білий. Без зовнішніх шрифтів і CDN. */

:root {
  --green: #05B366;
  --teal: #00A3B3;
  --pink: #DB407D;
  --pink-2: #F0699B;
  --signal: #0F7333;
  --ink: #082912;
  --muted: #55665B;
  --bg: #FFFFFF;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-line: rgba(255, 255, 255, .9);
  --hairline: rgba(8, 41, 18, .08);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 50px -22px rgba(4, 70, 50, .35), 0 2px 8px rgba(4, 70, 50, .06);
  --shadow-soft: 0 10px 30px -16px rgba(4, 70, 50, .35);
  --amber: #F2B92B;
  --red: #E5484D;
  --radius: 26px;
  --rounded: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #FFFFFF;
    --muted: #A9B8AE;
    --signal: #3DDC84;
    --bg: #050B08;
    --glass: rgba(255, 255, 255, .07);
    --glass-strong: rgba(255, 255, 255, .11);
    --glass-line: rgba(255, 255, 255, .14);
    --hairline: rgba(255, 255, 255, .1);
    --shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 20px 50px -24px rgba(0, 0, 0, .8);
    --shadow-soft: 0 10px 30px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh;
  font: 17px/1.55 var(--text); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--glass-strong); }
.skip:focus { top: 12px; }

/* ---------- Тло: м'які плями (як StalexBackdrop) ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.backdrop .b1 { width: 56vmax; height: 56vmax; left: -18vmax; top: -24vmax; background: radial-gradient(circle, rgba(5, 179, 102, .26), transparent 68%); animation: drift1 26s ease-in-out infinite alternate; }
.backdrop .b2 { width: 54vmax; height: 54vmax; right: -20vmax; top: 6vmax; background: radial-gradient(circle, rgba(0, 163, 179, .22), transparent 68%); animation: drift2 30s ease-in-out infinite alternate; }
.backdrop .b3 { width: 44vmax; height: 44vmax; right: -8vmax; bottom: -18vmax; background: radial-gradient(circle, rgba(219, 64, 125, .20), transparent 68%); animation: drift1 34s ease-in-out infinite alternate-reverse; }
.backdrop .b4 { width: 50vmax; height: 50vmax; left: 10vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(5, 179, 102, .16), transparent 68%); animation: drift2 28s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { .backdrop i { opacity: .7; } }
@keyframes drift1 { to { transform: translate(6vmax, 4vmax) scale(1.06); } }
@keyframes drift2 { to { transform: translate(-5vmax, 5vmax) scale(.96); } }

/* ---------- Скло ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---------- Типографіка ---------- */
h1, h2, h3, h4, .brand, .btn, .kicker, .tabbar, .num { font-family: var(--rounded); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.06; }
h1 { font-size: clamp(42px, 6.4vw, 82px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; font-weight: 800; }
p { margin: 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(120deg, var(--green), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-pink { background: linear-gradient(120deg, var(--pink), #F27C6B); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-inline: auto; text-align: center; max-width: 52ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--pink-2), var(--pink)); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 30px -10px rgba(219, 64, 125, .65); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 16px 36px -10px rgba(219, 64, 125, .75); }
.btn-secondary { color: var(--signal); background: var(--glass-strong); border-color: rgba(15, 115, 51, .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-soft); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn .sub { display: grid; line-height: 1.05; text-align: left; }
.btn .sub small { font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .85; }

/* ---------- Шапка: скляна капсула ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 14px 0 0; }
.topbar-inner { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); text-decoration: none; padding-right: 6px; font-stretch: expanded; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0, 100, 80, .5); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--ink); font: 700 15px var(--rounded); text-decoration: none; opacity: .82; }
.nav a:hover { background: var(--glass-strong); opacity: 1; }
.topbar .lang { font: 800 13px var(--rounded); letter-spacing: .06em; color: var(--signal); text-decoration: none; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(15, 115, 51, .25); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; }
.menu-btn svg { margin: auto; width: 20px; height: 20px; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; left: 20px; right: 20px; top: 74px; flex-direction: column; padding: 10px; border-radius: 24px; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .menu-btn { display: grid; }
  .topbar .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { max-width: 12ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font: 700 14px var(--rounded); color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(5, 179, 102, .2); }
.hero-art { position: relative; justify-self: center; width: min(400px, 88vw); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } }

/* ---------- Телефон ---------- */
.phone {
  position: relative; aspect-ratio: 1290 / 2796; width: 100%;
  border-radius: 54px; padding: 11px; background: linear-gradient(145deg, #E9EEEA, #C9D3CD);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .08), 0 40px 80px -30px rgba(4, 70, 50, .55), 0 8px 24px -8px rgba(4, 70, 50, .25);
}
@media (prefers-color-scheme: dark) { .phone { background: linear-gradient(145deg, #2A302C, #121614); } }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #F6FAF7; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.3%; border-radius: 999px; background: #000; z-index: 3; }
.phone.sm { width: min(320px, 78vw); }

/* Плаваючі скляні картки поверх телефона */
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 20px; font: 700 14px/1.25 var(--rounded); color: var(--ink); animation: bob 6s ease-in-out infinite; }
/* Поверх світлого екрана телефона — завжди світле скло (і в темній темі). */
.float.glass { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .95); color: #082912; box-shadow: 0 16px 36px -18px rgba(4, 70, 50, .55); }
.float b { display: block; font-weight: 800; font-size: 15px; }
.float small { display: block; color: #55665B; font-weight: 600; font-size: 12.5px; }
.float .tile { width: 38px; height: 38px; }
.float.f1 { left: -14%; top: 20%; }
.float.f2 { right: -16%; top: 47%; animation-delay: -2s; }
.float.f3 { left: -10%; bottom: 13%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .float.f1 { left: -4%; } .float.f2 { right: -4%; } .float.f3 { left: -2%; } .float { padding: 8px 12px 8px 8px; } }

/* ---------- Плитки-значки (StalexIconTile) ---------- */
.tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 30%; color: #fff; background: linear-gradient(135deg, var(--c, var(--green)), color-mix(in srgb, var(--c, var(--green)) 72%, white)); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 10px 22px -10px var(--c, var(--green)); }
.tile svg { width: 48%; height: 48%; }
.t-green { --c: #05B366; } .t-teal { --c: #00A3B3; } .t-pink { --c: #DB407D; } .t-amber { --c: #E9A321; } .t-blue { --c: #2F7BEA; } .t-violet { --c: #7A5AF0; } .t-red { --c: #E5484D; }

/* ---------- Таббар-навігатор вкладок ---------- */
.tabbar { display: flex; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto 56px; overflow-x: auto; scrollbar-width: none; }
.tabbar a { display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 9px 14px 7px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a:hover, .tabbar a.on { background: var(--glass-strong); color: var(--signal); }

/* ---------- Розділ-вкладка ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding: clamp(40px, 6vw, 70px) 0; }
.feature.flip .feature-art { order: -1; }
.feature-text { display: grid; gap: 18px; align-content: start; }
.feature-text h2 { font-size: clamp(32px, 4vw, 50px); }
.feature-art { position: relative; display: grid; place-items: center; }
.feature-art .phone { width: min(340px, 80vw); }
.feature-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--green)) 30%, transparent), transparent 66%); filter: blur(30px); z-index: -1; }
.tab-label { display: inline-flex; align-items: center; gap: 12px; }
.tab-label .tile { width: 46px; height: 46px; }
.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.points li b { color: var(--ink); font-weight: 700; }
.points li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--c, var(--green)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 6px 14px -6px var(--c, var(--green)); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-art { order: 0; } }

/* ---------- Мокапи екранів (HTML, без картинок) ---------- */
.mock { position: absolute; inset: 0; font-family: var(--rounded); color: #082912; display: flex; flex-direction: column; }
.mock .status { display: flex; justify-content: space-between; align-items: center; padding: 6.5% 9% 0; font-weight: 800; font-size: clamp(11px, 3.6cqw, 15px); }
.phone .screen { container-type: inline-size; }
.mock .sheet { margin: auto 3.5% 3.5%; padding: 5.5%; border-radius: 28px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 30px -12px rgba(4, 70, 50, .35); display: grid; gap: 4cqw; }
.mock .grab { width: 13%; height: 4px; border-radius: 9px; background: var(--signal); margin: -2cqw auto 0; opacity: .8; }
.mock .row { display: flex; align-items: center; gap: 3.2cqw; }
.mock .t { font-size: 4.2cqw; font-weight: 800; line-height: 1.15; }
.mock .s { font-size: 3.4cqw; font-weight: 600; color: #55665B; line-height: 1.25; }
.mock .big { font-size: 7.4cqw; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.mock .pill { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.6cqw 3.2cqw; border-radius: 999px; background: #fff; font-size: 3.3cqw; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); border: 1px solid rgba(8, 41, 18, .06); }
.mock .pill.g { background: #0F7333; color: #fff; border-color: transparent; }
.mock .mtile { width: 11cqw; height: 11cqw; border-radius: 30%; display: grid; place-items: center; color: #fff; font-size: 5cqw; font-weight: 900; flex: none; background: linear-gradient(135deg, var(--c, #05B366), color-mix(in srgb, var(--c, #05B366) 70%, white)); }
.mock .mtile svg { width: 55%; height: 55%; }
.mock .bar { height: 2.2cqw; border-radius: 9px; background: rgba(8, 41, 18, .1); position: relative; }
.mock .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: linear-gradient(90deg, var(--green), var(--teal)); width: var(--w, 60%); }
.mock .bar em { position: absolute; top: 50%; width: 5.6cqw; height: 5.6cqw; border-radius: 50%; transform: translate(-50%, -50%); border: 1.2cqw solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.mock .bar em.bus { left: var(--w, 60%); background: var(--teal); animation: crawl 7s ease-in-out infinite; }
.mock .bar em.me { left: 100%; background: var(--pink); }
@keyframes crawl { 0% { left: 18%; } 70%, 100% { left: var(--w, 60%); } }
.mock .bar.anim i { animation: grow 7s ease-in-out infinite; }
@keyframes grow { 0% { width: 18%; } 70%, 100% { width: var(--w, 60%); } }

/* Замкнений екран */
.lockbg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, #2FD08A, transparent 55%), radial-gradient(circle at 85% 40%, #12B8C4, transparent 50%), radial-gradient(circle at 60% 95%, #F07AA5, transparent 45%), #0E8F7A; }
.mock.lock { color: #fff; padding: 0 4%; gap: 2.6cqw; }
.lock-date { margin-top: 15cqw; text-align: center; font: 700 4cqw var(--rounded); opacity: .9; }
.lock-time { text-align: center; font: 800 24cqw/1 var(--rounded); letter-spacing: -.02em; margin-bottom: 4cqw; }
.la, .note { padding: 3.6cqw; border-radius: 6cqw; background: rgba(255, 255, 255, .86); color: #082912; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .35); }
.la { display: grid; gap: 2.4cqw; background: rgba(255, 255, 255, .92); }
.la-timer { margin-left: auto; text-align: right; font: 900 5.6cqw var(--rounded); color: #E5484D; }
.la-timer span { display: block; font-size: 2.8cqw; font-weight: 800; color: #55665B; }
.la-tip { padding: 2cqw 3cqw; border-radius: 999px; background: rgba(229, 72, 77, .12); color: #B4282D; font: 800 3.2cqw var(--rounded); justify-self: start; }
.note { display: flex; align-items: center; gap: 3cqw; }
.phone .screen .note img { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; flex: none; object-fit: cover; }
.note .when { margin-left: auto; align-self: flex-start; font: 600 2.8cqw var(--text); color: #55665B; }

/* Мапа транспорту */
.mapbg .ping { transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.mapbg { position: absolute; inset: 0; background:
  radial-gradient(circle at 70% 30%, rgba(0, 163, 179, .16), transparent 40%),
  radial-gradient(circle at 20% 80%, rgba(5, 179, 102, .14), transparent 45%),
  linear-gradient(#EEF4EF, #E6EFE9); }
.mapbg svg { width: 100%; height: 100%; }
.veh { position: absolute; display: grid; place-items: center; min-width: 9cqw; height: 6.6cqw; padding: 0 1.8cqw; border-radius: 999px; color: #fff; font: 900 3.4cqw var(--rounded); border: .8cqw solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.veh.tram { background: #E5484D; } .veh.troll { background: #2F7BEA; } .veh.bus { background: #05B366; } .veh.mini { background: #E9A321; }
.veh.pulse::after { content: ""; position: absolute; inset: -1.6cqw; border-radius: inherit; border: .6cqw solid currentColor; color: #2F7BEA; opacity: .5; animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { transform: scale(1.5); opacity: 0; } }
.mestop { position: absolute; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--pink); border: 1.2cqw solid #fff; box-shadow: 0 0 0 2.2cqw rgba(219, 64, 125, .22); }

/* Чати */
.chatbg { position: absolute; inset: 0; background: linear-gradient(170deg, #F2FBF6, #FFFFFF 50%, #FDF1F6); }
.mock .chat-head { margin: 12cqw 3.5% 0; padding: 2.6cqw 3.6cqw; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 6px 18px -10px rgba(4, 70, 50, .35); display: flex; align-items: center; gap: 2.6cqw; }
.ava { width: 9.6cqw; height: 9.6cqw; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 900 4cqw var(--rounded); background: linear-gradient(135deg, var(--c, #05B366), color-mix(in srgb, var(--c, #05B366) 60%, white)); box-shadow: 0 0 0 .8cqw #fff, 0 0 0 1.5cqw var(--ring, transparent); }
.msgs { display: grid; gap: 2.6cqw; padding: 4cqw 4.5%; margin-top: auto; }
.status-row .ava { width: 13cqw; height: 13cqw; font-size: 5.4cqw; }
.msg { max-width: 76%; padding: 2.6cqw 3.6cqw; border-radius: 5cqw; font: 600 3.6cqw/1.3 var(--text); background: #fff; color: #082912; box-shadow: 0 2px 8px -2px rgba(4, 70, 50, .14); }
.msg.me { justify-self: end; color: #fff; background: linear-gradient(135deg, #12B872, #04A08F); border-bottom-right-radius: 1.4cqw; }
.msg.them { border-bottom-left-radius: 1.4cqw; }
.msg .who { display: block; font: 800 2.9cqw var(--rounded); color: #0F7333; margin-bottom: .4cqw; }
.sysmsg { justify-self: center; padding: 1.2cqw 3cqw; border-radius: 999px; background: rgba(229, 72, 77, .12); color: #B4282D; font: 800 2.9cqw var(--rounded); }
.msg small { display: block; font-size: 2.8cqw; opacity: .7; margin-top: .6cqw; text-align: right; }
.voice { display: flex; align-items: center; gap: 2cqw; }
.voice .play { width: 7cqw; height: 7cqw; border-radius: 50%; background: rgba(255, 255, 255, .28); display: grid; place-items: center; flex: none; }
.wave { display: flex; align-items: center; gap: .7cqw; height: 6cqw; }
.wave i { width: .9cqw; border-radius: 2px; background: currentColor; opacity: .85; }
.transcript { margin-top: 1.6cqw; padding-top: 1.6cqw; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 3.2cqw; }
.status-row { display: flex; gap: 2.4cqw; padding: 0 4.5%; overflow: hidden; margin-top: 4cqw; }
.status-row { justify-content: space-around; }
.status-row .p { display: grid; justify-items: center; gap: 1.2cqw; font: 700 2.9cqw var(--rounded); color: #55665B; }
.composer { margin: 0 3.5% 5%; padding: 2.4cqw 2.4cqw 2.4cqw 4cqw; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; display: flex; align-items: center; justify-content: space-between; font: 600 3.4cqw var(--text); color: #8A988F; box-shadow: 0 6px 18px -10px rgba(4, 70, 50, .35); }
.composer span:last-child { width: 8cqw; height: 8cqw; border-radius: 50%; background: linear-gradient(135deg, #12B872, #04A08F); }

/* Ефір */
.airbg { position: absolute; inset: 0; background: linear-gradient(170deg, #FFF3F8, #FFFFFF 45%, #EFFAF5); }
.seg { display: flex; gap: 1cqw; padding: 1.2cqw; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; margin: 12cqw 3.5% 0; box-shadow: 0 6px 18px -10px rgba(4, 70, 50, .3); }
.seg span { flex: 1; text-align: center; padding: 2cqw 0; border-radius: 999px; font: 800 3.2cqw var(--rounded); color: #55665B; }
.seg span.on { background: #0F7333; color: #fff; }
.feed { display: grid; gap: 2.4cqw; padding: 3.4cqw 3.5%; }
.post { padding: 3.6cqw; border-radius: 6cqw; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 6px 18px -12px rgba(4, 70, 50, .35); display: grid; gap: 2cqw; }
.post p { font: 600 3.4cqw/1.35 var(--text); color: #2B3B31; }
.post .meta { display: flex; gap: 2cqw; font: 800 3cqw var(--rounded); color: #55665B; }
.post .meta span { padding: 1cqw 2.4cqw; border-radius: 999px; background: #F3F6F4; }
.post .photo { height: 15cqw; border-radius: 4cqw; background: linear-gradient(135deg, #2F7BEA, #7A5AF0 55%, #DB407D); position: relative; overflow: hidden; }
.post .photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, rgba(255,255,255,.55) 0 6%, transparent 7%), linear-gradient(transparent 60%, rgba(0,0,0,.25)); }
.gift { background: linear-gradient(135deg, #FFE2EE, #FFF6FA) !important; }
.adbar { margin: 0 3.5%; padding: 3cqw 4cqw; border-radius: 4.6cqw; color: #fff; background: linear-gradient(110deg, #C93A75, #E06C6C); border: .5cqw solid #E9B44C; font: 800 3.4cqw var(--rounded); display: flex; align-items: center; gap: 2cqw; }
.adbar small { font-size: 2.6cqw; background: rgba(255, 255, 255, .9); color: #C93A75; padding: .6cqw 2cqw; border-radius: 999px; }

/* ---------- Сітка карток ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: var(--radius); display: grid; gap: 12px; align-content: start; }
.card p { color: var(--muted); font-size: 16px; }
.card h3 { margin-top: 4px; }

/* ---------- Годинник і віджети ---------- */
.devices { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .devices { grid-template-columns: 1fr; justify-items: center; } }
.watch { position: relative; width: 210px; aspect-ratio: 41 / 49; border-radius: 30%/26%; padding: 12px; background: linear-gradient(145deg, #3A403C, #121513); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.watch::before, .watch::after { content: ""; position: absolute; left: 22%; right: 22%; height: 40%; background: linear-gradient(#DCE6E0, #BFCCC4); z-index: -1; border-radius: 20px; }
.watch::before { top: -32%; } .watch::after { bottom: -32%; }
.watch .face { width: 100%; height: 100%; border-radius: 26%/22%; background: #000; color: #fff; padding: 18px 14px; display: grid; align-content: space-between; font-family: var(--rounded); }
.watch .face .k { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #3DDC84; }
.watch .face .h { font-size: 24px; font-weight: 900; line-height: 1.05; }
.watch .face .w-btn { padding: 9px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 800; background: rgba(61, 220, 132, .22); color: #7CF0AE; }
.watch .crown { position: absolute; right: -9px; top: 26%; width: 10px; height: 34px; border-radius: 4px; background: #9AA49E; }
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.widget { border-radius: 28px; padding: 18px; display: grid; gap: 8px; align-content: space-between; min-height: 170px; font-family: var(--rounded); }
.widget .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.widget .h { font-size: 22px; font-weight: 900; line-height: 1.1; }
.widget.wide { grid-column: span 2; }
.widget .mock { position: static; }
.widget .bar { height: 10px; }
.widget .bar em { width: 22px; height: 22px; border-width: 4px; }
@media (max-width: 520px) { .widgets { grid-template-columns: 1fr; } .widget.wide { grid-column: auto; } }

/* ---------- Смуга «безпека безкоштовна» ---------- */
.free-band { border-radius: 36px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; overflow: hidden; position: relative; }
.free-band::after { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(5, 179, 102, .32), transparent 65%); }
.free-band .tile { width: 88px; height: 88px; }
.free-band h2 { font-size: clamp(28px, 3.6vw, 44px); }
.free-band p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
@media (max-width: 640px) { .free-band { grid-template-columns: 1fr; } }

/* ---------- Stalex Plus і Flamingo ---------- */
.plus { border-radius: 36px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.plus::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(219, 64, 125, .22), transparent 45%), radial-gradient(circle at 0% 100%, rgba(5, 179, 102, .18), transparent 50%); z-index: -1; }
.plus-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.plus-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: #fff; font: 900 15px var(--rounded); background: linear-gradient(135deg, var(--pink-2), var(--pink)); box-shadow: 0 10px 24px -12px rgba(219, 64, 125, .8); }
.perk-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .perk-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .perk-groups { grid-template-columns: 1fr; } }
.perk-group { padding: 20px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.perk-group h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); font-weight: 900; }
.perk-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; }
.perk-group li { padding-left: 22px; position: relative; }
.perk-group li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--pink); font-size: 13px; }
.flamingo { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 18px; padding: 26px 30px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #C93A75, #E3577F 55%, #F08A7A); box-shadow: 0 24px 50px -24px rgba(201, 58, 117, .7); }
.flamingo h3 { font-size: 26px; }
.flamingo p { opacity: .95; margin-top: 6px; max-width: 64ch; }
.flamingo .uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.flamingo .uses span { padding: 7px 13px; border-radius: 999px; background: #fff; color: #C93A75; font: 800 14px var(--rounded); }
.flamingo .bird { font-size: 72px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .2)); }
@media (max-width: 640px) { .flamingo { grid-template-columns: 1fr; } .flamingo .bird { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: 22px; padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 800 18px/1.3 var(--rounded); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(5, 179, 102, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7333' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- Завантажити ---------- */
.download { text-align: center; border-radius: 40px; padding: clamp(40px, 7vw, 80px) 24px; display: grid; gap: 18px; justify-items: center; }
.download img.appicon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 24px 40px -18px rgba(0, 110, 90, .6); }
.download .lead { text-align: center; }

/* ---------- Підвал ---------- */
.footer { padding: 56px 0 44px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 30px; border-radius: 30px; }
.footer h4 { margin: 0 0 10px; font: 900 13px var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--signal); text-decoration: underline; }
.footer .brand { margin-bottom: 10px; }
.footer .legal { margin-top: 20px; font-size: 13px; text-align: center; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Документи (політика, умови, підтримка) ---------- */
.doc-hero { padding: clamp(40px, 6vw, 80px) 0 28px; display: grid; gap: 16px; justify-items: start; }
.doc-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 18ch; }
.doc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 96px; padding: 18px; border-radius: 24px; max-height: calc(100vh - 120px); overflow: auto; }
.toc h4 { margin: 0 0 10px; font: 900 12px var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 700 14px/1.3 var(--rounded); opacity: .82; }
.toc a:hover { background: var(--glass-strong); opacity: 1; }
.doc { display: grid; gap: 14px; }
.doc-sec { padding: 24px 26px; border-radius: 24px; }
.doc-sec h2 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 10px; line-height: 1.25; }
.doc-sec p, .doc-sec li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.doc-sec p + p { margin-top: 10px; }
.doc-sec strong { color: var(--ink); }
.notice { padding: 18px 22px; border-radius: 22px; display: flex; gap: 14px; align-items: flex-start; }
.notice .tile { width: 40px; height: 40px; }
.notice p { color: var(--muted); }
.notice strong { color: var(--ink); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }

/* Підтримка */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { padding: 24px; border-radius: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
a.help-card:hover { transform: translateY(-3px); text-decoration: none; }
.help-card p { color: var(--muted); font-size: 15.5px; }
.help-card .go { font: 800 15px var(--rounded); color: var(--signal); }
.faq-group { margin: 34px 0 14px; font: 900 13px var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); text-align: center; }

/* ---------- Запрошення (join/u) і 404 ---------- */
.center-page { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 40px 0 60px; }
.invite { width: min(520px, 100%); padding: 34px 28px; border-radius: 34px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.invite img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 30px -14px rgba(0, 110, 90, .6); }
.invite h1 { font-size: clamp(30px, 6vw, 40px); }
.invite p { color: var(--muted); }
.code { font: 900 26px var(--rounded); letter-spacing: .04em; padding: 12px 22px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--signal); word-break: break-all; }
.steps { text-align: left; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--muted); font-size: 15.5px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 179, 102, .16); color: var(--signal); font: 900 13px var(--rounded); }
.steps b { color: var(--ink); }
.err { color: var(--pink) !important; font-weight: 700; }
.big404 { font: 900 clamp(90px, 18vw, 160px)/1 var(--rounded); letter-spacing: -.04em; }

/* ---------- Поява під час прокрутки ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  .backdrop, .topbar, .footer, .toc { display: none; }
  .glass { box-shadow: none; background: none; border: 0; }
}
