/* Сайт crochet-adel.com: интерфейс магазина на сетке 1200px — шапка сверху, на телефоне нижние вкладки. */
:root {
  --bg: #F3F1EE; --card: #FFFFFF; --soft: #ECE8E3; --soft-2: #E4DFD8;
  --text: #1C1F1E; --muted: #6F6962; --faint: #A9A29A; --line: #E6E0D9;
  --ink: #1E2422; --on-ink: #FFFFFF;
  --accent: #B5835A; --accent-soft: #F3E8DC; --on-accent: #FFFFFF;
  --club-a: #2B2521; --club-b: #6A5140; --on-club: #FBF6F0;
  --ok: #3E8E5E; --ok-soft: #E3F1E8; --bad: #C2453D; --bad-soft: #FBE5E3;
  --rose: #C9466C; --tint-rose: #FBE7ED; --tint-gold: #FBF0D9; --tint-brand: #F4EADF; --ink-brand: #8E6038;
  --glass: rgba(255, 255, 255, .86); --veil: rgba(20, 16, 12, .62);
  --shadow: 0 1px 2px rgba(30, 24, 18, .04), 0 8px 24px rgba(30, 24, 18, .06);
  --shadow-up: 0 -8px 30px rgba(30, 24, 18, .08);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: 16px; --head-h: 58px; --tabs-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --card: #1C1A18; --soft: #262320; --soft-2: #2F2B27;
    --text: #F4F0EB; --muted: #A69F97; --faint: #6F6862; --line: #2E2A26;
    --ink: #F4F0EB; --on-ink: #161412;
    --accent: #D4A67E; --accent-soft: #3A2E24; --on-accent: #1A1512;
    --club-a: #2A2420; --club-b: #57422F; --on-club: #FBF6F0;
    --ok: #6CC08E; --ok-soft: #1E3326; --bad: #F07A72; --bad-soft: #3D2020;
    --rose: #E86F90; --tint-rose: #33212A; --tint-gold: #2E2616; --tint-brand: #2A221B; --ink-brand: #E2BC98;
    --glass: rgba(28, 26, 24, .82); --veil: rgba(10, 8, 6, .68);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-up: 0 -8px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --card: #1C1A18; --soft: #262320; --soft-2: #2F2B27;
  --text: #F4F0EB; --muted: #A69F97; --faint: #6F6862; --line: #2E2A26;
  --ink: #F4F0EB; --on-ink: #161412;
  --accent: #D4A67E; --accent-soft: #3A2E24; --on-accent: #1A1512;
  --club-a: #2A2420; --club-b: #57422F; --on-club: #FBF6F0;
  --ok: #6CC08E; --ok-soft: #1E3326; --bad: #F07A72; --bad-soft: #3D2020;
  --rose: #E86F90; --tint-rose: #33212A; --tint-gold: #2E2616; --tint-brand: #2A221B; --ink-brand: #E2BC98;
  --glass: rgba(28, 26, 24, .82); --veil: rgba(10, 8, 6, .68);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-up: 0 -8px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gut: 32px; --head-h: 72px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
@media (max-width: 899px) { .desk { display: none !important; } }
@media (min-width: 900px) { .mob { display: none !important; } }

.wrap { max-width: 1264px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
main { min-height: 60vh; padding-block: 18px 40px; animation: enter .25s ease; }
@keyframes enter { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 899px) { body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); } body.no-tabs { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- шапка ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 10px; height: var(--head-h); }
.logo { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.logo b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.logo span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 899px) { .head .logo span { display: none; } }
.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 28px; }
.nav a { padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background-color .2s, color .2s; }
.nav a:hover { color: var(--text); background: var(--soft); }
.nav a.on { color: var(--text); background: var(--card); box-shadow: var(--shadow); }
@media (min-width: 900px) { .logo { margin-right: 0; } .logo b { font-size: 24px; } .logo span { font-size: 12.5px; } }
.hsearch { position: relative; width: min(260px, 22vw); }
.hsearch svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.hsearch input { width: 100%; height: 44px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); padding: 0 14px 0 40px; font-size: 14.5px; }
.lang { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; flex: none; }
.lang button { min-width: 34px; height: 32px; padding: 0 7px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.lang button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(30, 24, 18, .12); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--card); color: var(--text); box-shadow: var(--shadow); position: relative; flex: none; transition: transform .15s; }
.icon-btn:active { transform: scale(.95); }
.icon-btn.flat { box-shadow: none; background: var(--soft); }
.icon-btn.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none; }
.icon-btn svg, .btn svg { width: 22px; height: 22px; flex: none; }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.ava { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--ink-brand); display: grid; place-items: center; font-family: var(--display); font-size: 17px; flex: none; }
.ava.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }

/* ---------- нижние вкладки (телефон) ---------- */
.tabbar { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); box-shadow: var(--shadow-up); padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--text); }
body.no-tabs .tabbar { display: none; }

/* ---------- кнопки, метки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .15s, opacity .2s, background-color .2s; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--soft); color: var(--text); }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.light { background: var(--on-club); color: #1E1A16; }
.btn.tg { background: #2AABEE; color: #FFFFFF; }
.btn.sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.sm svg { width: 18px; height: 18px; }
.btn.md { height: 46px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.link { color: var(--ink-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag.new { background: var(--rose); color: #FFFFFF; box-shadow: none; }
.tag.free { background: var(--ok); color: #FFFFFF; box-shadow: none; }
.tag.club { background: var(--club-b); color: var(--on-club); box-shadow: none; }
.tag.mine { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.tag svg { width: 13px; height: 13px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--text); transition: background-color .2s, color .2s; }
.chip svg { width: 18px; height: 18px; color: var(--accent); }
.chip.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip.on svg { color: inherit; }
.chip.sm { height: 36px; padding: 0 13px; border-radius: 12px; font-size: 13.5px; }
.chip small { color: var(--faint); font-weight: 600; font-size: 12.5px; }
.chip.on small { color: inherit; opacity: .7; }

/* ---------- секции ---------- */
.section { margin-top: 44px; }
@media (min-width: 900px) { .section { margin-top: 68px; } }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shead h2 { font-size: clamp(22px, 2.6vw, 30px); }
.shead p { color: var(--muted); margin-top: 5px; font-size: 14.5px; }
.shead .more { font-weight: 700; color: var(--ink-brand); white-space: nowrap; font-size: 14.5px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail .pcard { width: 172px; }
.rail .pcard.wide { width: 232px; }
@media (min-width: 900px) { .rail { gap: 20px; } .rail .pcard { width: 226px; } .rail .pcard.wide { width: 270px; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; } .grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- карточка МК ---------- */
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard .ph { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--glass); display: grid; place-items: center; }
.pcard .play svg { width: 18px; height: 18px; }
.pcard b { margin-top: 11px; font-size: 15.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.pcard .price { margin-top: 7px; font-weight: 800; font-size: 15.5px; display: flex; gap: 8px; align-items: baseline; }
.pcard .price s { color: var(--faint); font-weight: 500; font-size: 13px; }
.pcard .price.ok { color: var(--ok); font-size: 14px; font-weight: 700; }
.pcard .price.clubp { color: var(--ink-brand); font-size: 14px; font-weight: 700; }

/* ---------- главная ---------- */
.hero { display: grid; gap: 22px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.08; }
.hero .lead { margin-top: 16px; font-size: clamp(15.5px, 1.5vw, 18px); color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 36px; margin-top: 28px; }
@media (min-width: 600px) { .facts-row { display: flex; flex-wrap: wrap; gap: 10px 32px; } }
.facts-row div { display: flex; flex-direction: column; }
.facts-row b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.facts-row span { color: var(--muted); font-size: 13px; }
.hero-card { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); box-shadow: var(--shadow); color: #FFFFFF; max-height: 640px; width: 100%; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, var(--veil), transparent); }
.hero-card .top { position: absolute; left: 16px; top: 16px; z-index: 1; }
.hero-card .body { position: absolute; inset: auto 0 0; z-index: 1; padding: 22px; }
.hero-card h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; }
.hero-card p { margin-top: 8px; font-size: 14.5px; opacity: .92; max-width: 30em; }
.hero-card .row { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-card .g { height: 34px; padding: 0 12px; border-radius: 11px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.hero-card .pr { font-family: var(--display); font-size: 20px; margin-left: auto; }
.hero-card .go { width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; color: #1E2422; display: grid; place-items: center; }
.hero-card .go svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-top: 18px; } .hero-card { justify-self: end; max-width: 520px; } }
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 899px) { .chips-row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 10px; } .chips-row.scroll::-webkit-scrollbar { display: none; } }
.free-all { width: 172px; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--tint-rose); color: var(--rose); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; font-weight: 700; }
.free-all svg { width: 34px; height: 34px; margin-bottom: auto; }
.free-all span { font-size: 13px; font-weight: 600; opacity: .85; }
@media (min-width: 900px) { .free-all { width: 226px; } }

