/* help.7coach.pro — look of my.7coach.pro (7web/web/src/app.css): 7OC light / dark, Manrope, glass cards, pill buttons. */
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: rgb(125 145 13); --accent-rgb: 125 145 13; --on-accent: rgb(250 250 250);
  --page: rgb(244 246 249); --card-rgb: 255 255 255; --field: rgb(255 255 255);
  --title: rgb(61 72 0); --text: rgb(65 65 65); --muted: rgb(127 127 127); --faint: rgb(180 188 200);
  --rim: rgb(0 0 0 / 0.08); --glint: rgb(255 255 255 / 0.9); --shadow: rgb(40 50 10 / 0.10);
  --warn: rgb(205 115 0); --warn-bg: rgb(205 115 0 / 0.09);
  --blob1: rgb(125 145 13 / 0.14); --blob2: rgb(180 200 90 / 0.16);
  --radius-card: 26px; --radius-pill: 40px;
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --page: rgb(14 14 16); --card-rgb: 31 31 35; --field: rgb(44 44 48);
  --title: rgb(239 239 241); --text: rgb(200 200 200); --muted: rgb(128 128 132); --faint: rgb(70 70 76);
  --rim: rgb(255 255 255 / 0.08); --glint: rgb(255 255 255 / 0.12); --shadow: rgb(0 0 0 / 0.5);
  --warn: rgb(240 160 60); --warn-bg: rgb(240 160 60 / 0.10);
  --blob1: rgb(125 145 13 / 0.14); --blob2: rgb(70 90 10 / 0.18); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--page); min-width: 300px;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body::before {
  content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 15% 10%, var(--blob1), transparent 70%),
              radial-gradient(35vmax 30vmax at 90% 30%, var(--blob2), transparent 70%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid rgb(var(--accent-rgb) / 0.7); outline-offset: 2px; }
h1, h2, h3 { color: var(--title); line-height: 1.25; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 8px 0 16px; letter-spacing: -0.01em; }
.in { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.in { flex: 1; padding-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.glass {
  background: rgb(var(--card-rgb) / 0.82);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 var(--glint) inset, 0 14px 34px -16px var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: rgb(var(--card-rgb) / 0.7); color: var(--title); font: inherit; font-weight: 600; font-size: 14px;
  box-shadow: 0 1px 0 var(--glint) inset, 0 6px 14px -8px var(--shadow);
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.35), 0 1px 0 var(--glint) inset, 0 8px 18px -8px var(--shadow); }
.btn:active { transform: scale(0.95); }
.btn.accent { background: rgb(var(--accent-rgb) / 0.92); color: var(--on-accent); box-shadow: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 8px 20px -8px rgb(var(--accent-rgb) / 0.7); }
.btn.flat { background: transparent; box-shadow: none; color: var(--accent); padding-left: 0; }
.btn.flat:hover { background: rgb(var(--accent-rgb) / 0.10); padding-left: 18px; }
.btn.icon { width: 44px; padding: 0; flex: none; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 20; background: rgb(var(--card-rgb) / 0.72);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--rim); }
.bar .in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--title); flex: none; }
.logo:hover { text-decoration: none; }
.logo img { border-radius: 10px; }
.logo b { font-weight: 800; font-size: 16px; }
.langs { display: flex; gap: 2px; flex: none; }
.langs a { padding: 6px 8px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.langs a[aria-current] { color: var(--title); background: rgb(var(--accent-rgb) / 0.12); }
.langs a:hover { text-decoration: none; color: var(--title); }

/* ---- search ---- */
.search { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--field); box-shadow: 0 0 0 1px var(--rim); }
.search:focus-within { box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.55); }
.search .ic { color: var(--muted); display: grid; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--title); padding: 10px 0; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search.top { flex: 1; max-width: 420px; margin-left: auto; }
.search.big { min-height: 56px; margin-top: 20px; max-width: 640px; }
.search.big input { font-size: 17px; }
@media (max-width: 900px) { .search input { font-size: 16px; } }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: 70vh; overflow: auto; padding: 6px;
  background: rgb(var(--card-rgb) / 0.97); border-radius: 20px; box-shadow: 0 0 0 1px var(--rim), 0 18px 40px -12px var(--shadow); }
