/* Йога тишины — макет Mini App, v2: белая база + liquid glass (iOS 26) */
:root {
  --bg: #ffffff;
  --surface: #f4f5f2;
  --surface-2: #eceee9;
  --ink: #141a16;
  --ink-2: #3a453d;
  --muted: #858e87;
  --line: rgba(20, 26, 22, 0.07);
  --pine: #2f4a3a;
  --sage: #8fa691;
  --sage-soft: #e9f0e7;
  --coral: #ff7a59;
  --coral-soft: #fff0eb;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-dark: rgba(18, 26, 21, 0.28);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 10px 30px -10px rgba(20, 30, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 2px rgba(20, 26, 22, 0.04), 0 8px 24px -12px rgba(20, 26, 22, 0.12);
  --sans: 'Onest', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --pad: 18px;
  /* Безопасные зоны: вырез камеры/«чёлка», полоска «домой», системные панели Android и шапка Telegram.
     Telegram подставляет --tg-*-inset сам (telegram-web-app.js), браузер — env(). */
  --safe-top: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --top: calc(var(--safe-top) + 14px);
}
/* В рамке телефона на компьютере — имитация статус-бара и полоски «домой» iPhone */
html:not(.bare) .phone { --safe-top: 38px; --safe-bottom: 12px; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: #e9ebe7; display: flex; justify-content: center; align-items: center; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
img { display: block; max-width: 100%; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; display: inline-block; font-variation-settings: 'FILL' 0, 'wght' 350; user-select: none; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400; }

/* Стекло */
.glass { background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.glass-d { background: var(--glass-dark); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); color: #fff; }

/* ---------- Рамка ---------- */
.phone { position: relative; width: 390px; height: 844px; max-height: calc(100vh - 32px); background: var(--bg); border-radius: 48px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(20, 30, 24, 0.45), 0 0 0 9px #111, 0 0 0 10px #333; }
html.bare body { display: block; background: var(--bg); }
html.bare .phone { width: 100%; height: 100vh; height: var(--tg-viewport-height, 100dvh); max-height: none; border-radius: 0; box-shadow: none; }
html.bare .stand { display: none; }
/* Планшет и Telegram на компьютере: содержимое не растягивается во всю ширину */
html.bare .screen:not(#scr-splash) { padding-inline: max(0px, calc((100% - 600px) / 2)); }
html.bare .float-top { padding-inline: max(var(--pad), calc((100% - 600px) / 2 + var(--pad))); }
html.bare .cta-bar { left: max(10px, calc((100% - 580px) / 2)); right: max(10px, calc((100% - 580px) / 2)); }
html.bare .bottom-sheet { left: max(8px, calc((100% - 600px) / 2)); right: max(8px, calc((100% - 600px) / 2)); }
.phone { container-type: size; }

.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg); scrollbar-width: none; visibility: hidden; pointer-events: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { display: none; }
.screen.active { visibility: visible; pointer-events: auto; z-index: 2; }
.screen.leaving { visibility: visible; z-index: 1; }
.screen.under { visibility: visible; z-index: 0; }
.screen.leaving.on-top { z-index: 3; }
.screen.tabbed { padding-bottom: calc(var(--safe-bottom) + 100px); }
.wrap { padding: 0 var(--pad); }

/* ---------- Типографика ---------- */
.h1 { font-size: 34px; font-size: clamp(27px, 8.7cqw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.num { font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.link { font-size: 13px; font-weight: 500; color: var(--coral); display: inline-flex; align-items: center; gap: 2px; }
.link .ms { font-size: 18px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.btn .ms { font-size: 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 122, 89, .7); }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-wide { width: 100%; height: 56px; font-size: 16px; }
.btn-go { justify-content: space-between; padding: 0 6px 0 24px; }
.btn-go .ar { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.btn-coral.btn-go .ar { color: var(--coral); }
.circle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; }
.circle .ms { font-size: 21px; }
.circle .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* ---------- Главная: фото-шапка ---------- */
.home-hero { position: relative; height: 332px; height: clamp(240px, 39cqh, 400px); border-radius: 0 0 34px 34px; overflow: hidden; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.home-hero > img { opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 8s ease-out; }   /* несколько фото — плавная смена */
.home-hero > img.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .home-hero > img { transform: none; transition: opacity .6s; } }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 13, .55) 0%, rgba(10, 18, 13, .3) 18%, rgba(10, 18, 13, .1) 40%, rgba(10, 18, 13, .4) 60%, rgba(10, 18, 13, .8) 100%); }
.home-hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; gap: 8px; padding: var(--top) var(--pad) 0; }
.hero-top .brand { flex: 1; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.hero-top .brand .circle { width: 34px; height: 34px; }
.hero-top .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .8); }
.city-pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.city-pill .ms { font-size: 17px; }
.hero-body { position: absolute; left: var(--pad); right: var(--pad); bottom: 20px; color: #fff; }
.hero-quote { text-shadow: 0 1px 12px rgba(0,0,0,.4); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.25; opacity: .92; margin-bottom: 10px; max-width: 290px; }
.hero-body .h1 { color: #fff; }
.hero-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.stat-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.stat-pill i { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }
.stat-pill .ms { font-size: 17px; margin-left: -4px; }

/* Разделы и карточки главной */
.seg { display: flex; gap: 6px; padding: 16px var(--pad) 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface); transition: .2s; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button small { font-size: 11px; opacity: .55; margin-left: 4px; }

.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 14px var(--pad) 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 168px; height: 226px; width: clamp(140px, 43cqw, 210px); height: clamp(180px, min(58cqw, 28cqh), 280px); border-radius: 28px; overflow: hidden; position: relative; scroll-snap-align: start; text-align: left; box-shadow: var(--shadow); }
.tile.wide { flex: 1 0 100%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:active img { transform: scale(1.04); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 12, .72), rgba(10, 16, 12, 0) 58%); }
.tile .tag { position: absolute; top: 12px; left: 12px; z-index: 1; height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; }
.tile .body { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.tile .body b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.tile .body span { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; opacity: .92; }
.tile .body .ar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.tile .body .ar .ms { font-size: 18px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px var(--pad) 0; }
.qcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--surface); text-align: left; min-width: 0; }
.qcard .ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #fff; flex: none; }
.qcard img.ic { object-fit: cover; }
.qcard > span:last-child { min-width: 0; flex: 1; }
.qcard b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard small { font-size: 12px; color: var(--muted); }
.mini-bar { height: 3px; border-radius: 3px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--coral); border-radius: 3px; }

