/* Сайт kandai.app. Цвета — из иконки (красный #DB343D → #841D32, золото #F2CC83) и переменных
   Figma «Kandai - Messenger» (app/lib/core/theme/kandai_tokens.dart), шрифт — Onest, как в приложении.
   Макет — design_handoff_kandai_site (октябрь 2026): кремовый фон, кыргызские орнаменты из
   app/assets/ornaments (assets/ornaments), перекрашенные маской.
   CSP сайта — style-src 'self': атрибутов style= в разметке нет, динамика — через CSSOM в site.js. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #db343d;
  --red-deep: #841d32;
  --red-ink: #b02a3b;
  --red-soft: #fbeaeb;
  --gold: #f2cc83;
  --gold-soft: #fbf3e2;
  --gold-line: #efe3c8;
  --cream: #fbf6ec;
  --ink: #17161d;
  --text: #1d1d1d;
  --muted: #717473;
  --muted-2: #55565b;
  --body-2: #3b3b40;
  --bg-soft: #f4f4f8;
  --line: #e7e7ee;
  --wrap: 1240px;
  --gutter: 24px;
  --head: 72px;
  --sec: clamp(88px, 11vw, 150px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.6 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Язык не русский: страница ждёт перевода (site.js), чтобы не мигнуть русским текстом.
   Если скрипт не загрузится — через 1,5 с текст всё равно появится. */
