/* Блог hopeclass.ru/blog — в стиле лендинга: Inter, фиолетовый, мягкие свечения и звёзды. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/blog/assets/fonts/Inter-var-cyrillic.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/blog/assets/fonts/Inter-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #1c1b23;
  --body: #3d3a4a;
  --muted: #6b6679;
  --line: #e7e2f1;
  --soft: #f6f3ff;
  --violet: #7250ed;
  --violet-dark: #5733c9;
  --violet-ink: #4b2cac;
  --pink: #ff7ac6;
  --sky: #7ad7ff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(28, 27, 35, .04), 0 12px 32px -12px rgba(87, 51, 201, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: #fff; color: var(--body); font: 400 17px/1.7 var(--font); font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-ink); }
:focus-visible { outline: 3px solid var(--violet-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.03em; margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.wrap--post { max-width: 1120px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.section { padding-block: 40px; }
@media (min-width: 900px) { .section { padding-block: 64px; } }
.section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 750; margin-bottom: 24px; }
.accent { background: linear-gradient(92deg, var(--violet) 10%, #b45cf0 60%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid var(--violet); transition: background .16s ease, transform .16s ease, box-shadow .16s ease; box-shadow: 0 8px 20px -10px rgba(114, 80, 237, .7); }
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: #fff; transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 15px; }
.btn--light { background: #fff; color: var(--violet-ink); border-color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 8, 60, .55); }
.btn--light:hover { background: #f3efff; color: var(--violet-ink); border-color: #f3efff; }

/* Шапка и подвал */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(231, 226, 241, .8); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) { color: var(--body); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--ink); background: var(--soft); }
@media (max-width: 560px) { .hide-sm { display: none; } .site-nav .btn--sm { padding-inline: 12px; font-size: 14px; } }
.site-foot { border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--soft)); padding-block: 40px 24px; margin-top: 24px; }
.site-foot__in { display: grid; gap: 24px; }
@media (min-width: 800px) { .site-foot__in { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-foot p { max-width: 460px; font-size: 15px; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot__links a { color: var(--body); text-decoration: none; font-size: 15px; }
.site-foot__links a:hover { color: var(--violet-dark); text-decoration: underline; }

/* Первый экран: свечение и звёзды, как на лендинге */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 40px 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfaff 0%, #fff 100%); }
@media (min-width: 900px) { .hero { padding-block: 64px 56px; } }
.hero__glow { position: absolute; inset: -40% -10% auto; height: 140%; z-index: -2; background:
  radial-gradient(40% 50% at 18% 30%, rgba(114, 80, 237, .20), transparent 70%),
  radial-gradient(30% 40% at 82% 18%, rgba(255, 122, 198, .18), transparent 70%),
  radial-gradient(35% 45% at 65% 80%, rgba(122, 215, 255, .16), transparent 70%); filter: blur(8px); }
.hero__stars { position: absolute; inset: 0; z-index: -1; opacity: .7; background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, #b9a6ff 50%, transparent 51%),
  radial-gradient(1px 1px at 28% 68%, #d7c9ff 50%, transparent 51%),
  radial-gradient(2px 2px at 46% 18%, #c6b4ff 50%, transparent 51%),
  radial-gradient(1px 1px at 63% 52%, #ffc1e4 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 78% 30%, #b9e9ff 50%, transparent 51%),
  radial-gradient(1px 1px at 88% 74%, #c6b4ff 50%, transparent 51%),
  radial-gradient(2px 2px at 94% 12%, #ffd0ea 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 82%, #c6b4ff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .85; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 780; letter-spacing: -.045em; max-width: 920px; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 720px; margin: 16px 0 0; text-wrap: pretty; }
.hero--post h1 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 12px; }

.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #c4bdd3; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--body); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--soft); border: 1px solid #e2d8ff; color: var(--violet-ink); font-size: 13px; font-weight: 650; letter-spacing: .01em; line-height: 1.3; text-decoration: none; }
.chip--link:hover { background: #ece5ff; color: var(--violet-ink); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Рубрики и карточки */
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: thin; }
.cats a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); text-decoration: none; font-size: 15px; font-weight: 550; background: #fff; }
.cats a:hover { border-color: #cfc2ff; color: var(--ink); }
.cats a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cats__n { margin-left: 4px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
/* Цвета рубрик: плашка рубрики в фильтре, на карточке и в статье одного цвета */
[data-tone="0"] { --t-bg: #f1ebfd; --t-line: #e0d4fa; --t-ink: #6a43b8; }
[data-tone="1"] { --t-bg: #e7f4ee; --t-line: #cde6da; --t-ink: #2f6b53; }
[data-tone="2"] { --t-bg: #e8f0fc; --t-line: #d2e0f6; --t-ink: #345f99; }
[data-tone="3"] { --t-bg: #fff0e6; --t-line: #f8dcc9; --t-ink: #96532c; }
[data-tone="4"] { --t-bg: #fdebf3; --t-line: #f6d2e2; --t-ink: #9c3a67; }
[data-tone="5"] { --t-bg: #fbf4dd; --t-line: #efe2b5; --t-ink: #7a5d12; }
.chip[data-tone], .cats a[data-tone] { background: var(--t-bg); border-color: var(--t-line); color: var(--t-ink); }
.chip--link[data-tone]:hover, .cats a[data-tone]:hover { background: var(--t-bg); border-color: var(--t-ink); color: var(--t-ink); }
.cats a[data-tone][aria-current="page"] { background: var(--t-bg); border-color: var(--t-ink); color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-ink); }
/* Плашка рубрики на карточке — отдельная ссылка поверх ссылки-карточки */
.card__body .chip--link { position: relative; z-index: 1; }
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9cffb; }
.card__img { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--empty { display: grid; place-items: center; background: radial-gradient(60% 80% at 30% 20%, rgba(114, 80, 237, .28), transparent), radial-gradient(50% 70% at 80% 90%, rgba(255, 122, 198, .25), transparent), #f3efff; }
.card__img--empty span { font-size: 56px; font-weight: 800; color: rgba(87, 51, 201, .35); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__body .chip { align-self: flex-start; }
.card__title { font-size: 21px; font-weight: 720; letter-spacing: -.025em; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; font-size: 13.5px; }
.empty { border: 1px dashed #d5cbef; border-radius: var(--radius); padding: 40px 24px; text-align: center; background: #fcfbff; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; font-size: 15px; }
.pager a { font-weight: 650; text-decoration: none; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); }
.pager a:hover { border-color: #cfc2ff; background: var(--soft); }

/* Статья */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--pink)); }
.post__cover { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.post__cover img { width: 100%; }
.post__grid { display: grid; gap: 8px; padding-block: 28px 8px; }
@media (min-width: 1100px) { .post__grid { grid-template-columns: 250px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 44px; } .post__aside { order: 0; } }
/* Без оглавления (меньше двух подзаголовков) — одна колонка текста по центру, а не узкая левая. */
@media (min-width: 1100px) { .post__grid--solo { grid-template-columns: minmax(0, 720px); } }
/* Без оглавления заголовок, обложка и текст стоят в одной колонке: края картинки совпадают с краями текста. */
.post--solo .wrap--post { max-width: 784px; }
.post__aside { min-width: 0; }
.toc details { border: 1px solid var(--line); border-radius: 16px; background: #fcfbff; padding: 14px 16px; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--violet-dark); }
.toc a.is-active { font-weight: 650; }
@media (min-width: 1100px) { .toc { position: sticky; top: 92px; } .toc details { background: transparent; border: 0; padding: 0; } .toc summary { pointer-events: none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .toc summary::after { display: none; } .toc ol { padding-left: 0; list-style: none; border-left: 2px solid var(--line); gap: 2px; } .toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; } .toc a.is-active { border-left-color: var(--violet); } }

.prose { min-width: 0; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose figure, .prose blockquote { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 760; margin-top: 2em; scroll-margin-top: 92px; }
.prose h3 { font-size: clamp(21px, 2vw, 24px); font-weight: 720; margin-top: 1.6em; scroll-margin-top: 92px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--violet); font-weight: 700; }
.prose a { font-weight: 550; }
.b-figure { margin-inline: 0; }
.b-figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.b-figure figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.5; }
/* Карусель фотографий */
.b-gallery { position: relative; }
.b-gallery__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 16px; }
.b-gallery__track::-webkit-scrollbar { display: none; }
.b-gallery__track:focus-visible { outline: 3px solid var(--violet-ink); outline-offset: 3px; }
.b-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.b-gallery__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--soft); border-radius: 16px; border: 1px solid var(--line); }
.b-gallery__slide figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.b-gallery__bar { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.b-gallery.is-ready .b-gallery__bar { display: flex; }
.b-gallery__btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 24px/1 var(--font); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; transition: background .16s ease, border-color .16s ease, opacity .16s ease; }
.b-gallery__btn:hover:not(:disabled) { background: var(--soft); border-color: #cfc2ff; }
.b-gallery__btn:disabled { opacity: .35; cursor: default; }
.b-gallery__count { min-width: 56px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-quote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--violet); }
.b-quote p { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.b-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: var(--muted); }
.b-callout { border-radius: 18px; padding: 18px 20px; border: 1px solid; }
.b-callout p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.b-callout .b-callout__label { font-weight: 750; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.b-callout--tip { background: #f6f3ff; border-color: #e1d6ff; } .b-callout--tip .b-callout__label { color: var(--violet-dark); }
.b-callout--info { background: #f0f9ff; border-color: #cdeafc; } .b-callout--info .b-callout__label { color: #0f6a99; }
.b-callout--warn { background: #fff7ed; border-color: #fbd9b5; } .b-callout--warn .b-callout__label { color: #a2490d; }
.b-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 520px; }
.b-table th, .b-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.b-table th { background: var(--soft); color: var(--ink); font-weight: 650; }
.b-table tr:last-child td { border-bottom: 0; }
.b-faq { display: grid; gap: 10px; }
.b-faq__item { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.b-faq__item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; color: var(--ink); position: relative; font-size: 17px; line-height: 1.45; }
.b-faq__item summary::-webkit-details-marker { display: none; }
.b-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--violet); transition: transform .2s; }
.b-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.b-faq__a { padding: 0 18px 16px; }
.b-faq__a p { margin: 0; font-size: 16.5px; }
.b-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin-block: 2em; }

/* Призыв — тёмно-фиолетовая карточка со звёздами */
.b-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 30px 26px; color: #fff; background:
  radial-gradient(60% 90% at 0% 0%, rgba(255, 122, 198, .35), transparent 60%),
  radial-gradient(60% 90% at 100% 100%, rgba(122, 215, 255, .28), transparent 60%),
  linear-gradient(135deg, #5a34d6, #7250ed 55%, #8b5cf6); box-shadow: 0 24px 48px -24px rgba(87, 51, 201, .7); }
@media (min-width: 700px) { .b-cta { padding: 40px 44px; } }
.b-cta__stars { position: absolute; inset: 0; z-index: -1; opacity: .9; background-image:
  radial-gradient(1.5px 1.5px at 10% 30%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 25% 80%, #fff 50%, transparent 51%),
  radial-gradient(2px 2px at 70% 20%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 85% 60%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 55% 85%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 40% 15%, #fff 50%, transparent 51%); animation: twinkle 5s ease-in-out infinite alternate; }
.prose .b-cta { margin-top: 1.8em; }
.b-cta__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 760; letter-spacing: -.03em; line-height: 1.2; color: #fff; }
.b-cta__text { margin: 10px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.b-cta .btn { margin-top: 20px; }

.related { border-top: 1px solid var(--line); }
.preview-bar { position: sticky; top: 0; z-index: 40; background: #1c1b23; color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.preview-bar + .site-head { top: 37px; }

/* Cookies — как на лендинге */
.hc-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 420px; margin-left: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(28, 27, 35, .35); padding: 18px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.hc-cookie.is-visible { opacity: 1; transform: none; }
.hc-cookie p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--body); }
.hc-cookie strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.hc-cookie__row { display: flex; gap: 8px; }
.hc-cookie__row button { flex: 1; min-height: 42px; border-radius: 12px; font: 600 15px var(--font); cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--body); }
.hc-cookie__row .is-main { background: var(--violet); border-color: var(--violet); color: #fff; }

/* Телефон: кнопка в шапке в одну строку, в «хлебных крошках» без названия текущей статьи */
.site-nav .btn { white-space: nowrap; }
@media (max-width: 400px) { .logo { font-size: 17px; gap: 8px; } .site-nav { gap: 2px; } .site-nav > a:not(.btn) { padding-inline: 8px; } .site-nav .btn--sm { padding-inline: 11px; font-size: 13.5px; } }
@media (max-width: 699px) { .crumbs li:last-child { display: none; } .crumbs li:nth-last-child(2)::after { content: none; } }

/* Шапка: «Войти» прячется только на самых узких экранах */
@media (max-width: 420px) { .hide-xs { display: none; } }

/* Страницы функций (/onlajn-doska …, src/blog/features.ts) */
.btn--ghost { background: #fff; color: var(--violet-ink); border-color: #d9cffb; box-shadow: none; }
.btn--ghost:hover { background: var(--soft); color: var(--violet-ink); border-color: #cfc2ff; }
.feat-hero { padding-bottom: 48px; }
@media (min-width: 900px) { .feat-hero { padding-bottom: 72px; } }
.feat-hero .chip { margin-bottom: 14px; }
.feat-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feat-note { margin: 14px 0 0; font-size: 14px; }
.feat-hero__shot { margin: 40px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 4px rgba(28, 27, 35, .04), 0 40px 80px -40px rgba(87, 51, 201, .45); }
.feat-hero__shot img { width: 100%; }
.feat-sublead { margin: -12px 0 28px; color: var(--muted); max-width: 640px; }

.feat-tiles { display: grid; gap: 20px; }
@media (min-width: 900px) { .feat-tiles { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; } }
.feat-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fbfaff, #fff 60%); overflow: hidden; }
.feat-tile__text { padding: 24px 24px 0; }
@media (min-width: 700px) { .feat-tile__text { padding: 28px 28px 0; } }
.feat-tile h3 { font-size: 21px; font-weight: 720; letter-spacing: -.025em; }
.feat-tile p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; max-width: 560px; }
.feat-tile__shot { margin-top: 22px; padding-inline: 24px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.feat-tile__shot img { width: 100%; border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: 0; }
/* Телефон: видна верхняя часть экрана, низ уходит за край карточки */
.feat-tile--tall .feat-tile__shot { flex: none; height: 300px; overflow: hidden; align-items: flex-start; }
@media (min-width: 900px) { .feat-tile--tall .feat-tile__shot { flex: 1; height: auto; min-height: 260px; position: relative; } .feat-tile--tall .feat-tile__shot img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); } }
.feat-tile--tall .feat-tile__shot img { width: min(230px, 70%); border-radius: 26px 26px 0 0; border-width: 4px 4px 0; border-color: #1c1b23; }

.feat-cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .feat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.feat-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.feat-card:hover { border-color: #d9cffb; box-shadow: var(--shadow); }
.feat-ico { display: block; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--violet); }
.feat-card h3 { margin-top: 14px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.feat-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }

.feat-band { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--soft), #fff); border-block: 1px solid var(--line); scroll-margin-top: 64px; }
.feat-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 85% 10%, rgba(255, 122, 198, .12), transparent 70%), radial-gradient(35% 55% at 10% 90%, rgba(122, 215, 255, .14), transparent 70%); }
.feat-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .feat-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.feat-step { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feat-step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, #5a34d6, #8b5cf6); color: #fff; font-weight: 700; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.feat-step h3 { margin-top: 14px; font-size: 19px; font-weight: 720; letter-spacing: -.02em; }
.feat-step p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }

.feat-more { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .feat-more { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.feat-more .section-title { margin-bottom: 14px; }
.feat-more p { margin: 0 0 12px; max-width: 560px; }
.feat-link { font-weight: 650; text-decoration: none; }
.feat-link:hover { text-decoration: underline; }
.feat-more__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .feat-more__list { padding-top: 6px; } }
.feat-more__list li { padding: 9px 16px; border-radius: 999px; background: var(--soft); border: 1px solid #e2d8ff; color: var(--violet-ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.feat-faq .b-faq { max-width: 820px; }
.feat-faq { padding-top: 0; }
.feat-blog { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
/* Телефон: карточки возможностей компактнее — значок слева от заголовка */
@media (max-width: 639px) {
  .feat-cards { gap: 12px; }
  .feat-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .feat-card .feat-ico { grid-row: span 2; }
  .feat-card h3 { margin-top: 8px; }
}
.feat-final { padding-top: 0; }

/* Ссылки на соседние страницы функций в блоке «… — часть HopeClass» */
.feat-more__list li:has(> a) { padding: 0; background: #fff; border-color: #d9cffb; }
.feat-more__list a { display: block; padding: 9px 16px; border-radius: inherit; color: var(--violet-ink); text-decoration: none; }
.feat-more__list a:hover { background: var(--soft); }

/* Примеры экранов, свёрстанные на странице (features.ts: FINANCE_MOCK и др.) — подписи как в кабинете */
.mock { --ok: #1f7a55; --ok-bg: #e5f5ed; --warn: #b4234f; --todo: #9a5b0c; --todo-bg: #fff2df; font-size: 14px; line-height: 1.4; color: var(--ink); text-align: left; }
.mock b, .mock strong { font-weight: 700; }
.mock .warn { color: var(--warn); }
.mock .muted { color: var(--muted); }
.mock__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fcfbff; }
.mock__title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.mock__meta { color: var(--muted); font-size: 13.5px; }
.mock__tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #f1edfb; font-size: 13px; color: var(--muted); }
.mock__tabs > * { padding: 5px 11px; border-radius: 9px; }
.mock__tabs b { background: #fff; color: var(--violet-ink); font-weight: 650; box-shadow: 0 1px 3px rgba(33, 27, 52, .12); }
.mock__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 18px 0; }
@media (min-width: 760px) { .mock__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.mock__kpis > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.mock__kpis small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.mock__kpis strong { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock__kpis em { font-style: normal; font-size: 12px; color: var(--muted); }
.mock__kpis em.up { color: var(--ok); }
.mock__cols { display: grid; gap: 14px; padding: 14px 18px 18px; }
@media (min-width: 760px) { .mock__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mock__panel { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; background: #fff; min-width: 0; }
.mock__h { margin: 0 0 6px; font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock__list { list-style: none; margin: 0; padding: 0; }
.mock__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f0ecf8; }
.mock__list li:first-child { border-top: 0; }
.mock__list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__list b { font-variant-numeric: tabular-nums; }
.mock__btn { padding: 5px 11px; border-radius: 10px; background: var(--violet); color: #fff; font-size: 12.5px; font-weight: 650; }
.mock__done { font-size: 12px; color: var(--muted); }
.mock__chip { justify-self: start; padding: 3px 10px; border-radius: 999px; background: #f1edfb; color: var(--violet-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.mock__chip.ok { background: var(--ok-bg); color: var(--ok); }
.mock__chip.todo { background: var(--todo-bg); color: var(--todo); }
.mock__chip.no { background: #f3f1f6; color: var(--muted); }
.mock__rows { list-style: none; margin: 0; padding: 4px 18px 10px; }
.mock__rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "time topic sum" "time chip chip"; align-items: center; gap: 4px 12px; padding: 11px 0; border-top: 1px solid #f0ecf8; }
.mock__rows li:first-child { border-top: 0; }
.mock__rows time { grid-area: time; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mock__rows li > span:not(.mock__chip) { grid-area: topic; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__rows .mock__chip { grid-area: chip; }
.mock__rows b { grid-area: sum; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .mock__rows li { grid-template-columns: 104px minmax(0, 1fr) auto 76px; grid-template-areas: "time topic chip sum"; } .mock__rows b { text-align: right; } }
/* Напоминание родителю: карточка уведомления и варианты автонапоминаний */
.mock__push { margin: 0 0 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: 0 14px 30px -16px rgba(87, 51, 201, .45); }
.mock__push b { display: block; font-size: 14.5px; }
.mock__push p { margin: 2px 0 0; font-size: 13.5px; color: var(--body); line-height: 1.45; }
.mock__app { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.mock__app i { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #5a34d6, #b45cf0); }
.mock__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mock__opts span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--body); }
.mock__opts span.on { border-color: #cbbcfb; background: #f1edfb; color: var(--violet-ink); font-weight: 650; }
.mock__opts span.on::before { content: "✓ "; }
.mock__fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* Где стоят примеры: первый экран и карточки */
.feat-hero__shot--mock { background: #fff; }
.feat-tile__shot--mock { display: block; padding: 0 24px 24px; }
.feat-tile__shot--mock .mock { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.feat-tile__shot--mock .mock:has(.mock__push) { padding: 18px; background: radial-gradient(80% 90% at 0% 0%, rgba(114, 80, 237, .10), transparent 70%), radial-gradient(70% 80% at 100% 100%, rgba(122, 215, 255, .14), transparent 70%), #fbfaff; }