.results a { display: block; padding: 10px 12px; border-radius: 14px; color: var(--text); }
.results a:hover, .results a.sel { background: rgb(var(--accent-rgb) / 0.10); text-decoration: none; }
.results b { display: block; color: var(--title); font-size: 15px; }
.results span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--muted); }
.results .none { margin: 0; padding: 12px; color: var(--muted); font-size: 14px; }

@media (max-width: 680px) {
  .bar .in { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .logo span { display: none; }
  .search.top { order: 3; flex-basis: 100%; max-width: none; }
  .langs { margin-left: auto; }
}

/* ---- home ---- */
.hero { padding: 36px 0 12px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.hero p { max-width: 720px; font-size: 17px; color: var(--text); }
h2.block { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 36px 0 14px; }
h2.block img { border-radius: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sect { padding: 18px 20px; }
.sect h3 { margin: 0 0 8px; font-size: 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sect h3 a { color: var(--title); }
.sect small { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sect ul { list-style: none; margin: 0; padding: 0; }
.sect li { padding: 5px 0; border-top: 1px solid var(--rim); font-size: 14px; }
.sect li:first-child { border-top: 0; }

/* ---- lists of cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: block; padding: 16px 18px; color: var(--text); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.3), 0 1px 0 var(--glint) inset, 0 18px 34px -16px var(--shadow); }
.card b { display: block; color: var(--title); font-size: 16px; margin-bottom: 4px; }
.card span { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- article ---- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 22px 0 10px; font-size: 14px; color: var(--muted); }
.crumbs svg { color: var(--faint); }
.art { padding: clamp(20px, 4vw, 40px); max-width: 820px; }
.art h1 { margin-top: 0; }
.body { font-size: 16.5px; }
.body h2 { font-size: 20px; margin: 30px 0 10px; scroll-margin-top: 80px; }
.body p { margin: 0 0 12px; }
.body ul, .body ol { margin: 0 0 14px; padding-left: 22px; }
.body li { margin: 4px 0; }
.body strong { color: var(--title); }
.body .ar { color: var(--accent); font-weight: 700; }
.body .lbl { font-weight: 700; color: var(--title); }
.body .route { padding: 12px 16px; border-radius: 16px; background: rgb(var(--accent-rgb) / 0.08); box-shadow: inset 3px 0 0 rgb(var(--accent-rgb) / 0.7); }
.body .note { padding: 12px 16px; border-radius: 16px; background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn); }
.body .note .lbl { color: var(--warn); }
.body .qa { padding: 12px 0; border-top: 1px solid var(--rim); }
.body .qa p { margin: 0; }
.body .qa .q { font-weight: 700; color: var(--title); margin-bottom: 4px; }
.upd { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.app-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; max-width: 820px; margin-top: 16px; padding: 16px 20px; }
.app-cta img, .app img { border-radius: 10px; flex: none; }
.app-cta div { flex: 1; min-width: 200px; }
.app-cta b, .app b { display: block; color: var(--title); }
.app-cta span, .app span { font-size: 14px; color: var(--muted); }

/* ---- footer ---- */
.foot { margin-top: 24px; padding: 28px 0 32px; box-shadow: 0 -1px 0 var(--rim); }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.app { display: flex; gap: 14px; padding: 16px 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; }
.copy { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* article + table of contents on wide screens */
.artwrap { display: flex; align-items: flex-start; gap: 24px; }
.artwrap .art { flex: 1; min-width: 0; }
.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; width: 236px; flex: none; font-size: 14px; padding-top: 8px; }
  .toc b { color: var(--title); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
  .toc a { color: var(--muted); padding: 5px 0 5px 12px; box-shadow: inset 2px 0 0 var(--rim); }
  .toc a:hover { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); text-decoration: none; }
}
.app .btn { background: rgb(var(--accent-rgb) / 0.12); color: var(--accent); box-shadow: none; min-height: 38px; padding: 8px 16px; }

/* ===== layout with the left menu (owner 2026-11-28) ===== */
.bar .in, .layout.in, .foot .in { max-width: 1240px; }
.logo b { font-size: 17px; }
.layout { display: flex; align-items: flex-start; gap: 28px; flex: 1; }
.main { flex: 1; min-width: 0; padding-bottom: 40px; }
.side { position: sticky; top: 76px; width: 290px; flex: none; max-height: calc(100vh - 92px); overflow: auto; padding: 16px 4px 24px 0; overscroll-behavior: contain; }
.menu { display: none; }
.scrim { display: none; }

/* app switch: 7Coach / 7OC */
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 20px; background: rgb(var(--card-rgb) / 0.6); box-shadow: 0 0 0 1px var(--rim); margin-bottom: 14px; }
.switch button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--muted); transition: background-color 0.2s ease, color 0.2s ease; }
.switch button img { border-radius: 7px; flex: none; opacity: 0.55; transition: opacity 0.2s ease; }
.switch button b { display: block; font-size: 14px; line-height: 1.2; }
.switch button small { display: block; font-size: 11px; line-height: 1.2; }
:root[data-app='coach'] [data-app-btn='coach'], :root[data-app='client'] [data-app-btn='client'] { background: rgb(var(--card-rgb) / 1); color: var(--title); box-shadow: 0 1px 0 var(--glint) inset, 0 6px 14px -8px var(--shadow); }
:root[data-app='coach'] [data-app-btn='coach'] img, :root[data-app='client'] [data-app-btn='client'] img { opacity: 1; }
:root[data-app='coach'] [data-app-tree='client'], :root[data-app='client'] [data-app-tree='coach'] { display: none; }

/* sections tree */
.tree details { border-radius: 14px; }
.tree summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; cursor: pointer; list-style: none; color: var(--title); font-weight: 700; font-size: 15px; user-select: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ''; width: 7px; height: 7px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 0.2s ease; margin-right: 2px; }
.tree details[open] > summary::before { transform: rotate(45deg); }
.tree summary span { flex: 1; }
.tree summary small { font-size: 12px; font-weight: 700; color: var(--muted); background: rgb(var(--accent-rgb) / 0.10); border-radius: 10px; padding: 1px 8px; }
.tree summary:hover { background: rgb(var(--accent-rgb) / 0.08); }
.tree ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 21px; }
.tree li a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--text); }
.tree li a:hover { background: rgb(var(--accent-rgb) / 0.08); text-decoration: none; color: var(--title); }
.tree li a[aria-current] { background: rgb(var(--accent-rgb) / 0.14); color: var(--title); font-weight: 700; }