html[data-i18n-pending] body { visibility: hidden; animation: k-unhide 0s 1.5s forwards; }
@keyframes k-unhide { to { visibility: visible; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: #fff; }

/* ——— Анимации ——— */

@keyframes kspin { to { transform: rotate(360deg); } }
@keyframes kblink { 50% { opacity: 0; } }
@keyframes kmarq { to { transform: translateX(-50%); } }
@keyframes kmsg { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes kdot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes kring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
@keyframes kfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes kpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 204, 131, .55); } 50% { box-shadow: 0 0 0 10px rgba(242, 204, 131, 0); } }
@keyframes kopen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes krise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes khint { 0%, 6% { opacity: 0; } 10%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ksend { from { opacity: 0; transform: translateY(46px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes kshimmer { to { background-position: -200% 0; } }
@keyframes kfade { 50% { opacity: .25; } }
@keyframes knudge { 50% { translate: -6px 0; } }
@keyframes kpop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: none; } }
@keyframes kbar { from { opacity: 0; transform: translateY(10px) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes kbarout { to { opacity: 0; transform: scale(.85); } }
@keyframes kemoji { from { opacity: 0; transform: translateY(8px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ktouch { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
@keyframes ktouchup { from { opacity: 1; } to { opacity: 0; transform: scale(1.3); } }

/* ——— Орнаменты: SVG из приложения как маска, цвет — currentColor ——— */

.orn {
  display: inline-block; flex: none; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.o-tunduk { --m: url(/assets/ornaments/tunduk.svg); }
.o-rhombi { --m: url(/assets/ornaments/nine_rhombi.svg); }
.o-horns { --m: url(/assets/ornaments/ram_horns.svg); }
.o-mountains { --m: url(/assets/ornaments/mountains.svg); }
.o-yurt { --m: url(/assets/ornaments/yurt.svg); }
.o-four { --m: url(/assets/ornaments/four_horns.svg); }
.o-sun { --m: url(/assets/ornaments/sun.svg); }
.o-piala { --m: url(/assets/ornaments/piala.svg); }
.o-tumar { --m: url(/assets/ornaments/tumar.svg); }
.o-kalpak { --m: url(/assets/ornaments/kalpak.svg); }
.o-komuz { --m: url(/assets/ornaments/komuz.svg); }

/* Полоса «волчьи зубы» */
.band {
  height: 26px; background: var(--gold);
  -webkit-mask: url(/assets/ornaments/wolf_teeth.svg) 0 50% / 52px 52px repeat-x;
  mask: url(/assets/ornaments/wolf_teeth.svg) 0 50% / 52px 52px repeat-x;
}

/* Узор-дудлы, как обои чата в приложении */
.doodles {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--gold); opacity: .1;
  -webkit-mask: url(/assets/img/doodles.svg) 0 0 / 420px 420px repeat;
  mask: url(/assets/img/doodles.svg) 0 0 / 420px 420px repeat;
}

/* ——— Шапка ——— */

.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--ink);
  background: rgba(251, 246, 236, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(23, 22, 29, .08);
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease;
}
.hdr-in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: var(--head); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.hdr-nav { display: flex; gap: 2px; margin-left: auto; }
.hdr-nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 100px; transition: background-color .2s ease; }
.hdr-nav a:hover { color: inherit; background: rgba(23, 22, 29, .06); }
.hdr-nav a[aria-current="page"] { background: rgba(23, 22, 29, .07); }

.langs { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(23, 22, 29, .14); }
.langs button {
  border: 0; cursor: pointer; font: 600 12px/1 'Onest', system-ui, sans-serif; letter-spacing: .04em;
  padding: 7px 9px; border-radius: 100px; background: transparent; color: inherit;
  transition: background-color .2s ease, color .2s ease;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.hdr-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 100px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, background-color .35s ease, color .35s ease;
}
.hdr-cta:hover { color: #fff; transform: translateY(-1px); }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 100px; background: transparent; color: inherit; place-items: center; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
.burger .i-x, .hdr.is-open .burger .i-menu { display: none; }
.hdr.is-open .burger .i-x { display: block; }

.hdr-menu { display: grid; gap: 2px; padding: 8px 16px 20px; background: var(--cream); border-top: 1px solid rgba(23, 22, 29, .08); max-height: calc(100vh - var(--head)); overflow: auto; }
.hdr-menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; padding: 14px 12px; border-bottom: 1px solid rgba(23, 22, 29, .07); }
.hdr-menu a.hdr-menu-cta { margin-top: 12px; display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 0; border: 0; border-radius: 100px; background: var(--ink); color: #fff; font-size: 17px; letter-spacing: 0; }

/* На главной шапка лежит прозрачной на красном первом экране, пока страницу не прокрутили */
.hdr-over:not(.is-scrolled):not(.is-open) {
  background: transparent; box-shadow: none; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hdr-over:not(.is-scrolled):not(.is-open) .hdr-nav a:hover { background: rgba(255, 255, 255, .12); }
.hdr-over:not(.is-scrolled):not(.is-open) .langs { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.hdr-over:not(.is-scrolled):not(.is-open) .langs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.hdr-over:not(.is-scrolled):not(.is-open) .hdr-cta { background: var(--gold); color: var(--ink); }

/* ——— Кнопки ——— */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 100px; border: 0;
  font: 600 15px/1.1 'Onest', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 17px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2934; color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f6d99e; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(23, 22, 29, .18); }
.btn-line:hover { background: #fff; color: var(--ink); }

/* Кнопки магазинов: где приложение уже есть — ссылка (a.store), где нет — плашка «Скоро» (span). */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 18px; cursor: default;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff;
}
.store-logo { width: 26px; height: 26px; flex: none; }
.store-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.store small { font-size: 12px; line-height: 1.2; opacity: .78; font-weight: 500; }
.store b { font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.store-ink { padding: 8px 24px 8px 18px; background: var(--ink); box-shadow: none; }
.store-ink small { opacity: .72; }
/* Windows — уже настоящая ссылка на установщик (kandai.app/desktop/Kandai-setup.exe). */
a.store { cursor: pointer; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
a.store:hover { background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transform: translateY(-1px); }
a.store-ink:hover { background: #2b2933; box-shadow: none; }
a.store:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dl-win { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ——— Общие блоки секций ——— */

.sec { padding: var(--sec) 0; }
.sec-white { background: #fff; }
.sec-gold { background: var(--gold-soft); }
.sec-ink { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }

.kicker {
  margin: 0 0 20px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink);
}
.kicker .orn { width: 16px; height: 16px; }
.sec-ink .kicker, .ai .kicker { color: var(--gold); }

/* «Скоро» — у того, чего в приложении ещё нет */
.soon {
  padding: 4px 10px; border-radius: 100px; background: var(--ink); color: var(--gold);
  font-size: 12px; line-height: 1.2; letter-spacing: .02em; text-transform: none;
}
.ai .soon { background: var(--gold); color: var(--ink); }

.h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.sec-ink .h2, .ai .h2 { color: #fff; }
.h2-card { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }

.lead { margin-top: 24px; max-width: 540px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.sec-ink .lead { max-width: 560px; color: rgba(255, 255, 255, .72); }
.sec-gold .lead { max-width: 560px; color: #5f6061; }

.tile { width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.tile svg { width: 20px; height: 20px; }

.dots { display: flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: kdot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }

/* ——— Первый экран ——— */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--red-deep); color: #fff; padding-top: var(--head); }
.hero-in { padding-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 16px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.hero-eyebrow { margin: 0 0 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hero-eyebrow .orn { width: 22px; height: 22px; animation: kspin 14s linear infinite; }
.hero h1 { color: #fff; letter-spacing: -0.045em; line-height: .98; }
.hero-typed { display: block; min-height: 1em; color: var(--gold); font-size: clamp(46px, 7vw, 100px); white-space: nowrap; }
.caret { display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -0.06em; background: var(--gold); border-radius: 2px; animation: kblink 1s steps(1) infinite; }
.hero-line2 { display: block; margin-top: 10px; font-size: clamp(38px, 5.2vw, 72px); text-wrap: balance; }
.hero-gloss { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .7); font-style: italic; }
.hero-lead { margin-top: 26px; max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.hero-note a { color: #fff; }
.hero-note a:hover { color: var(--gold); }

.hero-art { position: relative; height: 600px; }
.hero-halo { position: absolute; left: 50%; top: 44%; width: 680px; height: 680px; margin: -340px 0 0 -340px; color: var(--gold); opacity: .12; animation: kspin 90s linear infinite; }
.hero-phones { position: absolute; inset: 0; will-change: transform; }
.hero-phones .phone { position: absolute; left: 50%; }
.hero-phones .phone-a { --s: .74; bottom: -120px; transform: translateX(-92%) rotate(-4deg); z-index: 2; }
.hero-phones .phone-b { --s: .70; bottom: -24px; transform: translateX(9%) rotate(5deg); }

/* ——— Телефон: экран 375×812 из Figma, уменьшенный через --s ——— */

.phone {
  --s: .75; --b: 11px;
  width: calc(375px * var(--s) + var(--b) * 2);
  padding: var(--b);
  border-radius: calc(54px * var(--s) + var(--b));
  background: linear-gradient(145deg, #2c2b33, #0d0d10 55%, #26252c);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 50px 80px -30px rgba(30, 0, 8, .6),
    0 20px 40px -20px rgba(0, 0, 0, .45);
}
.screen { position: relative; width: calc(375px * var(--s)); height: calc(812px * var(--s)); border-radius: calc(46px * var(--s)); overflow: hidden; background: #fff; }
.screen-in {
  position: absolute; left: 0; top: 0; width: 375px; height: 812px;
  transform: scale(var(--s)); transform-origin: 0 0;
  font: 400 14px/1.2 'Onest', system-ui, sans-serif; color: #1d1d1d; letter-spacing: 0;
  -webkit-user-select: none; user-select: none;
}
.screen-in::before { content: ''; position: absolute; z-index: 9; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.home-ind { position: absolute; z-index: 9; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; }

.sb { position: relative; z-index: 8; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 8px 30px 0 52px; font-weight: 600; font-size: 17px; color: #000; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { height: 12px; width: auto; }

/* Список чатов — как кадр «Chats» (2:2) в Figma */
.cl-title { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.cl-title b { font-size: 24px; font-weight: 700; line-height: 1.2; color: #1d1d1d; }
.cl-title span { display: flex; gap: 16px; }
.cl-title svg { width: 24px; height: 24px; overflow: visible; }
.chips { display: flex; gap: 8px; padding: 0 16px; margin-top: 10px; }
.chip { height: 33px; padding: 0 10px; border-radius: 100px; background: #f4f4f8; color: #717473; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.chip.on { background: #17161d; color: #fff; }
.chip i { font-style: normal; min-width: 18px; height: 17px; padding: 0 5px; border-radius: 100px; background: #17161d; color: #fff; font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; }
.chip svg { width: 16px; height: 16px; }
.chip.sq { width: 36px; padding: 0; justify-content: center; }
.arch { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 26px; margin-top: 6px; font-weight: 500; font-size: 14px; color: #1d1d1d; }
.arch svg { width: 20px; height: 20px; }
.rows { margin-top: 6px; }
.row { display: flex; align-items: center; gap: 8px; height: 64.4px; padding: 6px 16px; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 76px; right: 16px; height: .5px; background: #d6d6d6; }
.ava { position: relative; width: 52px; height: 52px; flex: none; }
.ava img, .ava .letter { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ava .letter { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 22px; }
.l-orange { background: linear-gradient(135deg, #f0a35e, #d9684a); }
.l-green { background: linear-gradient(135deg, #3aa36b, #1f6f47); }
.ava.on::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 2px #fff; }
.rtext { min-width: 0; flex: 1; display: grid; gap: 3px; }
.rline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rname { font-weight: 500; font-size: 16px; color: #1d1d1d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.rtime { font-size: 14px; color: #717473; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.rtime svg { width: 18px; height: 18px; color: #717473; }
.rtime .read { color: #007aff; }
.rprev { font-size: 14px; color: #717473; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.rprev b { font-weight: 500; color: #1d1d1d; }
.pin { width: 16px; height: 16px; color: #717473; flex: none; }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; background: #fee500; color: #1d1d1d; font-weight: 500; font-size: 13px; display: inline-grid; place-items: center; flex: none; }

/* Нижняя панель приложения: «таблетка» с вкладками и кнопка «Создать» */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 12px 16px 34px; display: flex; align-items: center; justify-content: center; gap: 20px; background: rgba(250, 250, 250, .92); border-top: 1px solid #e3e6eb; }
.pill { width: 272px; height: 64px; border-radius: 50px; background: #e8ebf2; border: 1px solid #e3e6eb; display: flex; align-items: center; padding: 0 12px; }
.tab { flex: 1; display: grid; justify-items: center; gap: 4px; color: #a5a5ad; font-size: 10px; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: #131514; }
.tab i { position: absolute; left: calc(50% + 2px); top: -6px; font-style: normal; background: #1cd66b; color: #fff; font-size: 10px; font-weight: 500; padding: 1px 5px; border-radius: 100px; }
.plus-btn { display: grid; justify-items: center; gap: 4px; font-size: 10px; color: #717473; }
.plus-btn span { width: 40px; height: 40px; border-radius: 50%; background: #0071ff; display: grid; place-items: center; color: #fff; }
.plus-btn svg { width: 24px; height: 24px; }

/* Экран переписки: обои с узором, белые входящие, синие исходящие */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; background: #e4edf8; }
.chat::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(0, 70, 160, .14);
  -webkit-mask: url(/assets/img/doodles.svg) 0 0 / 400px 400px repeat; mask: url(/assets/img/doodles.svg) 0 0 / 400px 400px repeat;
}
.chat > * { position: relative; }
.chat .sb { background: #fff; }
.chead { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px 0 8px; background: #fff; border-bottom: .5px solid #e1e3e2; }
.chead .back { width: 28px; height: 28px; color: #0071ff; }
.chead img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chead .who { flex: 1; min-width: 0; }
.chead .who b { display: block; font-weight: 600; font-size: 16px; color: #131514; }
.chead .who small { display: block; font-size: 13px; color: #1cd66b; margin-top: 2px; }
.chead .acts { display: flex; gap: 18px; color: #0071ff; }
.chead .acts svg { width: 24px; height: 24px; }
.msgs { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 12px 10px; }
/* Долгое нажатие на пузырь: лента темнеет, пузырь с полоской реакций — над ней */
.msgs::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(16, 24, 40, .16); opacity: 0; pointer-events: none; transition: opacity .25s; }
.msgs.dim::after { opacity: 1; }
.msgs.fade > * { opacity: 0; transition: opacity .45s; }
.day { align-self: center; background: #fff; color: #131514; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 100px; margin: 4px 0 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.b { position: relative; max-width: 80%; padding: 8px 12px 6px; font-size: 16px; line-height: 1.3; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); transition: scale .25s var(--ease), margin .3s var(--ease); }
.b.lift { z-index: 2; }
.b.pressed { scale: .96; }
.b .t { float: right; margin: 8px 0 -2px 10px; font-size: 11px; line-height: 1; display: inline-flex; align-items: center; gap: 2px; }
.b .t svg { width: 16px; height: 16px; }
.b.in { align-self: flex-start; background: #fff; color: #131514; border-radius: 18px 18px 18px 6px; transform-origin: 0 100%; }
.b.in .t { color: #717473; }
.b.out { align-self: flex-end; background: #278eff; color: #fff; border-radius: 18px 18px 6px 18px; transform-origin: 100% 100%; }
.b.out .t { color: rgba(255, 255, 255, .8); }
/* Статус своего сообщения, как в приложении: часы → галочка → две → прочитано */
.chk { opacity: .6; }
.chk.read { opacity: 1; color: #c2f0ff; }
.b-tr-btn { clear: both; display: block; width: max-content; padding-top: 4px; font-size: 12px; font-weight: 600; color: #0071ff; transition: opacity .15s; }
.b-tr-btn.pressed { opacity: .45; }
.b-tr { clear: both; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0, 0, 0, .08); }
.b-tr small { display: block; font-size: 11px; font-weight: 600; color: #0071ff; margin-bottom: 2px; }
.b-tr .sk { display: block; width: 150px; height: 12px; margin: 4px 0 3px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 0%, #dbe2ec 50%, #eef1f6 100%) 0 0 / 200% 100%; animation: kshimmer 1s linear infinite; }
.typing { align-self: flex-start; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: #717473; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.voice { display: flex; align-items: center; gap: 10px; min-width: 214px; }
.voice .play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #278eff; display: grid; place-items: center; flex: none; }
.voice .play svg { width: 18px; height: 18px; margin-left: 2px; }
.wave { flex: 1; min-width: 0; height: 26px; fill: rgba(255, 255, 255, .95); }
.voice-meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 2px; padding-left: 48px; color: rgba(255, 255, 255, .85); }
.voice-meta span { display: inline-flex; align-items: center; gap: 2px; }
.voice-meta svg { width: 16px; height: 16px; }
/* Реакции: полоска над пузырём по долгому нажатию и чип на краю пузыря */
.rbar { position: absolute; left: -2px; bottom: calc(100% + 8px); display: flex; gap: 2px; padding: 5px 6px; border-radius: 100px; background: #fff; box-shadow: 0 10px 28px rgba(20, 30, 60, .2), 0 1px 2px rgba(0, 0, 0, .08); transform-origin: 30px 100%; animation: kbar .34s var(--ease) both; }
.rbar i { font-style: normal; width: 38px; height: 38px; display: grid; place-items: center; font-size: 26px; line-height: 1; border-radius: 50%; animation: kemoji .36s var(--ease) both; transition: scale .22s var(--ease), background .22s; }
.rbar i:nth-child(2) { animation-delay: .03s; }
.rbar i:nth-child(3) { animation-delay: .06s; }
.rbar i:nth-child(4) { animation-delay: .09s; }
.rbar i:nth-child(5) { animation-delay: .12s; }
.rbar i:nth-child(6) { animation-delay: .15s; }
.rbar i.pick { background: #e8ebf2; scale: 1.25; }
.rbar.out { animation: kbarout .22s ease both; }
.b.has-rx { margin-bottom: 16px; }
.rx { position: absolute; left: 10px; top: calc(100% - 7px); padding: 1px 7px; border-radius: 100px; background: #fff; border: 1px solid #e3e6eb; font-size: 15px; line-height: 1.35; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.msgs.live .rx { animation: kpop .4s var(--ease) both; }
/* Поле ввода: набор текста, «отправить» вместо микрофона, запись голосового */
.composer { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 38px; background: #fff; color: #717473; }
.composer svg { width: 26px; height: 26px; }
.c-clip, .composer .field { transition: opacity .2s; }
.composer .field { position: relative; flex: 1; min-width: 0; height: 40px; border-radius: 100px; background: #f4f4f8; display: flex; align-items: center; padding: 0 16px; font-size: 16px; color: #131514; overflow: hidden; white-space: nowrap; }
.field .ph { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: #9e9e9e; }
.ccaret { display: none; flex: none; width: 2px; height: 20px; margin-left: 1px; border-radius: 1px; background: #0071ff; animation: kblink 1s steps(1) infinite; }
.composer.focus .ccaret { display: block; }
.composer.focus .ph { left: 20px; }
.composer.has-text .ph { display: none; }
.c-btn { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.c-btn::before, .c-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #0071ff; scale: 0; transition: scale .28s var(--ease); }
.c-btn::after { background: rgba(0, 113, 255, .22); transition: none; }
.c-btn svg { grid-area: 1 / 1; position: relative; transition: opacity .2s, scale .28s var(--ease), color .2s; }
.composer .c-send { width: 20px; height: 20px; margin-left: 2px; color: #fff; opacity: 0; scale: .3; }
.composer.has-text .c-btn::before { scale: 1; }
.composer.has-text .c-mic { opacity: 0; scale: .3; }
.composer.has-text .c-send { opacity: 1; scale: 1; }
.composer.recording .c-btn::before { scale: 1.5; }
.composer.recording .c-btn::after { scale: 1.5; animation: kring 1.2s ease-out infinite; }
.composer.recording .c-mic { color: #fff; }
.composer.recording .c-clip, .composer.recording .field { opacity: 0; }
.c-btn.pressed svg { scale: .85; }
.rec { position: absolute; left: 14px; right: 74px; top: 8px; height: 40px; display: flex; align-items: center; gap: 8px; font-size: 16px; color: #131514; opacity: 0; transition: opacity .2s; }
.composer.recording .rec { opacity: 1; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: kfade 1s ease-in-out infinite; }
.rec-time { min-width: 38px; font-variant-numeric: tabular-nums; }
.rec-hint { margin-left: auto; color: #717473; font-size: 15px; animation: knudge 1.4s ease-in-out infinite; }
/* «Палец»: где нажимают в демо */
.touch { position: absolute; z-index: 20; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(23, 22, 29, .3); box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .95), 0 0 0 3.5px rgba(23, 22, 29, .12), 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none; animation: ktouch .18s var(--ease) both; }
.touch.up { animation: ktouchup .3s ease both; }
/* Переписка проигрывается заново (home.js): входящие въезжают снизу, свои — от поля ввода */
.msgs.live > * { animation: kmsg .45s var(--ease) backwards; }
.msgs.live > .b.out { animation-name: ksend; }
.msgs.live > .day, .msgs.live .b-tr { animation: kmsg .4s ease backwards; }
.msgs.live > .typing { animation-duration: .3s; }

/* ——— Бегущая строка ——— */

.marquee { overflow: hidden; background: var(--gold); color: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: kmarq 46s linear infinite; }
.mq { display: inline-flex; align-items: center; gap: 30px; padding: 20px 15px; font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.025em; white-space: nowrap; }
.mq .orn { width: 22px; height: 22px; color: var(--red-ink); }

/* ——— Перевод ——— */

.tr-sec { overflow: hidden; }
.tr-demo { position: relative; width: max-content; max-width: 100%; margin: 0 auto; display: grid; justify-items: center; gap: 24px; }
.tr-horns { position: absolute; right: -54px; top: -40px; width: 120px; height: 120px; color: var(--red); opacity: .9; animation: kfloat 6s ease-in-out infinite; }
.tr-phone { --s: .78; }
/* Экран чата приложения в светлой теме (app/lib/core/theme: wallpaper, bubbleIn/Out, inkIn):
   фон однотонный, входящий белый, мой жёлтый, время сбоку от пузыря, хвост как у BubbleShape. */
.kchat { position: absolute; inset: 0; display: flex; flex-direction: column; background: #e6f1f5; }
.kchat .sb { background: #fff; }
.kava { position: relative; width: 40px; height: 40px; flex: none; }
.kava img, .kava .letter { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.kava .letter { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 18px; }
.l-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.kmsgs { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 16px 14px; }
.kmsgs > * { transition: opacity .35s; }
.kmsgs.fade > * { opacity: 0; }
/* Плашка «защищены сквозным шифрованием» (E2eNotice): systemBg, радиус 16, поля 16/8, 12/135 % */
.ke2e { align-self: center; max-width: 320px; margin: 0 0 20px; padding: 8px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); color: #717473; font-size: 12px; line-height: 1.35; text-align: center; }
.ke2e svg { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.ke2e b { font-weight: 600; color: #131514; }
.kday { align-self: center; margin-bottom: 20px; padding: 4px 12px; border-radius: 100px; background: rgba(255, 255, 255, .6); color: #717473; font-size: 12px; font-weight: 500; line-height: 1.2; }
.krow { display: flex; align-items: flex-end; gap: 2px; max-width: 100%; }
.krow + .krow, .kmsgs > .typing { margin-top: 10px; }
.krow.out { align-self: flex-end; }
.krow.in { align-self: flex-start; }
.kmeta { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 1px; font-size: 12px; line-height: 1.2; color: #717473; }
.kchk { width: 18px; height: 18px; color: #007aff; }
.kb { position: relative; max-width: 270px; padding: 8px 12px; border-radius: 20px; background: #fff; color: #1d1d1d; }
.kb::before {
  content: ''; position: absolute; left: -6px; bottom: 0; width: 16px; height: 23px; background: inherit;
  -webkit-mask: url(/assets/img/bubble-tail.svg) 0 0 / 16px 23px no-repeat; mask: url(/assets/img/bubble-tail.svg) 0 0 / 16px 23px no-repeat;
}
.krow.out .kb { background: #fee500; }
.krow.out .kb::before { left: auto; right: -6px; transform: scaleX(-1); }
.kb-in { overflow: hidden; }
.kt { margin: 0; font-size: 16px; line-height: 1.3; }
/* Кнопка «перевести» (TranslateButton): 32×24, радиус 9, справа от первой строки, текст обтекает */
.tr-btn { float: right; width: 32px; height: 24px; margin: -1.6px 0 -1.6px 6px; border-radius: 9px; background: rgba(124, 58, 237, .1); color: #7c3aed; display: grid; place-items: center; transition: scale .2s var(--ease); }
.tr-btn svg { width: 16px; height: 16px; }
.tr-btn .spin { display: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: kspin .7s linear infinite; }
.tr-btn.pending svg { display: none; }
.tr-btn.pending .spin { display: block; }
.tr-btn.pressed { scale: .9; }
/* Перевод под оригиналом (MessageTranslationView): 10 — черта-орнамент — 10 — шапка — 4 — текст */
.ktr { margin-top: 10px; }
.ktr-orn {
  display: block; height: 6px; background: #adadad;
  -webkit-mask: url(/assets/img/tr-curl.svg) 0 0 / 34.6px 6px round; mask: url(/assets/img/tr-curl.svg) 0 0 / 34.6px 6px round;
}
.ktr-h { display: flex; align-items: center; gap: 4px; margin: 10px 2px 4px; font-size: 12px; font-weight: 500; line-height: 1.2; color: #717473; }
.ktr-h svg { width: 14px; height: 14px; flex: none; }
.ktr-t { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; color: #7c3aed; }
.kchat .composer { padding-bottom: 34px; }
.kchat .live > * { animation: kmsg .45s var(--ease) backwards; }
.kchat .live > .krow.out { animation-name: ksend; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 100px; background: var(--bg-soft); width: max-content; max-width: 100%; }
.seg button {
  border: 0; cursor: pointer; font: 600 14px/1 'Onest', system-ui, sans-serif; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 100px; background: transparent; color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ——— Серверы ——— */

.route { display: grid; justify-items: center; }
.route svg { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.route text { font-family: 'Onest', system-ui, sans-serif; }
.route .r-eu { font-size: 14px; fill: rgba(255, 255, 255, .6); }
.route .r-city { font-size: 16px; font-weight: 600; fill: #fff; }
.route .r-town { font-size: 12.5px; fill: rgba(255, 255, 255, .72); }
/* Карта: страна чуть светлее фона, Иссык-Куль — ещё светлее */
.r-land { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .24); stroke-width: 1.2; stroke-linejoin: round; }
.r-lake { fill: rgba(255, 255, 255, .1); }
/* Внутри страны — золотом и коротко; через зарубежный сервер — пунктиром и далеко */
.r-near path { fill: none; stroke: #F2CC83; stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.r-near .r-main { stroke-width: 3; opacity: 1; }
.r-far path { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.6; stroke-dasharray: 4 7; stroke-linecap: round; }
.r-packet, .r-trail { fill: #fff; }
.r-tail-gold circle { fill: #F2CC83; }
.r-far-dot { fill: rgba(255, 255, 255, .7); }
.r-abroad { fill: #17161D; stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.r-hub { fill: #F2CC83; }
.r-town-dot { fill: #F2CC83; stroke: #17161D; stroke-width: 2; }
.r-pulse { fill: #F2CC83; transform-box: fill-box; transform-origin: center; animation: kring 2.4s ease-out infinite; }
.route-legend { margin-top: 8px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: rgba(255, 255, 255, .72); }
.route-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.route-legend i { width: 22px; height: 3px; border-radius: 2px; background: var(--gold); }
.route-legend i.dash { height: 0; border-radius: 0; background: none; border-top: 2px dashed rgba(255, 255, 255, .45); }
.points { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.point { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.point b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--gold); }
.point p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .68); text-wrap: pretty; }

/* ——— Семья далеко ——— */

.fam { overflow: hidden; }
.fam .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(48px, 6vw, 96px); }
.fam-art { position: relative; width: max-content; max-width: 100%; margin: 0 auto; display: grid; justify-items: center; }
.fam-yurt { position: absolute; left: -120px; bottom: 70px; width: 150px; height: 150px; color: var(--gold); opacity: .9; }
.fam-route { position: absolute; right: -112px; top: 38%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 20px 40px -18px rgba(23, 22, 29, .35); animation: kfloat 6s ease-in-out infinite; }
.fam-route svg { width: 18px; height: 18px; color: var(--red); }
/* Экран звонка приложения (call_screen.dart, тёмная тема): градиент #1B1F2A → #0A0A0A, имя 26,
   таймер 15, узоры ключа шифрования 28 в «таблетке», барс 128, кнопки 64 и красная 72. */
.call-phone { position: relative; --s: .74; }
.call-phone .home-ind { background: #fff; }
.cs { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(#1b1f2a, #0a0a0a); color: #eaeceb; }
.cs .sb { color: #fff; }
.cs-min { position: absolute; top: 71px; left: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .24); color: #fff; display: grid; place-items: center; }
.cs-min svg { width: 20px; height: 20px; }
.cs-head { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }
.cs-name { font-size: 26px; font-weight: 500; line-height: 1.2; }
.cs-time { margin-top: 6px; font-size: 15px; line-height: 1.2; color: #8e8888; font-variant-numeric: tabular-nums; }
.cs-key { position: relative; margin-top: 8px; }
.cs-code { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .1); }
.cs-code img { width: 28px; height: 28px; }
.cs-lock { width: 14px; height: 14px; margin-right: 2px; color: #8e8888; }
/* Подсказка под узорами в начале разговора, как в приложении: уголок к узорам */
.cs-hint { position: absolute; top: 44px; left: 50%; translate: -50% 0; margin-top: 6px; padding: 6px 12px; border-radius: 12px; background: rgba(42, 48, 61, .94); color: #eaeceb; font-size: 14px; line-height: 1.2; white-space: nowrap; animation: khint 12s ease infinite; }
.cs-hint::before { content: ''; position: absolute; left: 50%; top: -6px; margin-left: -7px; border: 0 solid transparent; border-width: 0 7px 6px; border-bottom-color: rgba(42, 48, 61, .94); }
.cs-ava { margin-top: 40px; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.cs-ctrl { margin-top: auto; padding-bottom: 66px; display: grid; justify-items: center; gap: 28px; }
.cs-row { width: 375px; display: flex; justify-content: space-evenly; }
.cs-btn { display: grid; justify-items: center; gap: 8px; }
.cs-btn i { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .24); color: #fff; display: grid; place-items: center; }
.cs-btn svg { width: 27px; height: 27px; }
.cs-btn small { font-size: 12px; line-height: 1.2; color: #8e8888; }
.cs-end i { width: 72px; height: 72px; background: #ff453a; }
.cs-end svg { width: 30px; height: 30px; }
.check-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.check-chips > span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--gold-line); font-weight: 600; font-size: 15px; color: var(--ink); }
.check-chips svg { width: 18px; height: 18px; color: var(--red); }

/* ——— Группы и помощник ——— */

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: stretch; }
.bento .kicker { margin-bottom: 16px; }
.card-w { background: #fff; border-radius: 36px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 1px 0 rgba(23, 22, 29, .04); }
.card-text { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.card-w .seg { margin-top: 26px; flex-wrap: nowrap; gap: 4px; }
.card-w .seg button { padding: 11px 18px; font-size: 15px; letter-spacing: 0; }
.gr-box { margin-top: 20px; padding: 8px; border-radius: 24px; background: var(--bg-soft); }
.gr-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.gr-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.gr-ava .orn { width: 28px; height: 28px; color: var(--gold); }
.gr-head > span:last-child { display: grid; line-height: 1.25; }
.gr-head b { font-weight: 600; font-size: 17px; color: var(--ink); }
.gr-head small { font-size: 13px; color: var(--muted); }
.gr-rows { display: grid; gap: 6px; }
.gr-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; }
.gr-rows.anim .gr-row { animation: kmsg .5s var(--ease) both; }
.gr-rows.anim .gr-row:nth-child(2) { animation-delay: 90ms; }
.gr-rows.anim .gr-row:nth-child(3) { animation-delay: 180ms; }
.gr-row > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 2px; }
.gr-row b { font-weight: 600; font-size: 15px; color: var(--ink); }
.gr-row .last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-row .poll { margin-top: 2px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.gr-row .poll i { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.gr-row .poll i::before { content: ''; display: block; width: 72%; height: 100%; border-radius: 6px; background: var(--red); }
.ybadge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 100px; background: #fee500; color: var(--text); font-weight: 600; font-size: 13px; display: inline-grid; place-items: center; flex: none; }

.ai { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px); border-radius: 36px; background: var(--ink); color: #fff; }
.ai > * { position: relative; }
.ai > .ai-halo { position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; color: var(--gold); opacity: .08; animation: kspin 60s linear infinite; }
.ai .card-text { color: rgba(255, 255, 255, .68); }
.ai-chat { margin-top: auto; padding-top: 32px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.ai-q { align-self: flex-end; max-width: 82%; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: #278eff; color: #fff; font-size: 16px; line-height: 1.4; transform-origin: 100% 100%; }
.ai-row { display: flex; align-items: flex-end; gap: 10px; }
.ai-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--red-deep); display: grid; place-items: center; flex: none; }
.ai-ava .orn { width: 22px; height: 22px; color: var(--gold); }
.ai-typing .ai-ava .orn { animation: kspin 2s linear infinite; }
.ai-typing .dots { padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, .1); color: #fff; }
.ai-a { max-width: 82%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; }
.ai-a small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--red-ink); }
.ai-chat.live .ai-q, .ai-chat.live .ai-answer { animation: kmsg .45s var(--ease) both; }
.ai-chat.live .ai-typing { animation: kmsg .3s ease both; }
.ai-answer { transform-origin: 0 100%; }

/* ——— Возможности ——— */

.ft-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.ft-head .h2 { max-width: 760px; }
.ft-komuz { width: clamp(80px, 10vw, 128px); height: clamp(80px, 10vw, 128px); color: var(--gold); animation: kfloat 7s ease-in-out infinite; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 20px; }
.feat { padding: 28px 22px 30px; border-top: 1px solid var(--line); transition: background-color .3s ease, border-radius .3s ease; }
.feat:hover { background: var(--cream); border-radius: 24px; }
.feat-top { display: flex; align-items: center; justify-content: space-between; }
.feat .tile { width: 48px; height: 48px; border-radius: 16px; }
.feat .tile svg { width: 24px; height: 24px; }
.feat-n { font-size: 13px; font-weight: 600; color: #b5b6b8; font-variant-numeric: tabular-nums; }
.feat h3 { margin-top: 22px; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.feat p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ——— Для бизнеса ——— */

.biz { position: relative; isolation: isolate; overflow: hidden; }
.biz .doodles { opacity: .06; }
.biz .split { gap: clamp(64px, 7vw, 100px); }
.biz .h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; }
.biz-lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 20px; }
.ticks li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ticks .ti { width: 44px; height: 44px; border-radius: 14px; background: rgba(242, 204, 131, .14); color: var(--gold); display: grid; place-items: center; }
.ticks .ti svg { width: 22px; height: 22px; }
.ticks b { display: block; font-size: 18px; font-weight: 600; }
.ticks li > span:last-child > span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .68); }

.org { position: relative; width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; }
.org-card { background: #fff; color: var(--text); border-radius: 32px; padding: 28px 26px 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.org-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.org-ava { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 700; background: linear-gradient(135deg, #3aa36b, #1f6f47); }
.org-name { margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.org-cat { margin-top: 4px; font-size: 15px; color: var(--muted); }
.org-open { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; background: #e6f6ec; color: #1f8a4c; font-size: 14px; font-weight: 500; }
.org-open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.org-write { margin-top: 18px; width: 100%; min-height: 48px; border-radius: 100px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.org-info { margin-top: 18px; display: grid; }
.org-info > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; font-size: 15px; }
.org-info > div + div { border-top: 1px solid var(--line); }
.org-info i { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.org-info svg { width: 20px; height: 20px; }
.org-info small { display: block; font-size: 13px; color: var(--muted); }
.org-bubble { position: absolute; z-index: 2; max-width: 230px; padding: 12px 16px; font-size: 15px; line-height: 1.4; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); }
.org-ask { left: -72px; top: 36px; align-self: flex-end; background: #278eff; color: #fff; border-radius: 20px 20px 6px 20px; }
.org-reply { right: -56px; bottom: -34px; align-self: flex-start; background: #fff; color: var(--text); border-radius: 20px 20px 20px 6px; }
.org-reply small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: #1f8a4c; }

/* ——— Безопасность ——— */

.sc-more { margin-top: 16px; font-size: clamp(15px, 1.25vw, 17px); }
.sc-btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.cipher-card { padding: clamp(22px, 3vw, 34px); border-radius: 32px; background: var(--ink); color: #fff; box-shadow: 0 40px 80px -40px rgba(23, 22, 29, .55); }
.cc-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.cc-msg { margin-top: 10px; display: inline-block; max-width: 100%; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: #278eff; font-size: 17px; line-height: 1.4; }
.cc-div { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.cc-div i { flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.cc-lock { width: 44px; height: 44px; border-radius: 50%; background: rgba(242, 204, 131, .14); color: var(--gold); display: grid; place-items: center; animation: kpulse 2.2s ease-in-out infinite; }
.cc-lock svg { width: 20px; height: 20px; }
.cc-cipher {
  margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  font: 500 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--gold); word-break: break-all;
}
.sc-grid { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.sc-item { padding: 26px 24px 28px; border-radius: 28px; background: #fff; }
.sc-item > span { width: 46px; height: 46px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.sc-item svg { width: 22px; height: 22px; }
.sc-item h3 { margin-top: 18px; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.sc-item p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ——— Ашар ——— */

.ashar { position: relative; overflow: hidden; isolation: isolate; }
/* Фон — узор шырдака: розетки «кочкор мүйүз» (assets/img/shyrdak.svg) маской, цвет — золото. */
.ashar-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--gold); opacity: .6;
  -webkit-mask: url(/assets/img/shyrdak.svg) 50% 0 / 200px 200px repeat;
  mask: url(/assets/img/shyrdak.svg) 50% 0 / 200px 200px repeat;
}
.ashar > .band { position: absolute; left: 0; right: 0; top: 0; }
.ashar > .band-end { top: auto; bottom: 0; }
.ashar .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
/* Под текстом узор почти гаснет (мягкий край — тенью), чтобы строки читались */
.as-copy { position: relative; }
.as-copy::before {
  content: ""; position: absolute; inset: -12px -16px; z-index: -1; pointer-events: none;
  border-radius: 40px; background: var(--gold-soft); box-shadow: 0 0 48px 36px var(--gold-soft); opacity: .88;
}
.as-copy .lead + .lead { margin-top: 18px; }
.as-quote { position: relative; margin: clamp(48px, 6vw, 80px) 0 0; padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: #fff; box-shadow: 0 40px 80px -40px rgba(132, 29, 50, .3); }
/* Строчка по краю, как стёжка на войлоке шырдака */
.as-quote::before { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--gold); border-radius: 28px; pointer-events: none; }
.as-quote .quote-mark { width: 44px; margin-bottom: 22px; stroke: var(--red-ink); }
.as-quote blockquote { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px clamp(28px, 4vw, 56px); }
.as-quote p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--body-2); text-wrap: pretty; }
.as-quote p b { font-weight: 600; color: var(--ink); }
.as-quote figcaption { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.as-quote figcaption i { width: 40px; height: 2px; flex: none; background: var(--red-ink); }
.as-quote figcaption b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.as-quote figcaption span span { font-size: 15px; color: var(--muted); }
.ideas { display: grid; gap: 12px; }
.idea { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 22px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(23, 22, 29, .04); }
.idea > span { min-width: 0; flex: 1; display: grid; gap: 6px; }
.idea b { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.idea small { font-size: 14px; color: var(--muted); }
.st { justify-self: start; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.st-work { background: #e6f6ec; color: #1f8a4c; }
.st-plan { background: var(--gold-soft); color: #8a5a00; }
.st-new { background: var(--red-soft); color: var(--red-ink); }
.vote {
  flex: none; width: 68px; height: 72px; border: 0; border-radius: 20px; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 2px;
  font: 700 17px/1 'Onest', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  background: var(--gold-soft); color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.vote svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.vote[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
.vote.bump { transform: scale(1.08); }

/* ——— Цитата ——— */

.quote { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 168px) 0; background: var(--red-deep); color: #fff; }
.quote-horns { position: absolute; left: -80px; top: 50%; z-index: -1; width: 420px; height: 420px; margin-top: -210px; color: var(--gold); opacity: .1; }
.quote figure { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
/* Кавычка — SVG, а не символ шрифта: «ёлочки» сидят на середине строчных, и при сжатой строке рисунок
   залезал на первую строку цитаты. */
.quote-mark { display: block; width: clamp(46px, 4.6vw, 64px); height: auto; margin-bottom: clamp(18px, 2.4vw, 28px); fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.quote blockquote { margin: 0; font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.quote figcaption { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.quote figcaption i { width: 40px; height: 2px; flex: none; background: var(--gold); }
.quote figcaption b { display: block; font-size: 18px; font-weight: 600; }
.quote figcaption span span { font-size: 15px; color: rgba(255, 255, 255, .7); }

/* ——— Скачать ——— */

.dl { padding: clamp(96px, 12vw, 160px) 0; text-align: center; }
.dl-in { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); display: grid; justify-items: center; }
.dl-logo { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.dl-logo .orn { position: absolute; inset: 0; color: var(--gold); opacity: .8; animation: kspin 30s linear infinite; }
.dl-logo img { position: relative; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 24px 48px -20px rgba(132, 29, 50, .6); }
.dl h2 { margin-top: 28px; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.dl-text { margin-top: 20px; max-width: 620px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.dl .stores { margin-top: 34px; justify-content: center; }
.dl-contact { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* ——— Подвал ——— */

.ftr { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .66); font-size: 15px; }
.ftr .band { background: var(--red); opacity: .9; }
.ftr-grid { padding-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.ftr-brand { display: grid; gap: 16px; align-content: start; }
.ftr .brand { color: #fff; justify-self: start; }
.ftr-brand p { max-width: 280px; line-height: 1.55; text-wrap: pretty; }
.ftr-h { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s ease; }
.ftr a:hover { color: #fff; }
.ftr-big {
  margin-top: 56px; font-weight: 700; font-size: clamp(72px, 17vw, 240px); line-height: .8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 204, 131, .35); white-space: nowrap; -webkit-user-select: none; user-select: none;
}
.ftr-bottom { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .5); }

/* ——— Внутренние страницы: первый экран ——— */

.page-hero { position: relative; overflow: hidden; padding: 144px 0 64px; background: var(--cream); }
.page-hero > .wrap { position: relative; }
.page-orn { position: absolute; color: var(--gold); }
.crumbs { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page-lead { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }
.page-main { background: #fff; padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 9vw, 120px); }

/* ——— Помощь ——— */

.help-orn { right: -120px; top: 40px; width: 520px; height: 520px; opacity: .35; animation: kspin 120s linear infinite; }
.help-h1 { font-size: clamp(56px, 10vw, 148px); line-height: .92; letter-spacing: -0.055em; }
.search {
  margin-top: 34px; max-width: 620px; min-height: 60px; padding: 0 20px; border-radius: 100px;
  display: flex; align-items: center; gap: 12px; background: #fff; color: var(--muted);
  box-shadow: 0 1px 0 rgba(23, 22, 29, .04), 0 20px 40px -24px rgba(132, 29, 50, .3);
}
.search:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 20px 40px -24px rgba(132, 29, 50, .3); }
.search svg { width: 22px; height: 22px; flex: none; }
.search input {
  flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 17px/1 'Onest', system-ui, sans-serif; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #9a9b9d; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.cats { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: background-color .2s ease; }
.cats a:hover { background: var(--gold-soft); color: var(--ink); }
.cats a span + span { color: #b5b6b8; font-weight: 500; }

.help-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-group { margin-bottom: 48px; }
.faq-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.faq-group-h h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.faq-list { display: grid; gap: 8px; }
.faq { border-radius: 20px; background: var(--bg-soft); transition: background-color .25s ease; }
.faq[open] { background: var(--cream); box-shadow: inset 0 0 0 1px var(--gold-line); }
.faq.warn { background: var(--red-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  font: 600 17px/1.35 'Onest', system-ui, sans-serif; color: var(--ink); border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span:first-child { flex: 1; }
.faq-plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; color: var(--ink); transition: transform .3s var(--ease), background-color .25s ease, color .25s ease; }
.faq-plus svg { width: 16px; height: 16px; }
.faq[open] .faq-plus { transform: rotate(45deg); background: var(--ink); color: var(--gold); }
.ans { padding: 0 22px 22px; color: var(--body-2); font-size: 16.5px; line-height: 1.65; }
.faq[open] .ans { animation: kopen .3s ease both; }
.ans p { margin: 0 0 10px; text-wrap: pretty; }
.ans ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; counter-reset: n; }
.ans ol li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ans ol li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ans-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.ans-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.ans-links a:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.ans-links svg { width: 14px; height: 14px; }
.faq-empty { padding: 40px 28px; border-radius: 24px; background: var(--cream); text-align: center; }
.faq-empty b { display: block; font-size: 22px; color: var(--ink); }
.faq-empty p { margin-top: 8px; color: var(--muted); }

.help-aside { display: grid; gap: 16px; }
.ask { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 28px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.ask > * { position: relative; }
.ask > .ask-orn { position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; color: var(--gold); opacity: .1; }
.ask h2 { color: #fff; font-size: 26px; letter-spacing: -0.025em; }
.ask p { margin-top: 12px; font-size: 16px; line-height: 1.6; }
.ask .btn { margin-top: 22px; width: 100%; min-height: 50px; font-size: 16px; }
.ask .ask-phone { margin-top: 14px; text-align: center; font-size: 15px; }
.ask .ask-phone a { color: var(--gold); }
.side-links { display: grid; gap: 4px; padding: 22px 24px; border-radius: 28px; background: var(--cream); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 1px solid rgba(23, 22, 29, .07); }
.side-links a:hover { color: var(--red-ink); }
.side-links svg { width: 16px; height: 16px; flex: none; color: var(--red-ink); }

/* ——— Удаление аккаунта ——— */

.del-hero { padding-bottom: 72px; }
.del-hero .page-lead { max-width: 680px; }
.del-orn { right: -60px; top: 70px; width: 360px; height: 360px; opacity: .4; }
.del-h1 { max-width: 900px; font-size: clamp(48px, 8vw, 116px); line-height: .94; letter-spacing: -0.05em; text-wrap: balance; }
.del-main { padding-top: clamp(56px, 7vw, 96px); }
.del-grid { display: grid; gap: 20px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.box { padding: clamp(26px, 3.4vw, 40px); border-radius: 32px; }
.box-ink { background: var(--ink); color: #fff; }
.box-cream { background: var(--cream); display: flex; flex-direction: column; }
.box-red { background: var(--red-soft); }
.box-soft { background: var(--bg-soft); }
.box-n { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.box-cream .box-n { color: var(--red-ink); }
.box > h2 { margin: 8px 0 22px; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; }
.box-ink > h2 { color: #fff; }
.box-cream > h2 { margin-bottom: 18px; }
.box-cream p { color: var(--body-2); line-height: 1.65; text-wrap: pretty; }
.box-cream p + p { margin-top: 12px; }
.num-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: n; }
.num-steps li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); font-size: 16.5px; line-height: 1.45; }
.num-steps li::before { content: counter(n); width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.box-warn { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(219, 52, 61, .18); box-shadow: inset 0 0 0 1px rgba(219, 52, 61, .4); font-size: 15.5px; line-height: 1.55; color: #ffd9dc; }
.box-actions { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.box-head h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.box-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.box-ic svg { width: 20px; height: 20px; }
.box-red .box-ic { background: var(--red); color: #fff; }
.box-soft .box-ic { background: var(--ink); color: var(--gold); }
.xlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xlist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.55; color: var(--body-2); }
.xlist svg { width: 20px; height: 20px; margin-top: 3px; }
.box-red .xlist svg { color: var(--red); }
.box-soft .xlist svg { color: var(--ink); }
.box-note { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--body-2); text-wrap: pretty; }
.box-note + .box-note { margin-top: 12px; }
.box-red .box-note { color: var(--red-deep); }

/* ——— Документы: соглашение, политика ——— */

.legal-hero { padding: 136px 0 56px; }
.legal-orn { right: -40px; bottom: -40px; width: 300px; height: 300px; opacity: .4; }
.doc-switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--gold-line); width: max-content; max-width: 100%; }
.doc-switch a { padding: 11px 18px; border-radius: 100px; font-weight: 600; font-size: 14px; line-height: 1.15; text-align: center; color: var(--ink); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.doc-switch a:hover { background: var(--cream); color: var(--ink); }
.doc-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-h1 { max-width: 980px; font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.05em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.meta-pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pills span { padding: 6px 12px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--gold-line); font-size: 14px; font-weight: 500; color: var(--muted-2); }
.legal-lead { margin-top: 22px; max-width: 760px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--body-2); text-wrap: pretty; }
.ru-only { margin-top: 20px; max-width: 760px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.5; }
.ru-only .orn { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
html[lang="ru"] .ru-only { display: none; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { padding: 18px 14px; border-radius: 24px; background: var(--cream); }
.toc h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 10px; border-radius: 12px; color: #26262b; text-decoration: none; font-size: 15px; line-height: 1.4; transition: background-color .2s ease, color .2s ease; }
.toc a::before { content: counter(toc); color: #9a9b9d; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--cream); color: #26262b; }
.toc a.on { background: var(--ink); color: #fff; font-weight: 600; }
.toc a.on::before { color: var(--gold); }

.prose { max-width: 780px; font-size: 17px; line-height: 1.7; color: #26262b; }
.prose > section { padding-top: 8px; }
.prose > section + section { margin-top: 48px; }
.prose h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.025em; }
.prose h3 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol, .prose .note, .prose .table-scroll { margin: 0 0 14px; }
.prose p { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { padding: 18px 22px; border-radius: 18px; background: var(--bg-soft); font-size: 16px; line-height: 1.6; }
.note.warn { background: var(--red-soft); }
.prose .todo { background: #fff3c4; border-radius: 6px; padding: 1px 6px; font-weight: 600; color: #6b4e00; }

/* ——— Приглашение kandai.chat/j/<код> ——— */

.invite {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 72px 16px 32px; background: var(--red-deep);
}
.invite-halo { position: absolute; left: 50%; top: 50%; z-index: -1; width: 900px; height: 900px; margin: -450px 0 0 -450px; color: var(--gold); opacity: .08; animation: kspin 120s linear infinite; }
.invite > .langs { position: absolute; top: 18px; right: 18px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.invite > .langs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.invite-card { width: 100%; max-width: 500px; padding: 40px 32px 30px; border-radius: 36px; background: #fff; text-align: center; box-shadow: 0 40px 80px -30px rgba(30, 0, 8, .6); animation: krise .7s var(--ease) both; }
.invite-logo { position: relative; display: grid; place-items: center; width: 128px; height: 128px; margin: 0 auto 18px; }
.invite-logo .orn { position: absolute; inset: 0; color: var(--gold); animation: kspin 24s linear infinite; }
.invite-logo img { position: relative; width: 72px; height: 72px; border-radius: 18px; }
.invite h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.invite-lead { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.invite-link { margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 100px; background: var(--bg-soft); }
.invite-link code { flex: 1; min-width: 0; text-align: left; font: 500 15px/1.3 'Onest', system-ui, sans-serif; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-copy { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 100px; cursor: pointer; font: 600 15px/1 'Onest', system-ui, sans-serif; background: var(--ink); color: #fff; transition: background-color .25s ease, color .25s ease; }
.invite-copy.done { background: #1f8a4c; }
.invite-bad { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--red-soft); color: var(--red-deep); font-size: 15px; line-height: 1.5; }
.invite-steps { list-style: none; counter-reset: n; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.invite-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 15.5px; line-height: 1.45; color: #26262b; }
.invite-steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.invite-get { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.invite-get b { color: var(--ink); font-size: 16px; }
.invite-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: rgba(255, 255, 255, .75); text-align: center; }
.invite-foot a { color: #fff; }

/* ——— 404 ——— */

.nf { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 140px var(--gutter) 96px; text-align: center; }
.nf-code { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1vw, 12px); font-weight: 700; font-size: clamp(110px, 20vw, 240px); line-height: 1; letter-spacing: -0.06em; color: var(--red); }
.nf-code .orn { width: .78em; height: .78em; color: var(--gold); animation: kspin 10s linear infinite; }
.nf h1 { margin-top: 18px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
.nf p { margin: 12px auto 0; max-width: 440px; color: var(--muted); text-wrap: pretty; }
.nf-btns { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ——— Появление при прокрутке (site.js добавляет .rv только тем, кто ниже экрана) ——— */

.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }

/* ——— Адаптив ——— */

@media (min-width: 980px) {
  .hdr-menu { display: none !important; }
}
@media (min-width: 1000px) {
  .help-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .help-aside { position: sticky; top: 96px; }
  .doc { grid-template-columns: 280px minmax(0, 1fr); }
  .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 0; border-radius: 0; background: transparent; }
}
@media (max-width: 1099px) {
  .hero-art { height: 540px; }
  .hero-phones .phone-a { --s: .66; }
  .hero-phones .phone-b { --s: .62; }
}
@media (max-width: 1063px) {
  .hero-copy { padding-bottom: 24px; }
}
@media (max-width: 999px) {
  .org-bubble { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .org-ask { margin-bottom: 12px; }
  .org-reply { margin-top: 12px; }
}
@media (max-width: 979px) {
  .hdr-nav, .hdr-cta { display: none; }
  .langs { margin-left: auto; }
  .burger { display: grid; }
}
@media (max-width: 639px) {
  .hero-art { height: 440px; }
  .hero-phones .phone-a { --s: .62; bottom: -150px; transform: translateX(-50%); }
  .hero-phones .phone-b { display: none; }
  .stores { flex-wrap: nowrap; gap: 10px; }
  .store { flex: 1 1 0; min-width: 0; padding: 8px 12px; gap: 9px; justify-content: center; }
  .store-logo { width: 22px; height: 22px; }
  .store b { font-size: 17px; }
  .store-win, .dl-win { display: none; } /* установщик для Windows на телефоне не нужен */
  .tr-horns { right: -24px; width: 96px; height: 96px; }
  .tr-phone { --s: .72; }
  .route .r-eu { font-size: 18px; }
  .route .r-city { font-size: 21px; }
  .route .r-town { font-size: 17px; }
  .fam-yurt { left: -40px; bottom: 120px; width: 100px; height: 100px; }
  .call-phone { --s: .66; }
  .fam-route { position: relative; right: auto; top: auto; margin-top: 18px; font-size: 14px; padding: 8px 14px 8px 10px; animation: none; }
  .idea { padding: 16px 14px 16px 18px; gap: 12px; }
  .ashar-bg { -webkit-mask-size: 150px 150px; mask-size: 150px 150px; }
  .as-quote { border-radius: 28px; }
  .as-quote::before { inset: 8px; border-radius: 21px; }
  .invite-card { padding: 32px 22px 26px; }
}
@media (max-width: 480px) {
  .doc-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .doc-switch a { display: flex; align-items: center; justify-content: center; padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .tr-phone { --s: .68; }
  .hdr-in { gap: 12px; }
  .invite > .langs { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}

@media print {
  .hdr, .ftr, .toc, .skip, .doc-switch { display: none !important; }
  .page-hero { padding: 0 0 24px; background: none; }
  .page-orn { display: none; }
  .page-main { padding: 0; }
  .doc { display: block; }
  body { background: #fff; font-size: 12pt; }
  a { color: inherit; }
}