.club-card { display: grid; gap: 20px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--club-a), var(--club-b)); color: var(--on-club); padding: 26px 22px; overflow: hidden; position: relative; }
.club-card h2 { font-size: clamp(24px, 3vw, 36px); }
.club-card p { opacity: .85; margin-top: 10px; max-width: 32em; }
.club-card .acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.club-card .from { font-size: 14px; opacity: .85; }
.polas { display: flex; justify-content: center; padding: 6px 0 2px; }
.pola { width: 31%; max-width: 150px; background: #FFFFFF; padding: 6px 6px 20px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); rotate: -6deg; }
.pola img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; width: 100%; }
.pola:nth-child(2) { rotate: 3deg; margin: 14px -4% 0; z-index: 1; }
.pola:nth-child(3) { rotate: 8deg; }
@media (min-width: 900px) { .club-card { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px 52px; } .pola { max-width: 190px; } }

.cats { display: grid; gap: 14px; }
.cat { border-radius: var(--r-xl); padding: 20px; display: grid; gap: 10px; background: var(--tint-brand); }
.cat.rose { background: var(--tint-rose); }
.cat .polas .pola { box-shadow: 0 8px 22px rgba(30, 24, 18, .16); max-width: 132px; }
.cat h3 { font-size: 21px; font-weight: 500; }
.cat span { color: var(--muted); font-size: 14px; }
.cat .row { display: flex; align-items: center; gap: 12px; }
.cat .row .icon-btn { box-shadow: none; }
@media (min-width: 700px) { .cats { grid-template-columns: 1fr 1fr; gap: 22px; } .cat { padding: 30px; } }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--ink-brand); font-family: var(--display); font-size: 16px; margin-bottom: 14px; }
.step b { font-size: 17px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.work { width: 232px; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.work img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.work p { padding: 14px 16px 0; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.work a { padding: 10px 16px 16px; font-size: 13px; font-weight: 700; color: var(--ink-brand); margin-top: auto; }
@media (min-width: 900px) { .work { width: 270px; } }

.about { display: grid; gap: 22px; align-items: center; background: var(--card); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); }
.about img { border-radius: var(--r-lg); aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 360px; }
.about h2 { font-size: clamp(22px, 2.6vw, 30px); }
.about p { color: var(--muted); margin-top: 12px; max-width: 38em; font-size: 15.5px; }
@media (min-width: 800px) { .about { grid-template-columns: 300px 1fr; gap: 44px; padding: 36px; } }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--faint); transition: rotate .2s; }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { padding: 0 18px 18px; color: var(--muted); max-width: 62em; }

