:root {
  --green: #00a884;
  --green-dark: #008069;
  --green-soft: #d9fdd3;
  --green-tint: #e7f6f1;
  --badge: #25d366;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --ink: #111b21;
  --muted: #667781;
  --line: #e9edef;
  --line-2: #d1d7db;
  --danger: #e5484d;
  --chat-bg: #efeae2;
  --out: #d9fdd3;
  --tick: #53bdeb;
  --focus: #1d6fd6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 20, 26, .08), 0 1px 1px rgba(11, 20, 26, .04);
  --shadow-soft: 0 8px 30px rgba(11, 20, 26, .08), 0 2px 6px rgba(11, 20, 26, .05);
  --surface-glass: rgba(255, 255, 255, .72);
  --surface-glass-strong: rgba(255, 255, 255, .85);
  --glass-border: rgba(255, 255, 255, .65);
  --top-h: 60px;
  --side-w: 240px;
  /* Тонкий узор вязаных петель поверх цветных блоков */
  --knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18'%3E%3Cpath d='M2 1.5c1.6 5.5 4.8 9.5 9 13.5M20 1.5c-1.6 5.5-4.8 9.5-9 13.5' fill='none' stroke='%23fff' stroke-opacity='.075' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* Узор для курсов: цепочка воздушных петель, как при вязании крючком */
  --chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.3'%3E%3Cellipse cx='6.5' cy='6.5' rx='3.4' ry='1.9' transform='rotate(45 6.5 6.5)'/%3E%3Cellipse cx='19.5' cy='19.5' rx='3.4' ry='1.9' transform='rotate(45 19.5 19.5)'/%3E%3C/g%3E%3C/svg%3E");
  --course-bg: linear-gradient(160deg, #7a2435, #4e1522);
  --course-accent: #f1cf9a;
  font-size: 17px;
}
:root[data-size="lg"] { font-size: 20px; }
:root[data-size="xl"] { font-size: 23px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body {
  background-attachment: fixed;
  background-image:
    radial-gradient(55% 45% at 12% 6%, rgba(0, 168, 132, .16), transparent 70%),
    radial-gradient(45% 40% at 88% 12%, rgba(53, 189, 235, .14), transparent 70%),
    radial-gradient(50% 45% at 82% 88%, rgba(225, 160, 0, .12), transparent 70%),
    radial-gradient(55% 50% at 8% 90%, rgba(180, 120, 200, .12), transparent 70%),
    linear-gradient(180deg, #eef8f4 0%, #e9f2f6 35%, #f3eef8 75%, #f7f3ec 100%);
}
body.has-overlay { overflow: hidden; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.6rem; }
p { margin: 0 0 .9em; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
.ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 12px 20px; z-index: 100; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.h3 { font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- Верхняя панель ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--knit) 0 0 / 22px 18px, linear-gradient(90deg, #00735e, var(--green-dark) 40%, #008a72); background-color: rgba(0, 115, 94, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #fff; height: var(--top-h); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 30px rgba(11, 20, 26, .14); }
/* Стеклянный блик на тёмных поверхностях: полупрозрачная светлая подсветка сверху + тонкая светлая кромка */
.topbar::after, .course::after, .feed-course::after, .course-hero::after, .club-card::after, .club-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 28%, transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.topbar__in { max-width: 1320px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 20px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; width: calc(var(--side-w) - 20px); }
.logo:hover { text-decoration: none; }
.logo__svg { height: 46px; width: auto; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.topsearch { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border-radius: 22px; padding: 0 14px; height: 42px; color: rgba(255, 255, 255, .85); }
.topsearch:focus-within { background: #fff; color: var(--muted); }
.topsearch input { flex: 1; border: 0; outline: none; background: transparent; color: inherit; min-width: 0; font-size: .95rem; }
.topsearch input::placeholder { color: rgba(255, 255, 255, .8); }
.topsearch:focus-within input::placeholder { color: var(--muted); }
input::placeholder, textarea::placeholder { color: #8696a0; opacity: 1; }
.topsearch:focus-within input { color: var(--ink); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-link { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.icon-link:hover { background: rgba(255, 255, 255, .12); }
.top-me { flex: none; display: flex; align-items: center; gap: 8px; margin-left: 6px; padding: 3px 12px 3px 3px; border-radius: 22px; color: #fff; background: rgba(255, 255, 255, .12); max-width: 210px; }
.top-me:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }
.top-me[aria-current="page"] { background: rgba(255, 255, 255, .24); }
.top-me .ava { border: 2px solid rgba(255, 255, 255, .6); }
.top-me__name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-link--search { display: none; }
.club-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; margin-right: 6px; border-radius: 18px; color: #4a3300; font-weight: 700; font-size: .92rem; background: linear-gradient(135deg, #f7dd8a, #e2b04a 55%, #c9922b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 3px rgba(0, 0, 0, .18); }
.club-pill:hover { text-decoration: none; filter: brightness(1.06); }
.club-pill[aria-current="page"] { box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .18); }
.club-pill .ico { width: 18px; height: 18px; }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--badge); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- Каркас ---------- */
.layout { max-width: 1320px; margin: 0 auto; display: flex; gap: 20px; padding: 0 16px; }
.sidenav { width: var(--side-w); flex: none; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 16px 0; display: flex; flex-direction: column; }
.sidenav__list { display: grid; gap: 2px; }
.sidenav__list a, .sidenav__list button { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 500; position: relative; border: 0; background: transparent; text-align: left; font-size: 1rem; }
.sidenav__list a:hover, .sidenav__list button:hover { background: #e4e7ea; text-decoration: none; }
.sidenav__list .ico { color: var(--muted); }
.sidenav__list a[aria-current="page"] { background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.sidenav__list a[aria-current="page"] .ico { color: var(--green-dark); }
.sidenav__list .badge-count { position: static; margin-left: auto; }
.sidenav hr { border: 0; border-top: 1px solid var(--line-2); margin: 10px 14px; }
.sidenav__foot { margin-top: auto; padding: 0 14px; font-size: .78rem; color: var(--muted); }
main { flex: 1; min-width: 0; padding: 20px 0 48px; outline: none; }
.tabbar { display: none; }

.page { max-width: 1040px; }
.page--narrow { max-width: 640px; margin: 0 auto; }
.page--feed { display: grid; grid-template-columns: minmax(0, 620px) 320px; gap: 20px; align-items: start; max-width: 960px; }
.page-title { font-size: 1.5rem; margin: 4px 0 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head .page-title { margin-bottom: 12px; }
.section { margin-top: 32px; }
.section-title { font-size: 1.15rem; margin: 28px 0 12px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Базовые элементы ---------- */
.card { background: var(--surface-glass); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 22px; border-radius: 24px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn .ico { width: 20px; height: 20px; }
.btn--ghost { background: var(--surface); color: var(--green-dark); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--green-tint); border-color: var(--green-tint); }
.btn--soft { background: var(--green-tint); color: var(--green-dark); border-color: transparent; }
.btn--soft:hover { background: var(--green-soft); }
.btn--white { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--white:hover { background: #f0fff4; color: var(--green-dark); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns--center { justify-content: center; }
.link-btn { border: 0; background: none; color: var(--danger); padding: 8px 0; margin-top: 10px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgba(11, 20, 26, .06); }
.icon-btn--green { color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 20px; border: 1px solid var(--glass-border); background: var(--surface-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-weight: 500; font-size: .95rem; }
.chip:hover { text-decoration: none; border-color: var(--green); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 18px; background: #fff7e0; color: #7a5a00; font-size: .88rem; font-weight: 600; }
.pill .ico { width: 18px; height: 18px; }
.pill--ok { background: var(--green-tint); color: var(--green-dark); }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(17, 27, 33, .78); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--green-tint); color: var(--green-dark); font-size: .78rem; font-weight: 600; }
.stars { color: #e0a100; font-weight: 600; white-space: nowrap; }
.dot { color: var(--line-2); }
.credit { display: block; font-size: .72rem; color: var(--muted); padding: 4px 16px 0; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); background: var(--surface-glass); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); display: grid; justify-items: center; gap: 8px; }
.empty .ico { width: 48px; height: 48px; color: var(--line-2); }
.empty h2 { color: var(--ink); margin: 0; }
.empty--big { padding: 56px 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.err { background: #fde8e8; color: #b42318; font-weight: 600; padding: 10px 14px; border-radius: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 16px 0; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--green); }

.ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1rem; flex: none; overflow: hidden; }
.ava--xs { width: 24px; height: 24px; font-size: .6rem; }
.ava--sm { width: 36px; height: 36px; font-size: .78rem; }
.ava--md { width: 44px; height: 44px; font-size: .88rem; }
.ava--emoji { font-size: 1.4rem; }
.ava--brand { background: var(--green); }
.ava--brand svg { width: 70%; height: 70%; }
.verified { width: 18px; height: 18px; fill: var(--badge); display: inline-block; vertical-align: -3px; }

/* ---------- Формы ---------- */
.form { padding: 20px; display: grid; gap: 14px; margin-bottom: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select, .review-form input, .review-form select, .sort select { font-size: 1rem; background: #fff; padding: 10px 14px; min-height: 48px; border: 1px solid var(--line-2); border-radius: 10px; width: 100%; }
.field input:focus, .field textarea:focus, .review-form input:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; cursor: pointer; min-height: 58px; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.radio-card b { display: block; font-weight: 600; }
.radio-card small { color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-tint); }

/* ---------- Лента ---------- */
.feed-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.stories-card { padding: 14px 12px 10px; }
.stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-btn { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; flex: none; }
.story-btn__ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: var(--green); display: grid; place-items: center; position: relative; }
.story-btn.is-seen .story-btn__ring { background: var(--line-2); }
.story-btn__ring .ava { width: 64px; height: 64px; border: 3px solid var(--surface); }
.story-btn__name { font-size: .8rem; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-btn__plus { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; border: 2px solid #fff; display: grid; place-items: center; }
.story-btn__plus .ico { width: 16px; height: 16px; }
.story-btn--me .story-btn__ring { background: transparent; }
.composer-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.composer-box__input { flex: 1; text-align: left; border: 0; background: var(--bg); color: var(--muted); border-radius: 22px; min-height: 44px; padding: 0 16px; }
.composer-box__input:hover { background: #e8ebee; }

.post { background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.post__head a { color: var(--ink); }
.post__head b { display: block; font-weight: 600; }
.post__head small { color: var(--muted); font-size: .84rem; }
.post__cap { padding: 0 16px 12px; }
.post__img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--line); user-select: none; }
.post__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post__img--static { cursor: default; }
.burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.burst svg { width: 120px; height: 120px; fill: #fff; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); animation: burst .8s ease-out forwards; }
@keyframes burst { 0% { transform: scale(0); opacity: 0; } 20% { transform: scale(1.2); opacity: 1; } 40% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.post__links { display: grid; }
.post__shop { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.post__shop:hover { background: #f7f8fa; text-decoration: none; }
.post__shop img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.post__shop > span:nth-child(2) { flex: 1; min-width: 0; }
.post__shop b { display: block; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__shop small { color: var(--muted); }
.post__shop-btn { color: var(--green-dark); font-weight: 700; font-size: .92rem; }
.post__actions { display: flex; gap: 4px; padding: 6px 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 0; background: var(--bg); color: var(--muted); font-weight: 600; font-size: .92rem; }
.act:hover { background: #e4e7ea; text-decoration: none; }
.act .ico { width: 22px; height: 22px; }
.act.liked { color: var(--danger); background: #fdecec; }
.act--save { margin-left: auto; }
.act--save.is-on { color: var(--green-dark); background: var(--green-tint); }
.post__comments { padding: 4px 16px 0; border-top: 1px solid var(--line); }
.post__more { border: 0; background: none; color: var(--muted); padding: 8px 0 2px; font-size: .9rem; }
.post__comment { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: .95rem; }
.post__comment b { font-weight: 600; }
.post__form { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px 16px; }
.post__form input { flex: 1; border: 0; outline: none; min-height: 40px; font-size: .95rem; background: var(--bg); border-radius: 20px; padding: 0 14px; min-width: 0; }
.post__form button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.post__form button:disabled { background: var(--line-2); cursor: default; }
.post__form button .ico { width: 20px; height: 20px; }
/* Интеграции в ленте: курс — тёмная видеокарточка, товар — горизонтальный блок */
.feed-course { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--chain) 0 0 / 26px 26px, var(--course-bg); box-shadow: var(--shadow-soft); }
.feed-course__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--course-accent); font-weight: 700; font-size: .88rem; }
.feed-course__head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.feed-course__head .ico { width: 18px; height: 18px; }
.feed-course__promo { color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .78rem; background: rgba(255, 255, 255, .12); padding: 2px 10px; border-radius: 10px; }
.feed-course__media { position: relative; display: block; margin: 0 12px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #4e1522; }
.feed-course__media img { width: 100%; height: 100%; object-fit: cover; }
.feed-course__body { padding: 14px 16px 16px; }
.feed-course__body h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.feed-course__body p { color: rgba(255, 255, 255, .8); margin-bottom: 12px; }
.feed-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-course .product__meta { color: rgba(255, 255, 255, .72); }
.feed-product { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.feed-product__img { display: block; border-radius: 10px; overflow: hidden; background: #f3f4f5; align-self: start; }
.feed-product__img img { width: 128px; height: 128px; object-fit: cover; }
.feed-product__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed-product__kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.feed-product__kicker .ico { width: 16px; height: 16px; color: var(--green); }
.feed-product__name { color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.feed-product__body p { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.feed-product__foot .btn .ico { width: 18px; height: 18px; }
.post__who { flex: 1; min-width: 0; }
.follow-link { border: 0; background: none; color: var(--green-dark); font-weight: 700; font-size: .9rem; padding: 8px 4px; white-space: nowrap; }
.follow-link:hover { text-decoration: underline; }
.follow-link.is-on { color: var(--muted); font-weight: 500; }
.promo-tag { color: var(--muted); }
.post--promo .post__head { padding-bottom: 10px; }
.post--promo .post__cap { padding-top: 12px; }
.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--green-tint); color: var(--green-dark); font-weight: 700; font-size: .95rem; border-bottom: 1px solid #d3eee5; }
.cta-bar:hover { background: var(--green-soft); text-decoration: none; }
.cta-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-badge { position: absolute; right: 10px; bottom: 10px; background: rgba(17, 27, 33, .78); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.post__img--video::after, .course__play { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(17, 27, 33, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 34px no-repeat; backdrop-filter: blur(2px); }
.course__play .ico { display: none; }
.post__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.club-card { position: relative; display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: var(--radius); color: #fff; background: var(--knit) 0 0 / 22px 18px, linear-gradient(135deg, #008069, #00a884 60%, #25d366); box-shadow: var(--shadow-soft); }
.club-card:hover { text-decoration: none; }
.club-card b { font-size: 1.15rem; line-height: 1.3; }
.club-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; opacity: .9; }
.club-card__tag .ico { width: 18px; height: 18px; }

.rail { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 14px; align-content: start; max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 16px; margin: -2px -4px 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail-me { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); }
.rail-me:hover { text-decoration: none; background: #fafbfb; }
.rail-me b { display: block; }
.rail-box { padding: 16px; }
.rail-person { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rail-person__name { flex: 1; min-width: 0; color: var(--ink); line-height: 1.25; }
.rail-person__name b { display: block; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-person__name small { font-size: .8rem; }
.rail-person .btn { min-height: 34px; padding: 4px 12px; font-size: .82rem; }
.rail-more { display: block; margin-top: 8px; font-weight: 600; font-size: .92rem; }
.mini-product { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--ink); }
.mini-product:hover { text-decoration: none; }
.mini-product img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-product b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.mini-product .price b { font-size: .95rem; }
.mini-list { padding: 8px 16px; }

/* ---------- Мастерицы и профиль ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: grid; justify-items: center; text-align: center; padding-bottom: 16px; }
.person__cover { width: 100%; height: 90px; background: var(--green-tint) center/cover; }
.person__ava { margin-top: -30px; }
.person__ava .ava { width: 64px; height: 64px; border: 3px solid #fff; font-size: 1.2rem; }
.person__name { color: var(--ink); font-weight: 600; margin-top: 6px; padding: 0 10px; }
.person small { color: var(--muted); margin-bottom: 10px; }
.profile { background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.profile__cover { height: 200px; background: var(--green-tint) center/cover; }
.profile__body { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px 16px; flex-wrap: wrap; }
.profile__ava { margin-top: -50px; border: 0; padding: 0; background: none; position: relative; border-radius: 50%; }
.profile__ava .ava { width: 120px; height: 120px; border: 4px solid #fff; font-size: 2rem; }
.profile__cam { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.profile__cam .ico { width: 18px; height: 18px; }
.profile__info { flex: 1; min-width: 220px; padding-top: 12px; }
.profile__info h1 { margin: 0 0 2px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__info p { margin: 0 0 4px; }
.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profile__stats { display: flex; border-top: 1px solid var(--line); }
.profile__stats span { flex: 1; text-align: center; padding: 12px 6px; color: var(--muted); font-size: .88rem; }
.profile__stats b { display: block; color: var(--ink); font-size: 1.15rem; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { text-decoration: none; background: #fafbfb; }
.order-row small { display: block; }
.order-row > span:last-child { text-align: right; }
.status { color: var(--green-dark); font-weight: 600; }

/* ---------- Маркет ---------- */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-glass); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 0 18px; height: 50px; color: var(--muted); margin-bottom: 14px; }
.searchbar input { flex: 1; border: 0; outline: none; background: transparent; font-size: 1rem; min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.sort select { width: auto; min-height: 40px; padding: 6px 12px; border-radius: 20px; }
/* Товар: рамка вместо тени и фото на светлой подложке — как на маркетплейсе, не как пост */
.product { background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s, transform .2s; }
.product:hover { border-color: var(--green); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.product__img { position: relative; display: block; aspect-ratio: 1; margin: 8px 8px 0; border-radius: 10px; overflow: hidden; background: #f3f4f5; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img .badge { top: 8px; left: 8px; background: var(--green); }
.product__price .price b { font-size: 1.2rem; }
.product__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__name { color: var(--ink); font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; flex-wrap: wrap; min-width: 0; }
.product__meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product__body .btn { margin-top: auto; }
.product__body .product__meta { margin-bottom: 6px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price b { font-size: 1.1rem; }
.price s { color: var(--muted); font-size: .88rem; }
.price__club { color: var(--green-dark); font-size: .82rem; font-weight: 600; }
.price--big b { font-size: 1.8rem; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.pdp__media { position: sticky; top: calc(var(--top-h) + 20px); background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.pdp__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp__media .credit { padding: 6px 12px 8px; }
.pdp__info { padding: 22px; }
.pdp__info h1 { font-size: 1.45rem; margin-bottom: 6px; }
.pdp__price { margin: 14px 0 8px; }
.opts { border: 0; padding: 0; margin: 16px 0; }
.opts legend { margin-bottom: 8px; color: var(--muted); }
.opts legend b { color: var(--ink); }
.opt { margin: 0 6px 6px 0; cursor: pointer; }
.opt--color { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.opt--color.is-on { box-shadow: 0 0 0 2px var(--green); }
.opt--text { min-height: 40px; min-width: 52px; padding: 4px 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; }
.opt--text.is-on { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.pdp__buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.pdp__buy .btn { flex: 1; }
.pdp__delivery { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.pdp__delivery .ico { width: 20px; height: 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 24px; background: var(--surface); flex: none; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.3rem; color: var(--green-dark); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.qty--sm button { width: 36px; height: 38px; }
.seller { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: 12px; margin: 14px 0; }
.seller > div { flex: 1; min-width: 0; line-height: 1.3; }
.seller small, .seller b { display: block; }
.seller b { color: var(--ink); }
.specs { margin: 0; }
.specs div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); width: 40%; flex: none; }
.specs dd { margin: 0; }
.reviews { display: grid; gap: 10px; }
.review { display: flex; gap: 12px; padding: 14px 16px; }
.review b { font-weight: 600; }
.review p { margin: 4px 0 0; }
.review-form { display: flex; gap: 10px; align-items: center; padding: 14px 16px; margin-top: 10px; flex-wrap: wrap; }
.review-form input { flex: 1; min-width: 200px; }
.review-form select { width: auto; }

.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row__img img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.cart-row__info { display: grid; gap: 2px; min-width: 0; }
.cart-row__info a { color: var(--ink); }
.cart-row__info b { font-weight: 600; }
.cart-row__info small { color: var(--muted); }
.cart-row__sum { white-space: nowrap; }
.summary { padding: 18px; position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 4px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary__row--save { color: var(--green-dark); font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; font-weight: 700; }
.summary .pill { margin: 6px 0; justify-content: center; }
.summary .btn { margin-top: 8px; }
.done { padding: 36px 24px; text-align: center; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.done__icon .ico { width: 40px; height: 40px; }
.timeline { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: t; }
.timeline li { position: relative; padding-top: 38px; font-size: .85rem; color: var(--muted); counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; }
.timeline li.is-done { color: var(--ink); font-weight: 600; }
.timeline li.is-done::before { content: "✓"; background: var(--green); color: #fff; }
.order-items { text-align: left; border-top: 1px solid var(--line); margin: 18px 0; }
.order-items div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Курсы ---------- */
/* Курс: тёмно-зелёная «видеоплитка» с узором петель — заметна, но спокойна */
.course { position: relative; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: var(--chain) 0 0 / 26px 26px, var(--course-bg); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.course:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(78, 21, 34, .35); }
.course .course__img { margin: 8px 8px 0; border-radius: 10px; }
.course__body h3 { color: #fff; }
.course .product__meta, .course .muted { color: rgba(255, 255, 255, .72); }
.course .course__kicker { color: var(--course-accent); }
.course .course__price { color: #fff; }
.course .course__price--ok { color: var(--course-accent); }
.course .ava { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.course .badge { background: var(--course-accent); color: #4e1522; }
.course__img { position: relative; aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.course__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course__body { padding: 12px 16px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.course__body h3 { font-size: 1.05rem; margin: 0; }
.course__kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: .8rem; font-weight: 700; }
.course__kicker .ico { width: 16px; height: 16px; }
.course__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.course__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .45); }
.course__progress span { display: block; height: 100%; background: var(--badge); }
.mini-product__thumb { position: relative; flex: none; }
.mini-product__thumb img { width: 84px; height: 56px; }
.mini-product__thumb > span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.mini-product__thumb > span .ico { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.mini-product--course small { display: block; }
.course__price { font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 6px; }
.course__price--ok { color: var(--green-dark); font-size: .95rem; }
.course__price .ico { width: 18px; height: 18px; }
.promo { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; color: var(--ink); flex-wrap: wrap; }
.promo:hover { text-decoration: none; }
.promo > span:nth-child(2) { flex: 1; min-width: 200px; }
.promo b, .promo small { display: block; }
.promo small { color: var(--muted); }
.promo__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); display: grid; place-items: center; }
/* Шапка курса — в том же бордовом стиле, что карточки курсов и анонсы в ленте */
.course-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; color: #fff; background: var(--chain) 0 0 / 26px 26px, var(--course-bg); box-shadow: var(--shadow-soft); }
.course-hero__img { position: relative; display: block; margin: 12px; border-radius: 10px; overflow: hidden; min-height: 300px; background: #4e1522; }
.course-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-hero__info { padding: 24px 24px 24px 12px; display: grid; gap: 10px; align-content: start; }
.course-hero__info h1 { margin: 0; color: #fff; }
.course-hero__info p { margin: 0; color: rgba(255, 255, 255, .85); }
.course-hero .course__kicker { color: var(--course-accent); }
.course-hero .product__meta, .course-hero .muted { color: rgba(255, 255, 255, .72); }
.course-hero .ava { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.course-hero .buy { border-top-color: rgba(255, 255, 255, .16); }
.course-hero .bar { background: rgba(255, 255, 255, .18); }
.course-hero .bar > span { background: var(--course-accent); }
.course-hero .btn { background: var(--course-accent); border-color: var(--course-accent); color: #4e1522; }
.course-hero .btn:hover { background: #f7dcae; border-color: #f7dcae; }
.course-hero .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.course-hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.teacher { display: flex; align-items: center; gap: 10px; margin: 6px 0; line-height: 1.3; }
.teacher b, .teacher small { display: block; }
.buy { display: grid; gap: 8px; justify-items: start; padding-top: 10px; border-top: 1px solid var(--line); }
.buy .bar { width: 100%; }
.buy__price { font-size: 1.6rem; font-weight: 700; }
.course-cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.checklist { list-style: none; padding: 14px 18px; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--green); width: 22px; height: 22px; }
.program { display: grid; gap: 8px; }
.module summary { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.lesson-list { list-style: none; padding: 0 8px 8px; margin: 0; }
.lesson-list a, .lesson-list .is-locked { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); min-height: 48px; }
.lesson-list a:hover { background: var(--bg); text-decoration: none; }
.lesson-list a[aria-current="page"] { background: var(--green-tint); font-weight: 600; }
.lesson-list .is-locked { color: var(--muted); }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.num .ico { width: 15px; height: 15px; }
.num.is-done { background: var(--green); color: #fff; }
.lesson-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.lesson-side { padding: 16px 8px 8px; position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto; }
.lesson-side .h3 { padding: 0 10px; }
.lesson-title { margin-top: 16px; font-size: 1.35rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video > img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--green-dark); display: grid; place-items: center; }
.video__play .ico { width: 40px; height: 40px; }
.video__bar { position: absolute; left: 16px; right: 80px; bottom: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.video__bar span { display: block; height: 100%; width: 0; background: #fff; }
.video.is-playing .video__bar span { animation: video 60s linear forwards; }
@keyframes video { to { width: 100%; } }
.video__time { position: absolute; right: 16px; bottom: 10px; color: #fff; font-weight: 600; font-size: .9rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lesson-intro { padding: 20px; }
.lesson-intro h1 { margin: 4px 0 8px; }
.lesson-intro .need { margin: 12px 0 0; }
.steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; counter-increment: step; }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 700; color: var(--green-dark); }
.step.is-done::before { content: "✓"; background: var(--green); color: #fff; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tip { padding: 14px 18px; margin-top: 10px; }

/* ---------- Клуб ---------- */
.club-hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--knit) 0 0 / 22px 18px, linear-gradient(135deg, #008069, #00a884); box-shadow: var(--shadow-soft); }
.club-hero > div { padding: 30px; display: grid; gap: 10px; align-content: center; }
.club-hero h1 { font-size: 1.8rem; margin: 0; }
.club-hero p { margin: 0; opacity: .95; }
.club-hero__tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; opacity: .9; }
.club-hero__tag .ico { width: 20px; height: 20px; }
.club-hero__ok { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 12px; font-weight: 600; justify-self: start; }
.club-hero__ok .ico { width: 20px; height: 20px; }
.club-hero__img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; }
.benefit { display: flex; gap: 12px; padding: 14px 16px; }
.benefit .ico { color: var(--green); }
.benefit b, .benefit small { display: block; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 14px; }
.plan { position: relative; padding: 22px; display: grid; gap: 8px; align-content: start; border: 2px solid transparent; }
.plan--best { border-color: var(--green); }
.plan--current { border-color: var(--green); background: var(--green-tint); }
.plan .badge { left: auto; right: 14px; top: -12px; background: var(--green); }
.plan__price { font-size: 1.8rem; font-weight: 700; }
.plan__price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan__now { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; }
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq p { padding: 0 18px 14px; margin: 0; color: var(--muted); }

/* ---------- Сообщения ---------- */
.chat-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chat-title h1 { margin: 0; font-size: 1.5rem; }
.online { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-dark); font-size: .92rem; }
.online::before { content: ""; width: 10px; height: 10px; background: var(--badge); border-radius: 50%; }
.messenger { display: grid; grid-template-columns: 360px 1fr; height: max(540px, calc(100vh - var(--top-h) - 110px)); background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.m-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.m-list__head { padding: 14px 16px 8px; display: flex; align-items: center; gap: 10px; }
.m-list__head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.new-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--green-tint); color: var(--green-dark); border-radius: 20px; padding: 6px 14px; min-height: 40px; font-weight: 600; }
.new-btn .ico { width: 20px; height: 20px; }
.search { padding: 4px 12px 6px; }
.search label { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 0 12px; min-height: 42px; color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; }
.filters { display: flex; gap: 6px; padding: 6px 12px 10px; overflow-x: auto; }
.filters button { border: 0; background: var(--bg); color: var(--muted); border-radius: 18px; padding: 6px 14px; min-height: 36px; font-weight: 600; white-space: nowrap; font-size: .88rem; }
.filters button[aria-pressed="true"] { background: var(--green-soft); color: var(--green-dark); }
.m-list__body { flex: 1; overflow-y: auto; }
.list-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.row-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-left: 14px; color: var(--ink); min-height: 72px; }
.row-item:hover { background: #f5f6f6; text-decoration: none; }
.row-item[aria-current="true"] { background: var(--bg); }
.row-item__text { border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.row-item__top, .row-item__bottom { display: flex; align-items: center; gap: 8px; }
.row-item__name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item__time { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.row-item__time.is-unread { color: #1fa855; font-weight: 700; }
.row-item__prev { flex: 1; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--badge); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.pin { font-size: .8rem; }
.m-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--surface); }
.m-head__back { display: none; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); place-items: center; flex: none; }
.m-head__who { flex: 1; min-width: 0; }
.m-head__who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head__who small { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head__who small.is-typing { color: var(--green-dark); font-weight: 600; }
.m-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); background: #f7f8fa; border-bottom: 6px solid var(--badge); }
.m-empty__art { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); margin-bottom: 18px; }
.m-empty__art .ico { width: 56px; height: 56px; }
.m-empty h2 { color: var(--ink); font-weight: 500; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.chat-bg {
  /* Узор тон в тон, как тиснение: клубок, цветок, пуговица, сердце — почти не спорят с сообщениями */
  background-color: #ece4d8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='%237a5c44' fill-opacity='.075'%3E%3Ccircle cx='24' cy='24' r='6'/%3E%3Ccircle cx='72' cy='68' r='2.6'/%3E%3Ccircle cx='72' cy='76' r='2.6'/%3E%3Ccircle cx='68' cy='72' r='2.6'/%3E%3Ccircle cx='76' cy='72' r='2.6'/%3E%3Ccircle cx='72' cy='24' r='5'/%3E%3Cpath d='M24 77c-4-3.2-6.4-5.2-6.4-7.6a2.9 2.9 0 0 1 6.4-1 2.9 2.9 0 0 1 6.4 1c0 2.4-2.4 4.4-6.4 7.6z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ece4d8' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M19 21.5c3 2.4 7 2.8 10.5 1.2M18.5 25.5c3.2 2.4 8 2.4 11 0M22.5 18c-2.5 3.6-2.5 8 .4 11.6'/%3E%3C/g%3E%3Cg fill='%23ece4d8'%3E%3Ccircle cx='72' cy='72' r='1.3'/%3E%3Ccircle cx='70.4' cy='22.4' r='.9'/%3E%3Ccircle cx='73.6' cy='22.4' r='.9'/%3E%3Ccircle cx='70.4' cy='25.6' r='.9'/%3E%3Ccircle cx='73.6' cy='25.6' r='.9'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #efe8dd, #e8dfd2);
}
.chat-bg .notice { background: rgba(255, 238, 205, .95); }
.chat-bg .bubble.big-emoji .bubble__who { display: inline-block; background: rgba(255, 255, 255, .92); padding: 1px 8px; border-radius: 8px; }
.msgs { padding: 14px 6% 18px; display: flex; flex-direction: column; }
.notice { align-self: center; max-width: 92%; background: #ffeecd; color: #54656f; font-size: .8rem; text-align: center; padding: 6px 12px; border-radius: 8px; margin: 4px 0 10px; }
.sep { align-self: center; background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 8px; margin: 12px 0 8px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.line { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; position: relative; }
.line.is-first { margin-top: 10px; }
.line.out { justify-content: flex-end; }
.line.has-react { margin-bottom: 20px; }
.line__ava { width: 36px; flex: none; align-self: flex-start; }
.bubble { position: relative; max-width: min(78%, 560px); background: var(--surface); border-radius: 10px; padding: 6px 10px 6px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); font-size: 1rem; word-wrap: break-word; cursor: pointer; }
.out .bubble { background: var(--out); }
.is-first .bubble.in { border-top-left-radius: 2px; }
.is-first.out .bubble { border-top-right-radius: 2px; }
.bubble__who { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 2px; }
.bubble__text { white-space: pre-wrap; }
.bubble.big-emoji { background: transparent; box-shadow: none; padding: 0 4px; }
.bubble.big-emoji .bubble__text { font-size: 2.4rem; line-height: 1.2; }
.bubble.big-emoji .stamp { background: rgba(255, 255, 255, .85); padding: 0 6px; border-radius: 8px; }
.stamp { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 12px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.tick { width: 18px; height: 12px; color: #8696a0; }
.tick.is-read { color: var(--tick); }
.photo { display: block; margin: -2px -6px 6px; border-radius: 8px; overflow: hidden; width: min(320px, 64vw); aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--line); cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo + .bubble__text { display: block; max-width: min(320px, 64vw); }
.voice { display: flex; align-items: center; gap: 10px; min-width: min(260px, 60vw); padding: 2px 0; }
.voice__play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.voice__play:disabled { opacity: .4; }
.voice__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; }
.voice__wave i { flex: 1; background: #b4c0c6; border-radius: 2px; min-width: 2px; }
.voice__wave i.on { background: var(--green-dark); }
.voice__dur { font-size: .76rem; color: var(--muted); min-width: 34px; }
.voice__text { font-size: .88rem; color: var(--muted); font-style: italic; border-top: 1px solid rgba(0, 0, 0, .06); padding-top: 6px; margin-top: 4px; }
.reacts { position: absolute; bottom: -18px; display: flex; gap: 2px; background: #fff; border-radius: 14px; padding: 2px 8px; box-shadow: 0 1px 3px rgba(11, 20, 26, .2); font-size: .88rem; z-index: 1; align-items: center; }
.line:not(.out) .reacts { left: 10px; }
.out .reacts { right: 10px; }
.reacts small { color: var(--muted); font-size: .76rem; margin-left: 2px; }
.reacts.mine { background: var(--green-tint); }
.picker { position: absolute; top: -58px; z-index: 5; display: flex; gap: 2px; background: #fff; border-radius: 30px; padding: 5px 8px; box-shadow: 0 4px 16px rgba(11, 20, 26, .22); }
.line:not(.out) .picker { left: 0; }
.out .picker { right: 0; }
.picker button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; font-size: 1.45rem; display: grid; place-items: center; transition: transform .1s; }
.picker button:hover { transform: scale(1.18); }
.picker button[aria-pressed="true"] { background: var(--bg); }
.typing { display: inline-flex; gap: 5px; padding: 6px 4px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #9aa6ad; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { flex: none; background: #f4efe8; padding: 8px 10px; display: flex; align-items: flex-end; gap: 8px; position: relative; }
.composer__field { flex: 1; display: flex; align-items: flex-end; background: #fff; border-radius: 24px; min-height: 50px; padding: 0 4px; min-width: 0; }
.composer textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; padding: 13px 4px; max-height: 160px; min-width: 0; line-height: 1.35; }
.send-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn:hover { background: var(--green-dark); }
.rec { flex: 1; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 24px; min-height: 50px; padding: 0 8px 0 18px; font-weight: 600; }
.rec__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.rec__cancel { margin-left: auto; color: var(--danger); }
.emoji-panel { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); background: #fff; border-radius: 16px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 2px; box-shadow: 0 6px 24px rgba(11, 20, 26, .2); z-index: 6; }
.emoji-panel button { height: 50px; border: 0; background: transparent; border-radius: 10px; font-size: 1.6rem; }
.emoji-panel button:hover { background: var(--bg); }

/* ---------- Оверлеи ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 20, 26, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.overlay[hidden] { display: none; }
.overlay.is-dark { padding: 0; background: rgba(0, 0, 0, .92); }
.story { position: relative; width: min(100%, 440px); height: 100%; max-height: 840px; background: #111; color: #fff; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 600px) { .story { height: 92%; border-radius: 14px; } }
.story__bars { display: flex; gap: 4px; padding: 10px 10px 0; position: absolute; inset: 0 0 auto 0; z-index: 3; }
.story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.story__bars i span { display: block; height: 100%; width: 0; background: #fff; }
.story__head { position: absolute; top: 18px; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; z-index: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.story__head b { flex: 1; font-weight: 600; }
.story__head small { opacity: .8; font-weight: 400; margin-left: 6px; }
.close-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; flex: none; }
.story__img { flex: 1; display: grid; place-items: center; overflow: hidden; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__cap { position: absolute; left: 0; right: 0; bottom: 84px; padding: 40px 20px 16px; font-size: 1.15rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); z-index: 2; }
.story__cap .credit { color: rgba(255, 255, 255, .7); padding: 6px 0 0; font-weight: 400; }
.story__tap { position: absolute; top: 80px; bottom: 90px; z-index: 2; border: 0; background: transparent; }
.story__tap--prev { left: 0; width: 40%; }
.story__tap--next { right: 0; width: 60%; }
.story__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 14px; z-index: 3; background: rgba(0, 0, 0, .6); }
.story__foot button { min-height: 50px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font-weight: 600; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.story__foot .grow { flex: 1; justify-content: center; }
.story__like { width: 50px; justify-content: center; padding: 0 !important; }
.story__like.liked { color: #ff5a6a; }
.sheet { background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--glass-border); width: min(100%, 480px); max-height: 90vh; border-radius: 16px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; overflow: hidden; }
.sheet__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.sheet__head .close-btn { background: transparent; color: var(--muted); }
.sheet__body { overflow-y: auto; padding: 6px; }
.sheet__form { padding: 14px; display: grid; gap: 12px; overflow-y: auto; }
.sheet__form img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.sheet__form label { font-weight: 600; }
.sheet__form textarea { width: 100%; min-height: 100px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.viewer { width: 100%; height: 100%; display: flex; flex-direction: column; }
.viewer__head { display: flex; align-items: center; padding: 10px 16px; color: #fff; gap: 12px; }
.viewer__head b { flex: 1; }
.viewer__img { flex: 1; display: grid; place-items: center; padding: 16px; min-height: 0; }
.viewer__img img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.viewer__cap { color: #fff; text-align: center; padding: 0 20px 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: #323739; color: #fff; z-index: 60; padding: 12px 20px; border-radius: 10px; font-size: .95rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .25s, visibility .25s; max-width: calc(100% - 32px); visibility: hidden; text-align: center; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .page--feed { grid-template-columns: minmax(0, 620px); }
  .rail { display: none; }
}
@media (max-width: 1000px) {
  :root { --side-w: 76px; }
  .logo { width: auto; }
  .sidenav__list a, .sidenav__list button { justify-content: center; padding: 0; }
  .sidenav__list span, .sidenav__foot, .sidenav hr { display: none; }
  .sidenav__list .badge-count { position: absolute; top: 4px; right: 10px; }
  .pdp, .checkout, .course-hero, .course-cols, .lesson-layout, .club-hero { grid-template-columns: 1fr; }
  .course-hero__img { min-height: 0; aspect-ratio: 16 / 9; }
  .course-hero__info { padding: 12px 20px 22px; }
  .pdp__media, .summary, .lesson-side { position: static; }
  .messenger { grid-template-columns: 1fr; }
  .m-list { border-right: 0; }
  .messenger .m-chat { display: none; }
  .messenger.has-chat .m-list { display: none; }
  .messenger.has-chat .m-chat { display: flex; }
  .m-head__back { display: grid; }
}
@media (max-width: 720px) {
  :root { --top-h: 56px; }
  .topbar__in { gap: 10px; padding: 0 8px 0 14px; }
  .topsearch { display: none; }
  .icon-link--search { display: grid; }
  .top-me { padding: 0; background: none; margin-left: 2px; }
  .logo__svg { height: 38px; }
  .topbar__actions { gap: 0; }
  .icon-link { width: 40px; }
  .top-me__name { display: none; }
  .club-pill { width: 34px; height: 34px; padding: 0; justify-content: center; margin-right: 2px; }
  .club-pill span { display: none; }
  .logo__svg { height: 34px; }
  .layout { padding: 0; display: block; }
  .sidenav { display: none; }
  main { padding: 12px 0 calc(84px + env(safe-area-inset-bottom)); }
  .page { padding: 0 12px; }
  .page--feed, body.page-feed .page { padding: 0; }
  .page--feed .feed-col { gap: 8px; }
  .page--feed .card, .page--feed .post, .page--feed .club-card, .page--feed .feed-course { border-radius: 0; }
  .page--feed .feed-product { border-radius: 0; border-left: 0; border-right: 0; grid-template-columns: 96px minmax(0, 1fr); }
  .feed-product__img img { width: 96px; height: 96px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--glass-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 4px 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--green-dark); }
  .tabbar .ico { width: 26px; height: 26px; }
  .tabbar__add { width: 52px; height: 40px; border-radius: 14px; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; }
  .grid { grid-template-columns: 1fr; }
  .grid--products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: none; }
  .chip { flex: none; }
  .people { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .profile__cover { height: 130px; }
  .profile__body { padding: 0 16px 14px; gap: 12px; }
  .profile__ava { margin-top: -44px; }
  .profile__ava .ava { width: 92px; height: 92px; }
  .profile__actions .btn { flex: 1; }
  .cart-row { grid-template-columns: 64px 1fr auto; }
  .cart-row__img img { width: 64px; height: 64px; }
  .cart-row .qty { grid-column: 2; justify-self: start; }
  .cart-row__sum { grid-column: 3; grid-row: 2; }
  .cart-row .icon-btn { grid-column: 3; grid-row: 1; }
  .product__body .btn { min-height: 38px; }
  .toolbar .sort { width: 100%; }
  body.page-messages main { padding: 0 0 calc(64px + env(safe-area-inset-bottom)); }
  body.page-messages .chat-title { display: none; }
  body.page-messages .page { padding: 0; }
  body.page-messages .messenger { border-radius: 0; box-shadow: none; height: calc(100dvh - var(--top-h) - 64px - env(safe-area-inset-bottom)); }
  .msgs { padding: 12px 10px 16px; }
  .bubble { max-width: 86%; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Поиск по сайту ---------- */
.search-hint { padding: 18px 20px; }
.search-hint p { margin-bottom: 12px; color: var(--muted); }
.search-hint .chips { margin: 0; flex-wrap: wrap; }
.search-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.search-sec .section-title small { color: var(--muted); font-weight: 500; font-size: .9rem; }
.hit-person { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hit-person:last-child { border-bottom: 0; }
.hit-person__name { flex: 1; min-width: 0; color: var(--ink); line-height: 1.3; }
.hit-person__name:hover { text-decoration: none; }
.hit-person__name b, .hit-person__name small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hit-post { display: flex; gap: 12px; align-items: center; padding: 10px; color: var(--ink); }
.hit-post:hover { text-decoration: none; box-shadow: 0 3px 10px rgba(11, 20, 26, .12); }
.hit-post img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.hit-post span { min-width: 0; }
.hit-post b { display: block; font-weight: 600; }
.hit-post small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