.hero { padding: 24px 0 4px; }
.hero h1 { font-size: clamp(28px, 4vw, 38px); }
.toc { display: none !important; }
@media (min-width: 1400px) { .toc { display: flex !important; } }

/* phone / tablet: the menu is a drawer from the left; on the home page it stays inline under the intro */
@media (max-width: 900px) {
  .menu { display: inline-flex; }
  .layout { display: block; }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); max-height: none; padding: 16px; transform: translateX(-105%);
    transition: transform 0.25s ease; background: var(--page); box-shadow: 0 0 40px -10px var(--shadow); }
  body.menu-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgb(0 0 0 / 0.35); }
  body.menu-open .scrim { display: block; }
  body.menu-open { overflow: hidden; }
  .home .layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .home .main { padding-bottom: 8px; }
  .home .main [data-app-tree] { display: none !important; }
  .home .side { position: static; transform: none; width: auto; padding: 8px 0 0; background: none; box-shadow: none; }
  .home .menu { display: none; }
}
/* desktop home: main is first in the markup (phone order), the menu stays on the left */
@media (min-width: 901px) { .home .side { order: -1; } }

/* ===== owner remarks 2026-11-28 (2) ===== */
/* left menu: room for the scrollbar is always kept, so the menu does not jump when it appears; thin bar */
.side { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; padding-left: 2px; }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 6px; }
.side::-webkit-scrollbar-track { background: transparent; }
/* app switch: full pill, inner buttons round on both ends */
.switch { border-radius: 999px; }
.switch button { border-radius: 999px; padding: 7px 12px 7px 8px; }
/* «Похожие статьи»: heading in the size of the text */
h2.block.rel { font-size: 17px; margin-top: 28px; }
/* theme icon: moon in the light theme, sun in the dark one */
[data-theme-toggle] .sun { display: none; }
:root[data-theme='dark'] [data-theme-toggle] .sun { display: block; }
:root[data-theme='dark'] [data-theme-toggle] .moon { display: none; }