.apps { display: grid; gap: 18px; border-radius: var(--r-xl); background: var(--tint-gold); padding: 24px 22px; align-items: center; }
.apps h2 { font-size: clamp(20px, 2.2vw, 26px); }
.apps p { color: var(--muted); margin-top: 8px; max-width: 36em; }
.apps .links { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) { .apps { grid-template-columns: 1fr auto; padding: 34px 40px; } }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding-block: 36px 28px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot .logo { grid-column: 1 / -1; color: var(--text); }
.foot h3 { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot li { margin-top: 7px; }
.foot a:hover { color: var(--text); }
.foot .copy { margin-top: 30px; font-size: 12.5px; color: var(--faint); }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot .logo { grid-column: auto; } }

/* ---------- каталог ---------- */
.page-h h1 { font-size: clamp(26px, 3.4vw, 40px); }
.page-h p { color: var(--muted); margin-top: 8px; max-width: 46em; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; color: var(--faint); }
.search { position: relative; display: block; margin-top: 18px; max-width: 560px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 52px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); padding: 0 16px 0 46px; font-size: 16px; }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.fgroup { min-width: 0; }
.fgroup h3 { font-family: var(--body); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.fgroup .opts { display: flex; gap: 8px; }
@media (max-width: 899px) { .fgroup h3 { display: none; } .fgroup .opts { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 4px; } .fgroup .opts::-webkit-scrollbar { display: none; } }
@media (min-width: 900px) {
  .cat-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 40px; }
  .filters { position: sticky; top: calc(var(--head-h) + 20px); gap: 26px; }
  .fgroup .opts { flex-direction: column; align-items: stretch; gap: 4px; }
  .fgroup .chip { box-shadow: none; background: transparent; justify-content: space-between; height: 40px; padding: 0 12px; }
  .fgroup .chip:hover { background: var(--soft); }
  .fgroup .chip.on { background: var(--ink); color: var(--on-ink); }
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.sorts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.empty { text-align: center; padding: 50px 20px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.empty .em { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--ink-brand); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .em svg { width: 30px; height: 30px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 30em; }

/* ---------- страница МК ---------- */
.pp { display: grid; gap: 22px; }
.gal { position: relative; min-width: 0; }
.gal .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); background: #1a1714; aspect-ratio: 4 / 5; max-height: 76vh; width: 100%; }
.gal .slides::-webkit-scrollbar { display: none; }
.gal .slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.gal .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal .slide.contain img.fg { object-fit: contain; }
.gal .slide img.bg { filter: blur(26px) brightness(.8); scale: 1.2; }
.gal .count { position: absolute; right: 14px; top: 14px; background: var(--veil); color: #FFFFFF; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; opacity: .55; transition: opacity .2s; box-shadow: inset 0 0 0 2px transparent; }
.thumbs button.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { min-width: 0; }
.pinfo .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pinfo h1 { font-size: clamp(26px, 3.2vw, 40px); }
.pinfo .short { color: var(--muted); font-size: 16.5px; margin-top: 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.spec { background: var(--soft); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.spec small { color: var(--muted); font-size: 12.5px; display: block; }
.spec b { font-size: 15px; }
.buybox { margin-top: 22px; background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.buybox .pr { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buybox .pr small { font-family: var(--body); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.buybox .pr.state { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--ok); align-items: center; letter-spacing: 0; }
.buybox .pr.state svg { width: 22px; height: 22px; }
.buybox .acts { display: flex; gap: 10px; margin-top: 16px; }
.buybox .acts .btn { flex: 1; min-width: 0; }
.buybox .note { margin-top: 14px; font-size: 13.5px; color: var(--muted); display: flex; gap: 9px; }
@media (max-width: 899px) { .buybox .note { margin-top: 0; } .buybox { margin-top: 14px; padding: 16px; } }
.buybox .note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.club-hint { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 16px 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--club-a), var(--club-b)); color: var(--on-club); }
.club-hint .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.club-hint svg { width: 22px; height: 22px; }
.club-hint b { display: block; }
.club-hint span span { font-size: 13.5px; opacity: .82; }
.club-hint > svg { margin-left: auto; width: 18px; height: 18px; flex: none; opacity: .7; }
.pbody { display: grid; gap: 34px; margin-top: 12px; max-width: 800px; }
.block h2 { font-size: 22px; margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.block h2 small { font-family: var(--body); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.block > p { color: var(--text); font-size: 15.5px; max-width: 46em; }
.block > p + p { margin-top: 10px; }
.block p.note { color: var(--muted); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks svg { width: 21px; height: 21px; flex: none; color: var(--ok); margin-top: 1px; }
.material { background: var(--soft); border-radius: var(--r-md); padding: 16px; white-space: pre-line; }
.factlist { display: grid; gap: 10px; }
.fact { display: flex; gap: 14px; background: var(--card); border-radius: var(--r-md); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.fact .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-brand); display: grid; place-items: center; flex: none; }
.fact .ic svg { width: 20px; height: 20px; }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: 14px; }
.lessons { display: grid; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 14px; background: var(--soft); border-radius: var(--r-md); padding: 11px 14px; text-align: left; width: 100%; transition: background-color .2s; }
a.lrow:hover, button.lrow:hover { background: var(--soft-2); }
.lrow .n { width: 34px; height: 34px; border-radius: 11px; background: var(--card); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.lrow .n.done { background: var(--ok); color: #FFFFFF; }
.lrow .n svg { width: 17px; height: 17px; }
.lrow .tt { flex: 1; min-width: 0; }
.lrow .tt b { display: block; font-weight: 600; }
.lrow .tt span { color: var(--muted); font-size: 12.5px; }
.lrow > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.lrow.cur { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.buybar { position: fixed; inset: auto 0 0; z-index: 20; background: var(--card); box-shadow: var(--shadow-up); border-radius: 22px 22px 0 0; display: flex; align-items: center; gap: 10px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.buybar .pr { font-family: var(--display); font-size: 21px; line-height: 1.1; margin-right: auto; min-width: 0; }
.buybar .pr small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); }
.buybar .pr.state { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--ok); }
.buybar .btn { flex: 1; max-width: 240px; padding: 0 14px; }
@media (min-width: 900px) {
  .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
  .pinfo { position: sticky; top: calc(var(--head-h) + 20px); }
  .pbody { margin-top: 48px; }
  .buybar { display: none; }
}

/* ---------- клуб ---------- */
.club-hero { border-radius: var(--r-xl); background: linear-gradient(135deg, var(--club-a), var(--club-b)); color: var(--on-club); padding: 28px 22px; display: grid; gap: 22px; }
.club-hero h1 { font-size: clamp(28px, 4vw, 50px); }
.club-hero .sub { margin-top: 12px; font-size: 17px; opacity: .88; max-width: 30em; }
.club-hero .pnote { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .13); font-size: 14px; font-weight: 600; }
.club-hero .pnote svg { width: 17px; height: 17px; flex: none; }
.club-hero .acts { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) { .club-hero { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 56px; } }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.benefit .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--ink-brand); display: grid; place-items: center; margin-bottom: 14px; }
.benefit .ic svg { width: 22px; height: 22px; }
.benefit b { display: block; font-size: 16px; line-height: 1.25; }
.benefit span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 20px; } .benefit { padding: 24px; } }
.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.club-grid a { position: relative; font-size: 13px; font-weight: 600; line-height: 1.25; min-width: 0; }
.club-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); width: 100%; margin-bottom: 7px; background: var(--soft); }
.club-grid .only { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 700; background: var(--club-b); color: var(--on-club); padding: 2px 7px; border-radius: 8px; }
@media (min-width: 700px) { .club-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1100px) { .club-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.plans { display: grid; gap: 12px; }
.plan { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; transition: box-shadow .2s; }
.plan.on { box-shadow: inset 0 0 0 2px var(--ink); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); flex: none; }
.plan.on .radio { box-shadow: inset 0 0 0 7px var(--ink); }
.plan .t { flex: 1; min-width: 0; }
.plan .t b { display: block; font-size: 16.5px; }
.plan .t span { color: var(--muted); font-size: 13.5px; }
.plan .p { text-align: right; }
.plan .p b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; white-space: nowrap; }
.plan .p span { color: var(--muted); font-size: 12.5px; }
.plan .flag { position: absolute; right: 16px; top: -10px; background: var(--rose); color: #FFFFFF; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 9px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; } .plan { flex-wrap: wrap; padding: 24px; } }

/* ---------- корзина, оформление, вход ---------- */
.co { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 900px) { .co { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; } }
.box { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.box h2 { font-size: 19px; margin-bottom: 14px; }
.crow { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; padding-top: 0; }
.crow:last-child { padding-bottom: 0; }
.crow img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: var(--soft); }
.crow .t { flex: 1; min-width: 0; }
.crow .t b { display: block; line-height: 1.25; }
.crow .t span { color: var(--muted); font-size: 13.5px; }
.crow .rm { width: 38px; height: 38px; border-radius: 12px; color: var(--faint); display: grid; place-items: center; flex: none; }
.crow .rm:hover { background: var(--soft); color: var(--text); }
.crow .rm svg { width: 20px; height: 20px; }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field input { height: 50px; border-radius: 14px; border: 0; background: var(--soft); padding: 0 15px; font-size: 16px; width: 100%; }
.field input.bad { box-shadow: inset 0 0 0 2px var(--bad); }
.field small { color: var(--muted); font-size: 13px; }
.field small.err { color: var(--bad); font-weight: 600; }
.promo { display: flex; gap: 8px; margin-top: 12px; }
.promo input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 0; background: var(--soft); padding: 0 14px; text-transform: uppercase; }
.sum { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sum .disc { color: var(--ok); }
.sum .total { color: var(--text); font-weight: 800; font-size: 18px; }
.consent { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.hintline { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint-gold); font-size: 13.5px; margin-top: 14px; }
.hintline svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink-brand); }
.acc-line { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--soft); }
.acc-line .ava { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; background: var(--card); }
.acc-line span { display: block; font-size: 12.5px; color: var(--muted); }
.center { max-width: 480px; margin: 24px auto 0; text-align: center; }
.center .big { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--accent-soft); color: var(--ink-brand); }
.center .big.ok { background: var(--ok-soft); color: var(--ok); }
.center .big svg { width: 40px; height: 40px; }
.center h1 { font-size: clamp(24px, 3vw, 32px); }
.center > p { color: var(--muted); margin-top: 12px; }
.center .box { text-align: left; margin-top: 22px; }
.center .acts { display: grid; gap: 10px; margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mailcard { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: var(--soft); text-align: left; font-size: 14px; }
.mailcard b { display: block; }
.mailcard .from { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }

/* ---------- кабинет ---------- */
.acc-head { display: flex; align-items: center; gap: 16px; }
.acc-head h1 { font-size: clamp(22px, 2.8vw, 32px); }
.acc-head p { color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 6px; }
.tabs::-webkit-scrollbar { display: none; }
.acc-body { margin-top: 18px; display: grid; gap: 18px; }
.cont { max-width: 640px; display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 16px 18px; }
.cont img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.cont .t { flex: 1; min-width: 0; }
.cont .t span { display: block; font-size: 13px; opacity: .7; }
.cont .t b { display: block; font-size: 16.5px; line-height: 1.25; }
.cont .go { width: 46px; height: 46px; border-radius: 50%; background: var(--on-ink); color: var(--ink); display: grid; place-items: center; flex: none; }
.cont .go svg { width: 20px; height: 20px; }
.owned { display: grid; gap: 12px; }
@media (min-width: 800px) { .owned { grid-template-columns: 1fr 1fr; gap: 18px; } }
.orow { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.orow img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex: none; background: var(--soft); }
.orow .t { flex: 1; min-width: 0; }
.orow .t b { display: block; line-height: 1.25; }
.orow .t span { color: var(--muted); font-size: 13px; }
.bar { height: 6px; border-radius: 3px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.status { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); max-width: 640px; }
.status .row { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 20px; font-weight: 400; }
.pill-ok { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.pill-ok svg { width: 13px; height: 13px; }
.status h3 { font-size: 19px; margin-top: 8px; }
.status p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.status .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.order { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); max-width: 640px; }
.order .top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.order .st { font-weight: 700; color: var(--ok); }
.order .items { margin-top: 6px; font-weight: 600; }
.order .amt { margin-top: 8px; font-weight: 800; }
.list { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); max-width: 640px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.li:first-child { border-top: 0; }
.li .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.li .ic svg { width: 20px; height: 20px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; }
.li .t span { color: var(--muted); font-size: 13px; }
.li > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--soft-2); position: relative; flex: none; transition: background-color .2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transition: translate .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw.on { background: var(--accent); }
.sw.on::after { translate: 18px 0; }