/* ---------- Таббар: стеклянная капсула ---------- */
.tabbar { position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 12px); transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 999px; transition: transform .35s ease, opacity .3s; }
.tabbar.hidden { transform: translate(-50%, 140%); opacity: 0; }
.tabbar button { height: 52px; min-width: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.tabbar button .ms { font-size: 24px; }
.tabbar button .lbl { display: none; }
.tabbar button.on { background: var(--ink); color: #fff; padding: 0 18px 0 16px; }
.tabbar button.on .lbl { display: inline; white-space: nowrap; }
.tabbar button.on .ms { font-variation-settings: 'FILL' 1; }

/* ---------- Верх внутренних вкладок ---------- */
.page-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: calc(var(--top) + 6px) var(--pad) 0; }
.page-top .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.city-select { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; margin-top: 10px; }
.city-select .ms { font-size: 17px; }

/* ---------- Календарь ---------- */
.cal { margin: 16px var(--pad) 0; padding: 16px 12px 14px; border-radius: 30px; background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.cal-head b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.cal-head .nav { display: flex; gap: 6px; }
.cal-head .nav button { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; text-align: center; }
.cal-grid .wd { font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.cal-grid .wd.we { color: var(--coral); }
.cday { position: relative; height: 44px; margin: 0 2px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.cday.out { color: #c4c9c3; }
.cday.has { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.cday .bars { display: flex; gap: 2px; margin-top: 3px; }
.cday .bars i { width: 10px; height: 3px; border-radius: 2px; }
.cday.booked { background: var(--coral); color: #fff; box-shadow: 0 8px 16px -8px rgba(255, 122, 89, .9); }
.cday.booked .bars i { background: rgba(255, 255, 255, .85) !important; }
.cday.today::before { content: 'сегодня'; position: absolute; top: -9px; font-size: 8px; letter-spacing: .04em; color: var(--coral); font-weight: 600; }
.cday.sel { background: var(--ink); color: #fff; }
.cday.sel .bars i { background: #fff !important; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 12px 6px 0; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 4px; border-radius: 2px; }
.legend i.bk { width: 12px; height: 12px; border-radius: 4px; background: var(--coral); }
.c-yoga { background: var(--sage); }
.c-retreat { background: #6f8fb0; }
.c-tea { background: #c79a5b; }
.c-meditation { background: #a58bc2; }

.day-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px var(--pad) 10px; }
.stack { display: grid; gap: 10px; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 24px; background: var(--surface); width: 100%; text-align: left; }
.row-card > img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; }
.row-card .t { flex: 1; min-width: 0; }
.row-card .t b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.row-card .t small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.row-card .t small .ms { font-size: 14px; }
.row-card .time { text-align: right; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.row-card .time small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.row-card .kind { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.empty { padding: 26px; text-align: center; border-radius: 24px; background: var(--surface); }

/* ---------- Аватары-стопка ---------- */
.faces { display: flex; align-items: center; }
.faces > * { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -9px; flex: none; }
.faces > *:first-child { margin-left: 0; }
.faces .ini { display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); font-size: 13px; font-weight: 600; }
.faces .more { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }

/* ---------- Экран практики ---------- */
.p-hero { position: relative; height: 420px; height: clamp(300px, 52cqh, 560px); }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 12, .3), rgba(10, 16, 12, 0) 30%, rgba(10, 16, 12, .7)); }
.float-top { position: absolute; top: 0; left: 0; right: 0; z-index: 22; display: flex; align-items: center; gap: 8px; padding: var(--top) var(--pad) 10px; transition: background .25s, box-shadow .25s, transform .3s, opacity .3s; }
.float-top.hidden { opacity: 0; pointer-events: none; }
.float-top .circle { background: rgba(18, 26, 21, .3); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .25s, color .25s; }
.float-top .circle.ghost { visibility: hidden; }
.float-top .ttl { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .25s; }
.float-top.solid { background: rgba(255, 255, 255, .78); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 1px 0 var(--line); }
.float-top.solid .circle { background: var(--surface); border-color: transparent; color: var(--ink); }
.float-top.solid .ttl { opacity: 1; }
#scr-splash { cursor: pointer; }
.p-cap { position: absolute; left: var(--pad); right: var(--pad); bottom: 58px; z-index: 1; color: #fff; }
.p-cap .eyebrow { color: rgba(255, 255, 255, .75); }
.p-cap .h1 { color: #fff; margin: 10px 0 6px; font-size: 42px; font-size: clamp(34px, 11cqw, 48px); line-height: .98; }
.p-glass { position: absolute; left: var(--pad); right: var(--pad); bottom: -34px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 6px; border-radius: 26px; }
.p-glass div { text-align: center; border-left: 1px solid var(--line); }
.p-glass div:first-child { border: 0; }
.p-glass b { display: block; font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
.p-glass small { font-size: 11px; color: var(--muted); }
.p-body { padding: 54px var(--pad) calc(var(--safe-bottom) + 110px); }
.team { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface); width: 100%; text-align: left; }
.team .t { flex: 1; }
.team .t b { display: block; font-size: 14px; font-weight: 500; }
.team .t small { font-size: 12px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.info { padding: 14px; border-radius: 22px; background: var(--surface); }
.info .ms { font-size: 20px; color: var(--pine); }
.info small { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.info b { font-size: 14px; font-weight: 500; line-height: 1.3; display: block; margin-top: 2px; }
.sec-t { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.dates { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 66px; padding: 10px 0; border-radius: 20px; background: var(--surface); text-align: center; }
.date small { display: block; font-size: 11px; color: var(--muted); }
.date b { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.03em; margin: 2px 0; }
.date span { font-size: 11px; color: var(--ink-2); }
.date.on { background: var(--ink); color: #fff; }
.date.on small, .date.on span { color: rgba(255, 255, 255, .7); }
.checks { list-style: none; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.checks .ms { font-size: 20px; color: var(--sage); }
.review-cta { display: flex; gap: 8px; margin-top: 10px; }
.review-cta .btn { flex: 1; height: 44px; font-size: 14px; }
.cta-bar { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 10px); z-index: 21; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; transition: transform .3s ease, opacity .3s; }
.cta-bar.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cta-bar .p b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.cta-bar .p small { font-size: 11px; color: var(--muted); }
.cta-bar .btn { margin-left: auto; height: 52px; }

/* ---------- Мой план ---------- */
.plan-stats { margin: 16px var(--pad) 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 4px; border-radius: 26px; background: var(--surface); width: calc(100% - 36px); }
.plan-stats div { text-align: center; border-left: 1px solid var(--line); }
.plan-stats div:first-child { border: 0; }
.plan-stats b { display: block; font-size: 28px; }
.plan-stats small { font-size: 11px; color: var(--muted); }
.plan-stats .more { grid-column: 1 / -1; border: 0; margin-top: 10px; font-size: 12px; color: var(--coral); font-weight: 500; }
.stage { position: relative; margin: 12px var(--pad) 0; border-radius: 30px; overflow: hidden; min-height: 200px; color: #fff; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10, 16, 12, .25), rgba(10, 16, 12, .75)); }
.stage.lock::after { background: linear-gradient(160deg, rgba(36, 40, 38, .72), rgba(18, 20, 19, .9)); }
/* фильтр «обесцветить» тяжёл для телефона при анимации — закрытые ступени просто темнее */
.stage .in { position: relative; z-index: 1; padding: 18px; }
.stage .head { display: flex; align-items: flex-start; justify-content: space-between; }
.stage .n { font-size: 44px; font-weight: 200; letter-spacing: -.05em; line-height: .9; opacity: .9; }
.stage .st { height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.stage .st .ms { font-size: 15px; }
.stage .st.now { background: var(--coral); border-color: var(--coral); }
.stage h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin-top: 10px; }
.stage p { font-size: 13px; opacity: .8; margin-top: 4px; line-height: 1.4; }
.stage .items { display: grid; gap: 6px; margin-top: 14px; }
.stage .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; width: 100%; text-align: left; }
.stage .item .t { flex: 1; }
.stage .item b { display: block; font-size: 14px; font-weight: 500; }
.stage .item small { font-size: 11px; opacity: .75; }
.stage .item .ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.stage .item .ok.y { background: var(--sage); }
.stage .item .ok .ms { font-size: 15px; }
.stage .or { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }

/* ---------- Сообщество ---------- */
.city-card { margin: 16px var(--pad) 0; border-radius: 30px; overflow: hidden; position: relative; height: 210px; color: #fff; }
.city-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 16, 12, .75), rgba(10, 16, 12, .1)); }
.city-card .in { position: absolute; inset: 0; z-index: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.city-card .in .h2 { color: #fff; font-size: 26px; }
.links2 { display: grid; gap: 8px; margin: 10px var(--pad) 0; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad) 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.video { flex: none; width: 220px; height: 140px; border-radius: 24px; overflow: hidden; position: relative; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ''; position: absolute; inset: 0; background: rgba(10, 16, 12, .25); }
.video .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.video small { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; font-weight: 500; }
.review { flex: none; width: 260px; padding: 16px; border-radius: 24px; background: var(--surface); }
.review .stars { color: var(--coral); font-size: 13px; letter-spacing: 2px; }
.review p { font-size: 14px; line-height: 1.45; margin: 8px 0 12px; color: var(--ink-2); }
.review .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.review .who i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; color: var(--pine); }
.review .vtag { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--coral); }
.review .vtag .ms { font-size: 16px; }

/* ---------- Прогресс ---------- */
.navbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: var(--top) var(--pad) 10px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.navbar .title { flex: 1; font-size: 17px; font-weight: 500; text-align: center; }
.navbar .circle { background: var(--surface); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px var(--pad) 0; }
.big3 > div { padding: 14px 10px; border-radius: 22px; background: var(--surface); }
.big3 b { display: block; font-size: 34px; line-height: 1; margin-top: 10px; }
.big3 small { font-size: 11px; color: var(--muted); }
.big3 .ms { font-size: 20px; color: var(--coral); }
.heat { margin: 10px var(--pad) 0; padding: 16px; border-radius: 26px; background: var(--surface); }
.heat-grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; margin-top: 12px; }
.heat-grid i { aspect-ratio: 1; border-radius: 4px; background: #fff; }
.heat-grid i.l1 { background: #d6e2d4; }
.heat-grid i.l2 { background: var(--sage); }
.heat-grid i.l3 { background: var(--pine); }
.heat-grid i.l4 { background: var(--coral); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 var(--pad); }
.badge-c { padding: 14px 6px; text-align: center; border-radius: 22px; background: var(--surface); }
.badge-c .medal { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.badge-c.sage .medal { background: var(--sage-soft); color: var(--pine); }
.badge-c.off { opacity: .45; }
.badge-c.off .medal { background: #fff; color: #aab0a9; }
.badge-c b { font-size: 12px; font-weight: 500; display: block; }
.badge-c small { font-size: 10px; color: var(--muted); }

/* ---------- Профиль ---------- */
.prof { display: flex; align-items: center; gap: 14px; padding: 6px var(--pad) 0; }
.prof img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.prof b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.sub-card { margin: 16px var(--pad) 0; padding: 18px; border-radius: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.sub-card::before { content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 89, .55), transparent 70%); }
.sub-card > * { position: relative; }
.sub-card .eyebrow { color: rgba(255, 255, 255, .6); }
.sub-card .row { display: flex; justify-content: space-between; align-items: flex-end; }
.sub-card .big { font-size: 46px; line-height: 1; }
.sub-card .big small { font-size: 16px; opacity: .6; font-weight: 400; letter-spacing: 0; }
.dots5 { display: flex; gap: 5px; margin: 12px 0 14px; }
.dots5 i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.dots5 i.on { background: var(--coral); }
.sub-card .btn { height: 40px; font-size: 14px; background: #fff; color: var(--ink); }
.menu { margin: 10px var(--pad) 0; border-radius: 24px; background: var(--surface); overflow: hidden; }
.menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; font-size: 15px; }
.menu button + button { border-top: 1px solid var(--line); }
.menu button .ic { width: 34px; height: 34px; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.menu button .ic .ms { font-size: 19px; }
.menu button .t { flex: 1; }
.menu button .v { font-size: 13px; color: var(--muted); }
.menu button .chev { color: #b9beb8; font-size: 20px; }
.menu button.danger { color: var(--coral); }

/* ---------- Листы, тосты ---------- */
.overlay { position: absolute; inset: 0; z-index: 40; background: rgba(10, 16, 12, .3); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.overlay.on { opacity: 1; pointer-events: auto; }
.bottom-sheet { position: absolute; left: 8px; right: 8px; bottom: calc(var(--safe-bottom) + 8px); z-index: 41; background: rgba(255, 255, 255, .92); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border-radius: 36px; padding: 10px var(--pad) 22px; transform: translateY(110%); transition: transform .5s cubic-bezier(.32, .72, 0, 1); overscroll-behavior: contain; max-height: 86%; overflow-y: auto; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4); }
.bottom-sheet.on { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 5px; background: #dcdfda; margin: 0 auto 14px; }
.sheet-img { height: 150px; border-radius: 24px; object-fit: cover; width: 100%; margin-bottom: 14px; }
.opts { display: grid; gap: 6px; margin-top: 12px; }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 18px; background: var(--surface); font-size: 15px; font-weight: 500; width: 100%; }
.opt.on { background: var(--ink); color: #fff; }
.opt small { font-size: 12px; font-weight: 400; opacity: .6; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
textarea.input { width: 100%; min-height: 96px; border-radius: 20px; border: 0; background: var(--surface); padding: 14px; font: inherit; font-size: 14px; resize: none; margin-top: 8px; color: var(--ink); outline: none; }
.rate { display: flex; gap: 6px; margin-top: 8px; }
.rate button { flex: 1; height: 48px; border-radius: 16px; background: var(--surface); font-size: 22px; color: #d0d4ce; text-align: center; }
.rate button.on { color: var(--coral); background: var(--coral-soft); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; width: 100%; }
.toggle small { display: block; font-size: 12px; color: var(--muted); }
.sw { width: 50px; height: 30px; border-radius: 999px; background: #dcdfda; position: relative; transition: .2s; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: .2s; }
.sw.on { background: #34c759; }
.sw.on::after { left: 23px; }
.pay { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay small { display: block; color: var(--muted); font-size: 12px; }
.pay b { font-weight: 500; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--coral-soft); font-size: 12px; color: #a0472f; line-height: 1.4; }
.toast { position: absolute; left: 50%; bottom: 100px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: .3s; white-space: nowrap; pointer-events: none; background: rgba(20, 26, 22, .82); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Заставка ---------- */
#scr-splash { background: #0f1a13; }
.splash-hero { position: absolute; inset: 0; }
.splash-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.splash-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 20, 14, .2), rgba(10, 20, 14, 0) 35%, rgba(8, 14, 10, .85) 80%); }
.splash-top { position: absolute; top: calc(var(--top) + 4px); left: 22px; right: 22px; display: flex; justify-content: space-between; z-index: 2; }
.splash-top .tag { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.splash-top .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.splash-body { position: absolute; left: 22px; right: 22px; bottom: calc(var(--safe-bottom) + 30px); z-index: 2; color: #fff; }
.splash-body h1 { font-size: 46px; font-size: clamp(36px, 11.8cqw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: .98; margin-bottom: 12px; }
.splash-body h1 em { font-family: var(--serif); font-weight: 500; font-size: 1.13em; letter-spacing: -.01em; }
.splash-body p { font-size: 15px; line-height: 1.5; opacity: .8; }
.splash-cities { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 20px; }
.splash-cities span { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; }
.splash-body .btn { background: #fff; color: var(--ink); }
.splash-body .btn .ar { background: var(--ink); color: #fff; }

/* ---------- Стенд ---------- */
.stand { position: fixed; left: 24px; top: 24px; width: 220px; font-size: 13px; color: var(--ink); }
.stand h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.stand p { color: var(--muted); margin-bottom: 12px; line-height: 1.4; }
.stand button { display: block; width: 100%; text-align: left; padding: 7px 12px; border-radius: 12px; margin-bottom: 2px; }
.stand button:hover, .stand button.on { background: #fff; }
.stand .grp { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px 12px; }
@media (max-width: 900px) { .stand { display: none; } }

/* Поиск */
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }

/* ---------- Плавность ---------- */
/* Размытие внутри прокручиваемой ленты пересчитывается в каждом кадре — главный источник рывков на телефоне.
   Внутри экранов «стекло» заменено на лёгкую полупрозрачную заливку; настоящее размытие осталось
   только на неподвижных слоях (нижнее меню, шапка, кнопка записи, листы). */
.screen .glass-d { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 26, 21, .42); }
.screen .p-glass.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .94); }
.rail, .seg, .hscroll, .dates, .chips { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
button, .tile, .row-card { touch-action: manipulation; }
/* Отклик на нажатие, как на iPhone */
.btn, .circle, .seg button, .chip, .opt, .date, .cday, .row-card, .qcard, .tile, .team, .stage .item, .city-pill, .stat-pill, .city-select, .plan-stats, .video, .tabbar button, .link-tile {
  transition: transform .25s cubic-bezier(.32, .72, 0, 1), background-color .2s, color .2s; }
.btn:active, .circle:active, .seg button:active, .chip:active, .opt:active, .date:active, .cday:active, .stat-pill:active, .city-pill:active, .city-select:active, .tabbar button:active { transform: scale(.94); }
.row-card:active, .qcard:active, .tile:active, .team:active, .stage .item:active, .plan-stats:active, .video:active { transform: scale(.97); }
.menu button { transition: background-color .15s; }
.menu button:active { background: rgba(20, 26, 22, .05); }
.tabbar button { transition: background .35s cubic-bezier(.32, .72, 0, 1), color .35s, padding .35s cubic-bezier(.32, .72, 0, 1), transform .25s cubic-bezier(.32, .72, 0, 1); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* ---------- Адаптация под разные экраны ---------- */
/* Узкие телефоны (старые Android, iPhone SE 1-го поколения) */
@container (max-width: 359px) {
  .phone > * { --pad: 14px; }
  .tabbar { gap: 0; padding: 5px; }
  .tabbar button { min-width: 46px; height: 48px; padding: 0 10px; }
  .tabbar button.on { padding: 0 13px 0 11px; }
  .tabbar button .ms { font-size: 22px; }
  .tabbar button.on .lbl { font-size: 13px; }
  .hero-top .brand { font-size: 0; }
  .hero-top .brand .circle .ms { font-size: 20px; }
  .hero-quote { font-size: 16px; }
  .seg button { padding: 0 12px; font-size: 13px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qcard { padding: 8px; gap: 8px; }
  .qcard .ic { width: 34px; height: 34px; }
  .cday { height: 40px; font-size: 14px; }
  .p-glass b { font-size: 17px; }
  .cta-bar .btn { padding: 0 16px; }
  .big3 b { font-size: 28px; }
  .info-grid { grid-template-columns: 1fr; }
}
/* Низкие экраны (короткие телефоны, Telegram с клавиатурой/шапкой) — цитату прячем, шапку уплотняем */
@container (max-height: 640px) {
  .hero-quote { display: none; }
  .seg { padding-top: 12px; }
  .rail { padding-top: 10px; }
}
/* Браузеры без поддержки размытия — плотная заливка вместо «стекла» */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .95); }
  .glass-d { background: rgba(18, 26, 21, .55); }
  .bottom-sheet { background: #fff; }
  .navbar, .float-top.solid { background: rgba(255, 255, 255, .97); }
}
/* Слабые Android-устройства (Telegram сообщает класс производительности) — без размытия, короче анимации */
html.lite .glass, html.lite .glass-d, html.lite .navbar, html.lite .float-top, html.lite .float-top .circle, html.lite .bottom-sheet, html.lite .toast {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .glass { background: rgba(255, 255, 255, .96); }
html.lite .glass-d, html.lite .float-top .circle { background: rgba(18, 26, 21, .55); }
html.lite .bottom-sheet { background: #fff; }
html.lite .navbar, html.lite .float-top.solid { background: rgba(255, 255, 255, .97); }
html.lite .tile img { transition: none; }

/* ---------- Сегодня ---------- */
.quick.today-first .today-q { order: -1; }
.today-q .ic { background: var(--coral-soft); color: var(--coral); }
.today-q.done .ic { background: var(--sage); color: #fff; }
.today-week { display: flex; justify-content: space-between; margin: 12px 0 8px; }
.today-week span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.today-week i { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: #fff; font-style: normal; }
.today-week i .ms { font-size: 20px; }
.today-week span.on i { background: var(--sage); }
.today-week span.now i { box-shadow: inset 0 0 0 2px var(--coral); }
.today-week span.now.on i { background: var(--coral); box-shadow: none; }
.today-week span.now small { color: var(--coral); font-weight: 600; }
.today-card { position: relative; margin: 16px var(--pad) 0; border-radius: 30px; overflow: hidden; color: #fff; }
.today-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,12,.25), rgba(10,16,12,.82)); }
.today-card .in { position: relative; z-index: 1; padding: 18px; min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; }
.today-card h2 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; margin: 10px 0 6px; }
.today-card p { font-size: 14px; line-height: 1.5; opacity: .85; margin-bottom: 16px; }
.pill-d { align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; background: rgba(18,26,21,.45); border: 1px solid rgba(255,255,255,.2); }
.today-card .btn-go { background: #fff; color: var(--ink); }
.today-card .btn-go .ar { background: var(--coral); color: #fff; }
.mark-link { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.done-row { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: 999px; background: rgba(143,166,145,.9); font-weight: 500; }
.mood-q { margin-top: 14px; padding: 16px; border-radius: 24px; background: var(--surface); }
.mood-q b { font-weight: 500; font-size: 15px; }
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.moods button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: #fff; font-size: 13px; font-weight: 500; transition: transform .25s cubic-bezier(.32,.72,0,1), background .2s; }
.moods button:active { transform: scale(.94); }
.moods button.on { background: var(--ink); color: #fff; }
.visit { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 24px; background: var(--surface); }
.visit > img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.visit .t { flex: 1; min-width: 0; }
.visit .t b { display: block; font-size: 15px; font-weight: 500; }
.visit .t small { font-size: 12px; color: var(--muted); }
.visit .btn { height: 42px; padding: 0 14px; font-size: 14px; flex: none; }
.pill.ok { background: var(--sage-soft); color: var(--pine); box-shadow: none; flex: none; }
.hint-line { display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hint-line .ms { font-size: 17px; }

/* ---------- Запись и согласие ---------- */
.field-in { width: 100%; height: 48px; margin-top: 8px; padding: 0 16px; border-radius: 16px; border: 1px solid transparent; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.field-in:focus { border-color: var(--sage); background: #fff; }
.from-tg { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.from-tg .ms { font-size: 14px; }
.pay-opts { margin-top: 8px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-align: left; width: 100%; }
.consent .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c7ccc5; display: grid; place-items: center; flex: none; color: transparent; transition: .2s; }
.consent .box .ms { font-size: 16px; }
.consent.on .box { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent u { text-underline-offset: 2px; }
.btn:disabled { opacity: .4; box-shadow: none; pointer-events: none; }

/* ---------- Отметка в зале ---------- */
.scanner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 1.3; margin-top: 14px; border-radius: 26px; background: #141a16; color: rgba(255,255,255,.75); overflow: hidden; }
.scanner > .ms { font-size: 64px; color: rgba(255,255,255,.25); }
.scanner small { font-size: 12px; }
.scanner .corners { position: absolute; inset: 22% 26%; border-radius: 18px; background:
  linear-gradient(#fff,#fff) top left/26px 3px, linear-gradient(#fff,#fff) top left/3px 26px, linear-gradient(#fff,#fff) top right/26px 3px, linear-gradient(#fff,#fff) top right/3px 26px,
  linear-gradient(#fff,#fff) bottom left/26px 3px, linear-gradient(#fff,#fff) bottom left/3px 26px, linear-gradient(#fff,#fff) bottom right/26px 3px, linear-gradient(#fff,#fff) bottom right/3px 26px; background-repeat: no-repeat; }
.scanner .line { position: absolute; left: 26%; right: 26%; top: 22%; height: 2px; background: var(--coral); box-shadow: 0 0 12px var(--coral); opacity: 0; }
.scanner.scanning .line { opacity: 1; animation: scan 1.1s ease-in-out infinite alternate; }
@keyframes scan { to { top: 78%; } }
.or-line { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 12px; color: var(--muted); }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-row { display: flex; gap: 8px; }
.code-row .field-in { text-align: center; letter-spacing: .5em; font-weight: 500; }
.code-row .btn { height: 48px; margin-top: 8px; flex: none; }
.check-ok { text-align: center; padding: 10px 0 18px; }
.check-ok > .ms { font-size: 72px; color: var(--sage); }
.check-ok .h2 { margin: 6px 0; }

/* ---------- Помощь, вопрос ---------- */
.faq { display: grid; gap: 6px; margin-top: 12px; }
.faq-i { display: block; width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--surface); text-align: left; }
.faq-i .q { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; }
.faq-i .q .ms { transition: transform .3s cubic-bezier(.32,.72,0,1); color: var(--muted); }
.faq-i .a { display: block; max-height: 0; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--ink-2); transition: max-height .35s cubic-bezier(.32,.72,0,1), margin .35s; }
.faq-i.open .a { max-height: 200px; margin-top: 8px; }
.faq-i.open .q .ms { transform: rotate(180deg); }
.link-in { color: var(--coral); font-weight: 500; }
.ask-line { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 18px; font-size: 13px; color: var(--muted); }
.ask-line .ms { font-size: 17px; }
.ask-line b { color: var(--coral); font-weight: 500; }

/* ---------- Пригласить друга ---------- */
.invite-card { display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--pad)); margin: 10px var(--pad) 0; padding: 14px; border-radius: 24px; background: linear-gradient(135deg, #fff0eb, #ffe2d8); text-align: left; }
.invite-card .ic { width: 40px; height: 40px; border-radius: 14px; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; }
.invite-card .t { flex: 1; }
.invite-card b { display: block; font-size: 15px; font-weight: 500; }
.invite-card small { font-size: 12px; color: #a0472f; }
.invite-hero { text-align: center; }
.invite-hero > .ms { font-size: 48px; color: var(--coral); }
.invite-hero .h2 { margin: 4px 0; }
.link-box { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-box .circle { background: #fff; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.share-row .btn { height: 50px; font-size: 14px; padding: 0 16px; min-width: 0; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 12px 4px; border-radius: 20px; background: var(--surface); text-align: center; }
.inv-stats b { display: block; font-size: 26px; }
.inv-stats small { font-size: 11px; color: var(--muted); }

/* ---------- Уведомления: час и пояс ---------- */
.hours { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
.hours::-webkit-scrollbar { display: none; }
.hours button { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hours button.on { background: var(--ink); color: #fff; }
.tz { position: relative; display: block; margin-top: 8px; }
.tz select { width: 100%; height: 48px; padding: 0 40px 0 16px; border-radius: 16px; border: 0; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); appearance: none; -webkit-appearance: none; outline: none; }
.tz .ms { position: absolute; right: 14px; top: 13px; pointer-events: none; color: var(--muted); }

/* ---------- Жест «назад» ---------- */
html, body { overscroll-behavior: none; }

/* ---------- Практика: варианты оплаты ---------- */
.c-course { background: var(--pine); }
.offers { display: grid; gap: 8px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1.5px solid transparent; text-align: left; transition: border-color .2s, background .2s, transform .25s cubic-bezier(.32,.72,0,1); }
.offer:active { transform: scale(.98); }
.offer b { display: block; font-size: 15px; font-weight: 500; }
.offer small { font-size: 12px; color: var(--muted); }
.offer em { font-style: normal; font-size: 17px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.offer.on { background: #fff; border-color: var(--ink); }
.sub-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.sub-note .ms { font-size: 17px; color: var(--sage); }

/* ---------- Заставка: персональные данные ---------- */
.legal { margin-top: 12px; font-size: 11.5px; line-height: 1.45; text-align: center; color: rgba(255,255,255,.62); }
.legal a, .consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.policy b { display: block; font-weight: 500; margin-top: 14px; }
.policy p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }

/* ---------- Мой QR, оплата ---------- */
.my-qr { width: 210px; height: 210px; margin: 16px auto 12px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 10px 30px -12px rgba(20,26,22,.25); }
.demo-line { display: block; margin: 12px auto 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.spinner { display: inline-block; width: 56px; height: 56px; margin: 8px 0; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--coral); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Курс ---------- */
.team.curator .btn { flex: none; }
.lessons2 { display: grid; gap: 0; }
.ls { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.ls::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--surface-2); }
.ls:last-child::before { display: none; }
.ls .n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); font-weight: 600; font-size: 14px; position: relative; z-index: 1; }
.ls.done .n { background: var(--sage); color: #fff; }
.ls.now .n { background: var(--coral); color: #fff; }
.ls .b { flex: 1; min-width: 0; padding-top: 2px; }
.ls .b b { display: block; font-size: 15px; font-weight: 500; }
.ls .b small { font-size: 12px; color: var(--muted); }
.task { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 16px; background: var(--surface); font-size: 13px; text-align: left; }
.task .ms { font-size: 18px; color: var(--pine); }
.task span:not(.ms) { flex: 1; }
.task em { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--coral); padding: 4px 10px; border-radius: 999px; }
.task.ok em { background: var(--sage); }
.task.off { opacity: .5; }
.task.off .ms { color: var(--muted); }

/* Длинные экраны: то, что ниже видимой части, телефон не рисует заранее — переходы не дёргаются */

.screen img { -webkit-user-drag: none; }

/* Поля ввода 16px: иначе iPhone увеличивает экран при нажатии */
input, select, textarea, .field-in, textarea.input, .search-field input { font-size: 16px !important; }
.cday.past { opacity: .5; }
.cal-head .nav button:disabled { opacity: .3; }
.cal { touch-action: pan-y; }
/* Инструктор */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; height: 380px; object-fit: cover; scroll-snap-align: start; }
.g-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-2); }
.g-dots i.on { background: var(--ink); }
.ini-hero { height: 200px; margin: 0 var(--pad); border-radius: 28px; background: linear-gradient(135deg, var(--sage-soft), #d4e2d3); display: grid; place-items: center; }
.ini-hero span { font-size: 72px; font-weight: 200; color: var(--pine); }
.wide-video { width: 100%; height: 190px; margin-top: 16px; }
.sub .ms { font-size: 15px; vertical-align: -2px; margin-right: 3px; }

/* ---------- Карточка практики v3 ---------- */
.p-hero { border-radius: 0 0 30px 30px; overflow: hidden; }
.p-body { padding-top: 16px; }
.city-tag { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px; font-weight: 600; }
.city-tag .ms { font-size: 18px; color: var(--coral); }
.city-tag .ms:last-child { color: var(--muted); }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 4px; border-radius: 22px; background: var(--surface); text-align: center; }
.p-stats div + div { border-left: 1px solid var(--line); }
.p-stats b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.p-stats small { font-size: 11px; color: var(--muted); }
.facts { margin-top: 10px; border-radius: 22px; background: var(--surface); overflow: hidden; }
.fact { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact > .ms { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; color: var(--pine); flex: none; }
.fact > span { flex: 1; min-width: 0; }
.fact small { display: block; font-size: 11px; color: var(--muted); }
.fact b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.fact .faces > * { width: 28px; height: 28px; }
/* Вопросы и ответы — свёрнуты одной строкой */
.faq-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 22px; padding: 14px 16px; border-radius: 20px; background: var(--surface); text-align: left; font-size: 15px; font-weight: 500; }
.faq-toggle > span { flex: 1; display: flex; align-items: center; gap: 8px; }
.faq-toggle > span .ms { font-size: 19px; color: var(--pine); }
.faq-toggle em { font-style: normal; font-size: 12px; color: var(--muted); background: #fff; border-radius: 999px; padding: 2px 8px; }
.faq-toggle > .ms { color: var(--muted); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.faq-toggle.open > .ms { transform: rotate(180deg); }
.faq-all { display: none; margin-top: 6px; }
.faq-toggle.open + .faq-all { display: grid; }
.faq-all .faq-i { background: #fff; border: 1px solid var(--line); }
/* Запись */
.book-city { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 16px; background: var(--coral-soft); color: #a0472f; font-size: 14px; }
.book-city .ms { font-size: 18px; color: var(--coral); }
.book-city > span:not(.ms) { flex: 1; }
.book-city b { font-weight: 600; color: var(--ink); }
.picked { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--ink); }
.picked b { display: block; font-weight: 500; }
.picked small { font-size: 12px; color: var(--muted); }
.picked em { font-style: normal; font-size: 18px; font-weight: 500; }
.sub-alt { display: block; margin: 8px auto 0; font-size: 13px; }
.me-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 14px; }
.me-line > .ms { color: var(--pine); }
.me-line > span:not(.ms) { flex: 1; min-width: 0; }
.me-line small { color: var(--muted); font-size: 12px; }
.me-fields { margin-top: 4px; }
.me-fields[hidden] { display: none; }
.pay-m { justify-content: flex-start; gap: 12px; text-align: left; }
.pay-m > .ms:first-child { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; }
.pay-m > span:not(.ms) { flex: 1; }
.pay-m small { display: block; }
/* Листы: содержимое не упирается в края, мягко растворяется */
.bottom-sheet { padding: 10px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.bottom-sheet > .grab { flex: none; margin-bottom: 8px; }
/* содержимое прокручивается ниже «ручки» и чётко скрывается у невидимой линии — не залезает в скругление */
.bottom-sheet .sh-in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--pad) 22px; scrollbar-width: none; }
.bottom-sheet .sh-in::-webkit-scrollbar { display: none; }
/* В браузере и Telegram — ровно на весь экран, без белых полос */
html.bare, html.bare body { height: 100%; overflow: hidden; }
html.bare .phone { position: fixed; inset: 0; height: auto; width: auto; }
/* Шапка экранов: имя крупнее */
.navbar .title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }

.book-city > .ms, .me-line > .ms { flex: none; }

/* ---------- Карточка практики v4 ---------- */
.p-hero { overflow: visible; border-radius: 0; }
.p-hero > img { border-radius: 0 0 30px 30px; }
.p-hero::after { border-radius: 0 0 30px 30px; }
.p-glass.solid { grid-template-columns: 1fr 1fr; background: #fff; border: 0; box-shadow: 0 10px 30px -12px rgba(20,26,22,.28); backdrop-filter: none; -webkit-backdrop-filter: none; bottom: -30px; padding: 12px 6px; }
.p-glass.solid b { font-size: 17px; font-weight: 500; }
.p-body { padding-top: 46px; }
.facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts2 > div { padding: 12px; border-radius: 18px; background: var(--surface); min-width: 0; }
.facts2 .ms { font-size: 18px; color: var(--pine); }
.facts2 small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.facts2 b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.date { position: relative; padding-bottom: 14px; }
.date .who { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: var(--sage-soft); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: var(--pine); }
.date .who img { width: 100%; height: 100%; object-fit: cover; }
.date .who .ini { background: none; border: 0; width: auto; height: auto; }
.dates { padding-bottom: 10px; }
.date-line { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 18px; background: var(--surface); text-align: left; font-size: 14px; font-weight: 500; }
.date-line > span:not(.faces) { flex: 1; }
.date-line small { font-weight: 400; font-size: 12px; color: var(--muted); }
.bricks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 10px; border-radius: 18px; background: var(--surface); border: 1.5px solid transparent; text-align: left; min-width: 0; }
.brick b { font-size: 14px; font-weight: 500; line-height: 1.2; }
.brick em { font-style: normal; font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; }
.brick small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.brick.on { background: #fff; border-color: var(--ink); }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chips button { padding: 9px 13px; border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.25; text-align: left; }
.q-chips .ask { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1.5px solid var(--coral); color: var(--coral); font-weight: 500; }
.q-chips .ask .ms { font-size: 16px; }
.team-link { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 12px 14px; border-radius: 18px; background: var(--surface); font-size: 14px; font-weight: 500; text-align: left; }
.team-link span:not(.faces) { flex: 1; }
/* Кнопка записи под большим пальцем: справа, чуть ниже середины */
.cta-bar { left: auto; right: 12px; bottom: calc(var(--safe-bottom) + 26%); flex-direction: column; gap: 6px; padding: 8px 8px 10px; border-radius: 999px; width: 76px; text-align: center; }
.cta-bar .p b { display: block; font-size: 13px; line-height: 1.15; letter-spacing: -.02em; }
.cta-bar .p small { display: block; font-size: 10px; margin-top: 1px; }
.cta-bar .btn { width: 60px; height: 60px; margin: 0; padding: 0; border-radius: 50%; }
.cta-bar .btn .ms { font-size: 26px; }
.cta-bar.hidden { transform: translateX(140%); }
/* Календарь: практики различаются цветом */
.cday.has.k-yoga { background: #e6efe4; }
.cday.has.k-course { background: #dbe5de; }
.cday.has.k-retreat { background: #e1eaf3; }
.cday.has.k-tea { background: #f4e9d8; }
.cday.has.k-meditation { background: #eee6f5; }
.cday .bars i { width: 14px; height: 4px; }
.cday.sel { background: var(--ink) !important; }
.cday.booked { background: var(--coral) !important; }
.mini-t { background: #fff !important; }
.ev-row { border-left: 5px solid var(--sage); }
.ev-row.k-course { border-left-color: var(--pine); } .ev-row.k-retreat { border-left-color: #6f8fb0; } .ev-row.k-tea { border-left-color: #c79a5b; } .ev-row.k-meditation { border-left-color: #a58bc2; }
.ev-row .kind { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-bottom: 3px; background: #e6efe4; color: #4b6a4e; }
.ev-row.k-course .kind { background: #dbe5de; color: var(--pine); } .ev-row.k-retreat .kind { background: #e1eaf3; color: #3f5f80; } .ev-row.k-tea .kind { background: #f4e9d8; color: #8a6428; } .ev-row.k-meditation .kind { background: #eee6f5; color: #6d4f8f; }
.legend i { width: 14px; height: 6px; }
.cta-bar, html.bare .cta-bar { left: auto !important; right: max(12px, calc((100% - 600px) / 2 + 12px)) !important; width: 84px; }
.cta-bar .p b { font-size: 12.5px; white-space: nowrap; }
.date-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }

/* ---------- Карточка практики v5 ---------- */
/* Плашка рейтинга — настоящее стекло поверх фото */
.p-glass.lg { grid-template-columns: 1fr 1fr; bottom: -26px; padding: 12px 6px; border-radius: 24px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 12px 30px -14px rgba(20, 26, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .8); }
.p-glass.lg div + div { border-left: 1px solid rgba(20, 26, 22, .08); }
.p-glass.lg b { font-size: 17px; font-weight: 500; }
.p-glass.lg small { color: var(--ink-2); opacity: .7; }
.p-body { padding-top: 40px; }
/* Кнопка записи в тексте карточки */
.book-inline { margin-bottom: 12px; }
.btn.bk-in, .cta-bar .btn-wide { width: 100%; height: 56px; justify-content: space-between; gap: 10px; padding: 0 8px 0 20px; font-size: 16px; }
.bk-in span:not(.ms), .cta-bar .btn-wide span:not(.ms) { flex: 1; text-align: left; }
.bk-in em, .cta-bar .btn-wide em { font-style: normal; font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.bk-in > .ms, .cta-bar .btn-wide > .ms { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--coral); display: grid; place-items: center; font-size: 22px; }
/* Нижняя стеклянная полоса — появляется, когда кнопку в тексте пролистали */
.cta-bar, html.bare .cta-bar { left: max(12px, calc((100% - 600px) / 2 + 12px)) !important; right: max(12px, calc((100% - 600px) / 2 + 12px)) !important; width: auto !important;
  bottom: calc(var(--safe-bottom) + 12px); flex-direction: row; padding: 6px; border-radius: 999px; text-align: left; }
.cta-bar.hidden { transform: translateY(160%); opacity: 0; }
/* Инструкторы — кружками, каждый нажимается */
.team-dots { display: flex; flex-wrap: wrap; gap: 14px; }
.team-dots button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; }
.team-dots img, .team-dots .ini { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--surface-2); display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); font-weight: 600; font-size: 18px; }
.team-dots button.on img, .team-dots button.on .ini { box-shadow: 0 0 0 2px var(--coral); }
.team-dots small { font-size: 11.5px; color: var(--ink-2); }
.date-sub { margin-top: 6px; }
/* Календарь: день с двумя разными практиками — два цвета по диагонали */
:root { --t-yoga: #e6efe4; --t-course: #dbe5de; --t-retreat: #e1eaf3; --t-tea: #f4e9d8; --t-meditation: #eee6f5; }
.cday.k-yoga { --t1: var(--t-yoga); } .cday.k-course { --t1: var(--t-course); } .cday.k-retreat { --t1: var(--t-retreat); } .cday.k-tea { --t1: var(--t-tea); } .cday.k-meditation { --t1: var(--t-meditation); }
.cday.has.two { background: linear-gradient(135deg, var(--t1) 50%, var(--c2) 50%) !important; }
.cday.sel { background: var(--ink) !important; }
.cday.booked { background: var(--coral) !important; }
.bk-in > .ms, .cta-bar .btn-wide > .ms { flex: none; }

/* ---------- Карточка практики v6 ---------- */
.p-hero > img, .p-hero::after { border-radius: 0 0 28px 28px; }
.p-cap { bottom: 26px; }
/* Узкая плашка под фото: рейтинг · уровень · маленькая кнопка */
.p-strip { display: flex; align-items: center; gap: 4px; margin: 12px var(--pad) 0; padding: 6px 6px 6px 4px; border-radius: 20px;
  background: rgba(244, 245, 242, .7); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 22px -14px rgba(20, 26, 22, .3), inset 0 1px 0 rgba(255, 255, 255, .9); }
.p-strip > div { flex: 1; text-align: center; min-width: 0; }
.p-strip > div + div { border-left: 1px solid rgba(20, 26, 22, .08); }
.p-strip b { display: block; font-size: 15px; font-weight: 500; }
.p-strip small { font-size: 10.5px; color: var(--muted); }
.p-body { padding-top: 14px; }
/* Кнопка «Записаться»: небольшая, аккуратная */
.btn.bk { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(255, 122, 89, .9); gap: 4px; }
.btn.bk .ms { font-size: 18px; }
.bk-mini { flex: none; margin-left: 4px; }
.book-row { display: flex; justify-content: center; margin-top: 12px; }
.bk-row { height: 44px; padding: 0 30px; }
/* Кнопка при прокрутке: компактная капсула по центру, не во всю ширину */
.cta-bar, html.bare .cta-bar { left: 50% !important; right: auto !important; width: auto !important; transform: translateX(-50%); padding: 5px; border-radius: 999px; bottom: calc(var(--safe-bottom) + 16px); }
.cta-bar.hidden { transform: translate(-50%, 160%); opacity: 0; }
.bk-float { height: 46px; padding: 0 30px; font-size: 15px; }
/* Кто ведёт — одна тихая строка под датами */
.date-who { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; font-size: 12.5px; color: var(--muted); text-align: left; }
.date-who .faces > * { width: 22px; height: 22px; border-width: 1.5px; }
.date-who b { font-weight: 500; color: var(--ink-2); }
.date .who { width: 18px; height: 18px; bottom: -7px; }
.faq-toggle > span { white-space: nowrap; }

/* ---------- Фото-слайдер и видео практики ---------- */
.p-gal { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0 0 28px 28px; overscroll-behavior-x: contain; }
.p-gal::-webkit-scrollbar { display: none; }
.p-gal img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.p-hero::after { pointer-events: none; }
.p-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.p-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.p-dots i.on { width: 18px; background: #fff; }
.vid-btn { position: absolute; right: var(--pad); bottom: 30px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500;
  background: rgba(18, 26, 21, .35); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255,255,255,.3); }
.vid-btn .ms { font-size: 22px; }
.p-hero.vid .p-cap { opacity: 0; pointer-events: none; }
.p-hero.vid::after { opacity: 0; }
.p-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d130f; border-radius: 0 0 28px 28px; overflow: hidden; }
.p-video.novid img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.p-video.novid div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 0 30px; }
.p-video.novid .ms { font-size: 44px; opacity: .9; }
.p-video.novid small { opacity: .75; font-size: 13px; }

.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap-row .vid-btn { position: static; }
.vid-btn.back { top: auto; bottom: 18px; }
/* Календарь: строки практики не переносятся — адрес и имя в одну строку с многоточием */
.row-card .t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row-card .t small .ms, .row-card .t small .faces { vertical-align: middle; display: inline-flex; }
.row-card .t small .faces > * { width: 20px; height: 20px; }
.ev-row > img { width: 56px; height: 56px; }
.ev-row .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row .time { flex: none; }
.row-card .t small.ev-note { margin-top: 0; font-size: 12px; color: var(--muted); }

/* v6: ведущих на дату может быть несколько; лица крупнее — чтобы узнавать, кто ведёт */
.date { padding-bottom: 20px; }
.date .who { width: 30px; height: 30px; bottom: -13px; border-width: 2px; display: flex; overflow: visible; background: none; border: 0; }
.dates .date i.who > img, .dates .date i.who > span { flex: none; box-sizing: border-box; margin: 0; padding: 0; line-height: 1; position: static; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: var(--sage-soft); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--pine); font-style: normal; }
.date .who.many { width: auto; }
.dates .date i.who.many > * + * { margin-left: -12px; }
.dates { padding-bottom: 16px; }
.date-who { display: block; margin-top: 4px; }
.date-who .dw-t { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.date-who .dw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.date-who .dw { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--surface); }
.date-who .dw > img, .date-who .dw > .ini { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); font-size: 14px; font-weight: 600; }
.date-who .dw b { font-size: 14px; font-weight: 500; color: var(--ink); }
.date-who .dw:active { transform: scale(.97); }

/* Сводка в шапке: ближайшая запись + абонемент (в капсуле серии) */
.hero-row { gap: 6px; }
.next-pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; margin-left: auto; }
.next-pill .ms { font-size: 16px; opacity: .9; }
.next-pill + .stat-pill { margin-left: 0; }
.stat-pill .ms:not(:last-child) { font-size: 15px; margin: 0 -6px 0 0; }
.hero-row .stat-pill { gap: 8px; padding: 0 12px; }
.hero-row > * { white-space: nowrap; flex: none; }
.hero-row .city-pill { padding: 0 10px 0 8px; }
.hero-row .next-pill { padding: 0 10px 0 9px; gap: 4px; }
.hero-row .stat-pill { padding: 0 8px 0 11px; gap: 7px; }
@media (max-width: 359px) { .hero-row .next-pill { display: none; } }

/* v8: курс — цифры плашкой под фото (не на фото) */
.c-strip { margin-top: 12px; }
.c-strip b { font-size: 17px; }
/* Чат с куратором */
.chat-nav .chat-who { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; }
.chat-who img, .chat-who .ini { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); font-weight: 600; }
.chat-who span { text-align: left; min-width: 0; }
.chat-who b { display: block; font-size: 15px; font-weight: 600; }
.chat-who small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chat-note { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 8px var(--pad) 0; font-size: 11.5px; color: var(--muted); }
.chat-note .ms { font-size: 15px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 14px var(--pad) 12px; min-height: calc(100% - 190px); justify-content: flex-end; }
.msg { max-width: 80%; padding: 9px 12px 6px; border-radius: 20px; font-size: 15px; line-height: 1.38; }
.msg p { margin: 0; }
.msg > small { display: block; margin-top: 3px; font-size: 10.5px; opacity: .55; text-align: right; }
.msg.in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--pine); color: #fff; border-bottom-right-radius: 6px; }
.msg .voice { display: flex; align-items: center; gap: 8px; }
.msg .voice > .ms { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 20px; }
.msg.in .voice > .ms { background: var(--pine); color: #fff; }
.msg .voice i { display: flex; align-items: center; gap: 2px; height: 22px; }
.msg .voice i em { width: 2.5px; border-radius: 2px; background: currentColor; opacity: .55; height: 40%; }
.msg .voice i em:nth-child(3n) { height: 85%; } .msg .voice i em:nth-child(4n+1) { height: 60%; } .msg .voice i em:nth-child(5n+2) { height: 100%; }
.msg .voice small { font-size: 12px; opacity: .8; }
.composer { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px var(--pad) calc(var(--safe-bottom) + 10px); background: rgba(255,255,255,.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.composer .circle { flex: none; background: var(--surface); }
.composer .send { background: var(--pine); color: #fff; }
.composer .send.rec { background: var(--coral); animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 122, 89, .18); } }
.chat-in { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; }

/* v9: медитации и лекции */
.prog-line { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--sage-soft); margin: 4px 0 10px; }
.prog-line .ms { color: var(--pine); }
.prog-line b { display: block; font-weight: 500; font-size: 14px; } .prog-line small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.lib-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); flex: none; }
.lib-seg { padding: 0; }
.row-card .lock, .series .lock { color: var(--muted); display: grid; place-items: center; }
.prog-card { border-radius: 24px; overflow: hidden; background: var(--surface); }
.prog-card > img { width: 100%; height: 140px; object-fit: cover; display: block; }
.prog-card .in { padding: 14px 16px 16px; display: grid; gap: 6px; justify-items: start; }
.prog-card b { font-size: 18px; font-weight: 500; } .prog-card small { color: var(--muted); font-size: 12.5px; } .prog-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.prog-card .pill-d { background: var(--sage-soft); color: var(--pine); display: inline-flex; gap: 4px; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; }
.series { border-radius: 24px; background: var(--surface); padding: 12px; display: grid; gap: 6px; }
.series .hd { display: flex; gap: 12px; align-items: center; }
.series .hd img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.series .hd span:not(.lock) { flex: 1; } .series .hd b { display: block; font-weight: 500; } .series .hd small { color: var(--muted); font-size: 12.5px; }
.series .lec { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; text-align: left; width: 100%; }
.series .lec .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--pine); font-size: 13px; flex: none; }
.series .lec.done .n { background: var(--pine); color: #fff; }
.series .lec .t { flex: 1; font-size: 14px; } .series .lec .t small { display: block; color: var(--muted); font-size: 12px; }
.pl-media { width: 100%; margin-top: 14px; border-radius: 16px; }

/* плашка «Занимались у нас раньше?» на главной */
.restore-hint { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 12px 10px 12px 14px; border-radius: 18px; background: #f3f4f1; }
.restore-hint .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none; }
.restore-hint .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.restore-hint .t b { font-size: 14px; font-weight: 500; }
.restore-hint .t small { font-size: 12px; color: var(--muted); }
.restore-hint .x { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; flex: none; }
.restore-hint .btn { height: 34px; padding: 0 14px; font-size: 13px; width: auto; flex: none; }

/* ===== v6: медитации ближе — «Практика дня» на главной, полки, плеер (утверждено по наброску 02.10) ===== */
.daily { margin: 14px 12px 0; position: relative; z-index: 3; border-radius: 26px; background: linear-gradient(135deg, #2f4a3a, #4d6b58); color: #fff; padding: 16px 16px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; box-shadow: 0 10px 30px rgba(47, 74, 58, .28); }
.daily .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; color: #fff; }
.daily b { font-size: 18px; font-weight: 500; line-height: 1.25; } .daily small { opacity: .85; font-size: 13px; display: flex; align-items: center; gap: 4px; } .daily small .ms { font-size: 16px; }
.dplay { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--pine); display: grid; place-items: center; grid-row: 1 / span 3; grid-column: 2; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.dplay .ms { font-size: 32px; } .dplay:active { transform: scale(.94); }
.dweek { display: flex; gap: 6px; margin-top: 10px; grid-column: 1 / -1; } .dweek i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); } .dweek i.on { background: #fff; }
.row-h { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; } .row-h b { font-size: 17px; font-weight: 500; }
.row-h button { font-size: 13px; color: var(--pine); display: inline-flex; align-items: center; } .row-h button .ms { font-size: 18px; }
.mrail { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; scroll-snap-type: x mandatory; } .mrail::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 132px; width: 132px; min-width: 0; text-align: left; scroll-snap-align: start; } .mcard .cv { display: block; width: 132px; height: 132px; border-radius: 22px; position: relative; overflow: hidden; background: var(--sage-soft); }
.mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard .m { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.88); color: var(--ink); font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.mcard .pp, .mcard .lk { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; } .mcard .pp .ms { font-size: 20px; }
.mcard .lk { top: 8px; bottom: auto; width: 26px; height: 26px; background: rgba(255,255,255,.88); } .mcard .lk .ms { font-size: 15px; }
.mcard b { display: block; font-size: 13.5px; font-weight: 500; margin-top: 7px; line-height: 1.3; } .mcard small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcont { margin: 12px 16px 0; width: calc(100% - 32px); border-radius: 22px; background: #efecfb; padding: 12px; display: flex; gap: 12px; align-items: center; text-align: left; }
.mcont img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; } .mcont .t { flex: 1; min-width: 0; } .mcont b { font-size: 14px; font-weight: 500; display: block; } .mcont small { font-size: 12px; color: var(--muted); }
.mcont .mini { display: block; height: 4px; border-radius: 2px; background: rgba(138,123,214,.25); margin-top: 6px; } .mcont .mini i { display: block; height: 100%; border-radius: 2px; background: #8a7bd6; }
.mcont .pp { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #8a7bd6; flex: none; }
.lib2 { padding-top: 4px; }
/* плеер */
.pl2 { text-align: center; } .pl-cover { width: min(230px, 62vw); aspect-ratio: 1; border-radius: 34px; overflow: hidden; margin: 12px auto 0; box-shadow: 0 20px 40px rgba(47,74,58,.22); } .pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-t { margin-top: 18px; } .pl-t b { display: block; font-size: 21px; font-weight: 500; } .pl-t small { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; }
.pl-bar { margin: 22px 8px 0; height: 18px; position: relative; cursor: pointer; } .pl-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.1); }
.pl-bar i { position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 2px; background: var(--pine); } .pl-bar i::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pine); }
.pl-times { display: flex; justify-content: space-between; margin: 2px 8px 0; font-size: 12px; color: var(--muted); }
.pl-ctrl { display: flex; justify-content: center; align-items: center; gap: 34px; margin-top: 14px; } .pl-ctrl button { color: var(--ink-2); } .pl-ctrl button .ms { font-size: 30px; }
.pl-ctrl .pl-big { width: 76px; height: 76px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; } .pl-ctrl .pl-big .ms { font-size: 40px; color: #fff; }
.pl-done { margin-top: 18px; } .pl-done small { color: var(--muted); font-size: 12.5px; } .pl-moods { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.pl-moods button { padding: 8px 14px; border-radius: 99px; background: var(--sage-soft); font-size: 13px; } .pl-moods button.on { background: var(--pine); color: #fff; }
/* Кнопка «Видео» — внизу фото, справа (удобно достать большим пальцем) */
.cap-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cap-bot .eyebrow { flex: 1; min-width: 0; }
.cap-bot .vid-btn { position: static; flex: none; }
.ins-video { display: block; width: 100%; border-radius: 22px; background: #000; aspect-ratio: 16 / 9; margin-top: 12px; }

/* Геолокация: переключатель в профиле и «Маршрут» в карточке практики */
.menu button[data-geo] .sw { flex: none; width: 42px; height: 26px; border-radius: 99px; background: rgba(0,0,0,.12); position: relative; transition: background .2s; }
.menu button[data-geo] .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.menu button[data-geo] .sw.on { background: var(--pine); } .menu button[data-geo] .sw.on::after { transform: translateX(16px); }
.route-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--pine); padding: 4px 10px 4px 6px; border-radius: 99px; background: #fff; }
.route-btn .ms { font-size: 16px; }

/* Мини-плеер сверху: звук продолжает играть после закрытия плеера (как в Telegram) */
.mini-pl { position: fixed; z-index: 90; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 8px); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: rgba(29, 33, 30, .92); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: miniIn .25s ease; }
.mini-pl[hidden] { display: none; }
.mini-pl span { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pl button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.mini-pl button:first-child { background: rgba(255,255,255,.16); }
@keyframes miniIn { from { transform: translateY(-20px); opacity: 0; } }

/* Даты в карточке практики: «вы идёте» и «отменено» */
.date .dmark { display: flex; align-items: center; justify-content: center; gap: 1px; margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 500; }
.date .dmark .ms { font-size: 12px; }
.date.mine { box-shadow: inset 0 0 0 2px #4f8a5b; } .date.mine .dmark { color: #2f6b3b; } .date.mine.on .dmark { color: #bfe3c6; }
.date.cx { opacity: .55; } .date.cx b, .date.cx span { text-decoration: line-through; } .date.cx .dmark { color: #c0492b; } .date.cx.on .dmark { color: #ffb4a3; }
.d-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 12px; border-radius: 16px; background: #e8f1e9; color: #2f4a3a; font-size: 13.5px; }
.d-note.cx { background: #fbe9e4; color: #9a3a22; } .d-note .ms { font-size: 18px; } .d-note .link-in { font-size: 13.5px; text-decoration: underline; }
/* Полоса медитаций: карточки ровно по верху (кнопка иначе центрирует содержимое по высоте) */
.mrail { align-items: flex-start; } .mcard { display: flex; flex-direction: column; justify-content: flex-start; align-self: flex-start; }
.date.gone { opacity: .5; } .date.gone .dmark { color: var(--muted); } .date.gone.on .dmark { color: rgba(255,255,255,.75); }
.d-note.gone { background: var(--surface); color: var(--ink-2); }
.visit-go { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.today-how { margin-top: 8px; font-size: 13px; line-height: 1.45; }
.visit-go > img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
/* Перенос записи */
.mv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.mv { padding: 12px 8px; border-radius: 18px; background: var(--surface); text-align: center; } .mv b { display: block; font-weight: 500; font-size: 15px; } .mv small { font-size: 12px; color: var(--muted); }
.visit-mood { background: #eef4ef; }
.armed { box-shadow: 0 0 0 2px #ff7a59 inset !important; }

/* Плавающая «Записаться» внизу при прокрутке: ровная капсула по центру (раньше на неё действовало старое правило круглой кнопки 60×60 — текст резался) */
.cta-bar .btn.bk-float { width: auto; min-width: 176px; height: 46px; padding: 0 30px; border-radius: 999px; margin: 0; flex: none; white-space: nowrap; font-size: 15px; justify-content: center; }
.cta-bar { flex-direction: row; max-width: calc(100% - 24px); }

/* Профиль: «Отзыв / Помощь / Идеи» — три цветные плитки вместо длинного списка */
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 var(--pad, 16px); margin: 14px 0 6px; }
.tl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px 12px; border-radius: 22px; text-align: left; min-height: 104px; }
.tl .ms { font-size: 26px; margin-bottom: auto; } .tl b { font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin-top: 10px; } .tl small { font-size: 11.5px; opacity: .72; line-height: 1.25; }
.tl-a { background: #f6ddd0; color: #8a3b1d; } .tl-b { background: #dce8f5; color: #24527f; } .tl-c { background: #f4ecc9; color: #7a5d0e; }

/* Сообщество: значок мессенджера и число участников */
.pli { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; flex: none; }
.pli-tg { background: #2aabee; } .pli-max { background: #7b4dff; }
.row-card .t b .via { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px 2px 3px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 500; vertical-align: 1px; }
.via-tg { background: #e3f3fc; color: #1c7aa8; } .via-max { background: #ece6ff; color: #5632b8; }
.mem-by { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.9); } .mem-by span { display: inline-flex; align-items: center; gap: 5px; }

/* Значок админки — на всех экранах, только у сотрудников; стоит вверху, слева от правых кнопок экрана (аватар, колокольчик…) — место считает fabPlace() */
.admin-fab { position: absolute; top: calc(var(--top) + 2px); right: calc(var(--pad) + 52px); z-index: 25; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.admin-fab[hidden] { display: none; } .admin-fab .ms { font-size: 21px; }

/* Выбор города — компактный список от кнопки (вместо листа на полэкрана) */
.city-pop { position: absolute; z-index: 60; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 40px -12px rgba(20, 30, 24, .35), 0 0 0 1px rgba(20, 30, 24, .06); opacity: 0; transform: scale(.94); transition: opacity .16s ease, transform .18s ease; pointer-events: none; max-height: 60cqh; overflow-y: auto; }
.city-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.city-pop .cp-h { padding: 8px 10px 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.city-pop .cp-h small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.city-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 13px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
.city-pop button > i, .city-pop button > .ms { width: 18px; flex: none; font-size: 18px; color: var(--pine); }
.city-pop button span { flex: 1; min-width: 0; }
.city-pop button small { font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.city-pop button.on { background: var(--surface); }
.city-pop button:active { background: var(--surface); }

/* Карточка практики: «Когда/Где» — значок слева; даты — средние, лица ведущих накладываются на низ даты и друг на друга */
.facts2 > div { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-radius: 18px; }
.facts2 > div > .ms { font-size: 19px; margin-top: 1px; flex: none; }
.facts2 > div > span { min-width: 0; }
.facts2 small { margin-top: 0; font-size: 11px; }
.facts2 b { font-size: 14px; line-height: 1.35; margin-top: 2px; }
.facts2 b.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dates { gap: 7px; padding-bottom: 14px; }
.date { width: 60px; padding: 9px 0 17px; border-radius: 18px; }
.date b { font-size: 20px; margin: 2px 0 1px; }
.date small { font-size: 10.5px; }
.date span { font-size: 11px; }
.date .who { width: 26px; height: 26px; bottom: -11px; }
.dates .date i.who > img, .dates .date i.who > span { width: 26px; height: 26px; font-size: 11px; }
.dates .date i.who.many > * + * { margin-left: -11px; }
.date .dmark { margin-top: 3px; font-size: 9.5px; line-height: 1.1; }
.date.mine { box-shadow: inset 0 0 0 1.5px #4f8a5b; }.onsite-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 500; }
.onsite-note .ms { font-size: 18px; color: var(--pine); }

/* Мои записи: дата крупно слева, действия — цветные кнопки с подписями */
.mb-row { padding: 10px; border-radius: 18px; background: var(--surface); min-width: 0; box-sizing: border-box; }
.mb-row.dim { opacity: .55; }
.mb-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mb-date { flex: none; width: 52px; padding: 6px 0 5px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.mb-date b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.mb-date small { font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.mb-date i { font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.mb-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mb-row .t b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-row .t small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-st { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--pine); }
.mb-st.wait { color: #c0492b; } .mb-st.past { color: var(--muted); }
.mb-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 9px; }
.mb-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 46px; border-radius: 13px; font-size: 11px; font-weight: 500; line-height: 1.1; }
.mb-b .ms { font-size: 18px; line-height: 1; }
.mb-b.b-pay { background: var(--coral); color: #fff; }
.mb-b.b-move { background: #e3ece1; color: #2f5d3a; }
.mb-b.b-off { background: #fbe4dd; color: #b24a2e; }
.mb-b.b-cal { background: #e3edf6; color: #2c5a85; }

/* Сообщество: каналы и чаты — по мессенджерам, компактным списком */
.comm-list { margin: 14px var(--pad) 0; }
.cl-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; margin: 10px 4px 6px; }
.cl-box { border-radius: 18px; background: var(--surface); overflow: hidden; }
.cl-r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; }
.cl-r + .cl-r { border-top: 1px solid rgba(20, 30, 24, .07); }
.cl-r > .ms { font-size: 20px; color: var(--pine); flex: none; }
.cl-r > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-r b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-r small { font-size: 12px; color: var(--muted); }
.cl-r .go { font-size: 18px; color: var(--muted); }
.stack > .mb-row { min-width: 0; } .stack:has(> .mb-row) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