/* footer: one plain block */
.foot { margin-top: 32px; padding: 24px 0 28px; box-shadow: 0 -1px 0 var(--rim); background: none; }
.gets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.get { display: inline-flex; align-items: center; gap: 10px; color: var(--title); }
.get:hover { text-decoration: none; }
.get img { border-radius: 8px; }
.get b { font-size: 15px; }
.get .btn { min-height: 36px; padding: 6px 14px; gap: 6px; font-size: 13px; background: rgb(var(--accent-rgb) / 0.12); color: var(--accent); box-shadow: none; }
.get:hover .btn { background: rgb(var(--accent-rgb) / 0.2); }
.foot .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; font-size: 14px; }
.foot .copy { margin: 0; font-size: 13px; color: var(--muted); }

/* language: links on wide screens, a small drop-down on narrow ones */
.langmenu { display: none; position: relative; flex: none; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 10px; border-radius: 14px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--title); background: rgb(var(--accent-rgb) / 0.12); }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; min-width: 76px; padding: 4px;
  background: rgb(var(--card-rgb) / 0.98); border-radius: 14px; box-shadow: 0 0 0 1px var(--rim), 0 12px 28px -10px var(--shadow); }
.langmenu nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.langmenu nav a[aria-current] { color: var(--title); background: rgb(var(--accent-rgb) / 0.12); }
.langmenu nav a:hover { text-decoration: none; background: rgb(var(--accent-rgb) / 0.08); }
@media (max-width: 680px) {
  .bar .in { flex-wrap: wrap; gap: 8px; }
  .langs { display: none; }
  .langmenu { display: block; margin-left: auto; }
  .logo { min-width: 0; }
  .logo b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search.top { order: 5; flex-basis: 100%; }
}

/* footer centred, © on its own line; store icons on one optical line; smooth jumps from «Содержание» */
.foot .in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gets, .foot .links { justify-content: center; }
.foot .copy { margin-top: 14px; }
.get .btn svg { display: block; flex: none; width: 15px; height: 15px; }
.get .btn svg:first-child { transform: translateY(-1px); }
.get .btn svg + svg { margin-right: 2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* header: search in the middle of the page, title left, language + theme right (owner 2026-11-28) */
.bar .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 460px) minmax(0, 1fr); gap: 16px; }
.bar .bl, .bar .br { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar .br { justify-content: flex-end; }
.search.top { max-width: none; margin: 0; }
@media (max-width: 680px) {
  .bar .in { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .search.top { grid-column: 1 / -1; order: 0; }
  .langmenu { margin-left: 0; }
}
/* up to 900 px: two rows — title + language/theme, then the search across the page */
@media (max-width: 900px) {
  .bar .in { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .bar .bl { grid-row: 1; grid-column: 1; }
  .bar .br { grid-row: 1; grid-column: 2; }
  .search.top { grid-row: 2; grid-column: 1 / -1; }
}
.bar .logo { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.bar .logo b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .bar .logo b { font-size: 15px; } .bar .bl, .bar .br { gap: 6px; } }