/* ---------- урок ---------- */
.lesson { display: grid; gap: 24px; }
@media (min-width: 1000px) { .lesson { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .lesson aside { position: sticky; top: calc(var(--head-h) + 20px); max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; } }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #14110f; display: grid; place-items: center; color: #FFFFFF; width: 100%; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.55); scale: 1.15; }
.player .pb { position: relative; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1E2422; display: grid; place-items: center; }
.player .pb svg { width: 30px; height: 30px; margin-left: 4px; }
.player .lab { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 9px; }
.pnote { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.lesson h1 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.counter { background: var(--soft); border-radius: var(--r-lg); padding: 14px; margin-top: 18px; max-width: 520px; }
.counter .hd { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 0 4px 10px; }
.counter .hd span { display: flex; gap: 8px; align-items: center; }
.counter .hd svg { width: 18px; height: 18px; }
.counter .hd button { color: var(--muted); font-weight: 600; font-size: 14px; }
.counter .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cnt { background: var(--card); border-radius: var(--r-md); padding: 10px; text-align: center; }
.cnt small { color: var(--muted); font-weight: 600; }
.cnt div { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cnt b { font-family: var(--display); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.cnt button { width: 42px; height: 42px; border-radius: 13px; background: var(--soft); display: grid; place-items: center; }
.cnt button.plus { background: var(--ink); color: var(--on-ink); }
.cnt button svg { width: 20px; height: 20px; }
.rich { margin-top: 20px; font-size: 16px; line-height: 1.65; max-width: 44em; overflow-wrap: anywhere; }
.rich p + p { margin-top: 12px; }
.lnav { display: flex; gap: 10px; margin-top: 24px; max-width: 520px; }
.lnav .btn { flex: 1; min-width: 0; padding: 0 12px; }
.lnav a.icon-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
@media (max-width: 899px) { .lnav { position: fixed; inset: auto 0 0; z-index: 20; margin: 0; max-width: none; background: var(--card); box-shadow: var(--shadow-up); border-radius: 22px 22px 0 0; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); } .lnav .icon-btn { box-shadow: inset 0 0 0 1.5px var(--line); } }
.locked-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--soft); margin-top: 26px; max-width: 520px; }
.locked-card .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--card); color: var(--accent); display: grid; place-items: center; flex: none; }
.locked-card .ic svg { width: 21px; height: 21px; }
.locked-card b { display: block; }
.locked-card span span { color: var(--muted); font-size: 13.5px; }
.aside-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.aside-h h2 { font-size: 18px; }
.aside-h span { color: var(--muted); font-size: 13px; }

/* ---------- сообщение ---------- */
.toast { position: fixed; left: 50%; translate: -50% 0; bottom: calc(var(--tabs-h) + 22px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; display: flex; gap: 9px; align-items: center; box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: enter .2s ease; }
.toast svg { width: 19px; height: 19px; flex: none; }
.docs { max-width: 720px; }
.docs p { margin-top: 14px; color: var(--muted); }

/* ---------- сайт: дополнения к стилям макета ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.lang a { min-width: 34px; height: 32px; padding: 0 7px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; display: grid; place-items: center; }
.lang a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(30, 24, 18, .12); }
.foot h2 { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.hero-card .hc-t { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.catcard { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--soft); color: #FFFFFF; }
.catcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.catcard:hover img { transform: scale(1.04); }
.catcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, var(--veil), transparent); }
.catcard span { position: absolute; inset: auto 14px 12px; z-index: 1; display: grid; }
.catcard b { font-size: 16.5px; line-height: 1.2; }
.catcard em { font-style: normal; font-size: 13px; opacity: .9; }
.text { display: grid; gap: 36px; margin-top: 44px; }
@media (min-width: 900px) { .text { margin-top: 64px; gap: 44px; } }
.prose { max-width: 760px; min-width: 0; }
.prose.wide { max-width: 900px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
.prose h2 small { font-family: var(--body); font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.prose p { font-size: 16.5px; line-height: 1.65; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose > ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; font-size: 16.5px; }
.prose a, .page-h p a, .short a, .lead a { color: var(--ink-brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.faqs { display: grid; gap: 18px; }
.faqs h2 { margin-bottom: 0; }
.qa h3 { font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 0; line-height: 1.35; }
.qa p { margin-top: 5px; color: var(--muted); }
.text .about { max-width: 900px; }
.text .about p + p { margin-top: 12px; }
.text .about a { color: var(--ink-brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.appbox { margin-top: 22px; background: var(--tint-gold); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; }
.appbox p { font-size: 14.5px; color: var(--muted); }
.appbox .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.page-h + .appbox { max-width: 760px; }
.pinfo .short + .short { margin-top: 8px; }
.filters .opts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 899px) { .filters .opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 4px; } .filters .opts::-webkit-scrollbar { display: none; } }
.filters { margin-top: 16px; }
.count { color: var(--muted); font-size: 14px; margin: 18px 0 14px; }
#list { margin-top: 22px; }
.count + .empty + #list, .count + #list { margin-top: 0; }
.tablebox { overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tablebox table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.tablebox th, .tablebox td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tablebox thead th { border-top: 0; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tablebox tbody th { font-weight: 700; }
.tablebox a { color: var(--ink-brand); text-decoration: underline; text-underline-offset: 3px; }
ol.lessons { list-style: none; margin: 0; padding: 0; }
ol.lessons .lrow { align-items: flex-start; }
.ltext { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.ltext p + p { margin-top: 10px; }
.buybox, .pinfo .appbox { margin-top: 22px; }
.tabbar a { text-align: center; }

/* ---------- покупка, кабинет, урок (страницы с сервером) ---------- */
ol.lessons .lrow { position: relative; }
.lrow-link { position: absolute; inset: 0; border-radius: var(--r-md); }
.lrow.open { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lrow.open > svg { display: none; }
.lrow.open:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.lrow .ltext { position: relative; z-index: 1; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pmsg { margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.pmsg.ok { color: var(--ok); } .pmsg.bad { color: var(--bad); }
.acc-h { font-size: 20px; margin-top: 14px; }
.center .big { font-size: 34px; font-weight: 700; }
.crow .rm { font-size: 24px; line-height: 1; }
.empty h2 { font-size: 20px; }
.lnav .icon-btn, .cnt button { font-size: 20px; font-weight: 700; }
.acc-line div { display: grid; }
.acc-body .order + .order { margin-top: -6px; }
#view .page-h + form.co { margin-top: 22px; }
.plans a.plan { text-decoration: none; color: inherit; transition: box-shadow .2s; }
.plans a.plan:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.plans a.plan span { text-decoration: none; }
.status .pill-ok + h3 { margin-top: 10px; }
