/* Шрифты лежат на сайте, без Google (из России он грузится через раз): Inter — как в приложении, Lora — слово логотипа.
   Переменные woff2 с Google Fonts (лицензия OFL), по наборам знаков: браузер берёт только нужный.
   latin-ext у Inter — ради знаков ₽ и →. Файлы .ttf в fonts/inter — только для tools/reel.sh, на сайт не идут. */
@font-face { font-family: Inter; src: url("fonts/inter/cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; src: url("fonts/inter/latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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; }
@font-face { font-family: Inter; src: url("fonts/inter/latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+20A0-20AB, U+20AD-20C4, U+2192; }
@font-face { font-family: Lora; src: url("fonts/lora/cyrillic.woff2") format("woff2"); font-weight: 500 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Lora; src: url("fonts/lora/latin.woff2") format("woff2"); font-weight: 500 600; font-display: swap;
  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 {
  --ink: #17264a;          /* синий логотипа */
  --text: #111827;
  --muted: #667085;
  --line: #e6e8ef;
  --bg: #ffffff;
  --soft: #f6f6fb;
  --grad: linear-gradient(90deg, #b8a6ff, #f2a7cf);
  --title: min(9.9vw, 120px);
  --phone: clamp(154px, 15.4vw, 203px); /* 10.10: на 30% меньше, под заголовком */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* орбиты шире экрана телефона */
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- шапка ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-word { font: 600 26px/1 Lora, Georgia, serif; letter-spacing: -0.01em; }
/* На компьютере «My Design» в одну строку (29.10.2026); на телефоне 320 px без переноса не помещается бутерброд. */
@media (min-width: 981px) { .logo-word { white-space: nowrap; } }
/* Эмблема приложения: hd/brand/mark.png, перекрашенная в синий логотипа (assets/mark.png). */
.logo-mark { width: 54px; height: 54px; flex: none; display: block; }
/* Меню опущено, чтобы буквы стояли на одной линии с «My Design» (у Lora строка садится ниже). */
.menu { display: flex; gap: 40px; font-size: 14px; font-weight: 500; position: relative; top: 8px; }
.menu a:hover, .link:hover { color: var(--ink); }
/* Шесть пунктов (28.10.2026 — «О проекте», 29.10 — «Блог»): без переносов внутри пункта; на средней ширине — теснее. */
.menu a { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1240px) { .menu { gap: 20px; font-size: 13.5px; } }
/* До 1100 px ещё теснее и «Кабинет» вместо «Личного кабинета» (ниже, у .btn-login): иначе «My Design» переносился
   на две строки (было и до «Блога»), а без переноса кнопка выходила за край. Сверено снимками 981–1240 (29.10.2026). */
@media (min-width: 981px) and (max-width: 1100px) { .menu { gap: 14px; font-size: 13px; } }
/* Соцсети и «Войти» опущены вместе с меню: «Войти» на линии пунктов, иконки по центру с ней.
   На узком экране меню нет — правая часть по центру шапки. */
.top-right { display: flex; align-items: center; gap: 14px; position: relative; top: 8px; }
/* position: static — иначе выпадающая панель бутерброда меряется от правой части, а не от всей шапки. */
@media (max-width: 980px) { .top-right { position: static; } }
/* Соцсети в шапке бледные, при наведении — синие. */
.social { width: 34px; height: 34px; display: grid; place-items: center; color: #a3a9b8; border-radius: 50%; transition: color .2s; }
.social:hover { color: var(--ink); }
.social:hover { background: var(--soft); }
.social svg { width: 22px; height: 22px; }

/* Бутерброд — только на узких экранах; панель выпадает под шапкой. */
.top { position: relative; }
.burger { display: none; }
.burger summary {
  list-style: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; cursor: pointer; color: var(--ink);
}
.burger summary::-webkit-details-marker { display: none; }
.burger summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger[open] summary { background: var(--soft); }
.burger-panel {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 8px);
  display: grid; padding: 10px 20px 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 18px 40px -16px rgba(23, 38, 74, .28); border: 1px solid var(--line);
}
.burger-panel > a { padding: 13px 0; font-size: 16px; font-weight: 500; color: var(--text); }
.burger-panel > a + a { border-top: 1px solid var(--line); }
.burger-social { display: flex; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }

/* Все кнопки сайта одного вида — сиренево-розовый градиент (кроме «Войти» в шапке). */
.btn-grad {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border: 0; border-radius: 12px; font: 600 14px Inter, sans-serif; cursor: pointer;
  background: var(--grad); color: #1b1f3a;
}
.btn-grad:hover { filter: brightness(.97); }
.link { color: var(--muted); font-weight: 500; }

/* ---------- первый экран ---------- */

.hero { position: relative; padding-top: 48px; }
/* Космос шире узкого экрана — обрезаем по краям страницы, без горизонтальной прокрутки. */
main { overflow-x: clip; }

.stage { position: relative; height: calc(var(--title) * 1.55 + var(--lead-gap, 0px) + var(--phone) * 2.95); }

.title {
  position: absolute; inset: 0 0 auto 0;
  text-align: center; white-space: nowrap; text-transform: uppercase;
  font: 700 var(--title)/1 Inter, sans-serif; letter-spacing: -0.04em;
  color: var(--text); z-index: 1;
}

/* Рендер телефона с полями и тенью: сам телефон — около двух третей ширины картинки. */
.phone {
  position: absolute; z-index: 2; display: block;
  top: calc(var(--title) * 1.55 + var(--lead-gap, 0px)); left: 50%; translate: -50% 0;
  width: calc(var(--phone) * 1.45); height: auto;
}

.orbits {
  position: absolute; z-index: 0;
  width: calc(var(--phone) * 3.1); left: 50%; translate: -50% 0;
  top: calc(var(--title) * 1.55 + var(--lead-gap, 0px) + var(--phone) * 1.556 - var(--phone) * 1.55);
  fill: none; stroke: var(--ink); stroke-width: 1.3; overflow: visible;
}
.orbits .track { stroke: #fff; opacity: .22; }
.orbits .space { stroke: none; }
.orbits .st { fill: #fff; }
.orbits .tw { animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
/* Передний слой орбит — над телефоном: ближние половины эллипсов и пролетающие планеты (assets/orbits.js). */
.orbits-front { z-index: 3; pointer-events: none; }
.orbits .track.front { opacity: .14; }
/* Лёгкое тёплое свечение, будто планеты освещает Солнце за телефоном: мелкие не теряются в туманности. */
.orbits .pl image { filter: drop-shadow(0 0 3px rgba(255, 244, 228, .55)) drop-shadow(0 0 9px rgba(255, 236, 214, .25)); }
@media (prefers-reduced-motion: reduce) { .orbits .tw { animation: none; } }

/* Пункты слева. Первый — на уровне верха карточки справа (её верх title+170), дальше — с равным шагом
   (24.10.2026: пятый пункт «Наши открытия» длиннее карточки — ровнять низ по ней больше нельзя). */
.facts {
  position: absolute; z-index: 2; left: 0; top: calc(var(--title) + 170px);
  list-style: none; margin: 0; padding: 0; display: grid; align-content: start; row-gap: var(--facts-gap);
  --facts-gap: 22px;
  /* Значки — центры бодиграфа сверху вниз, как цепочка на карточке справа: голова, аджна, горло, джи, сакрал. */
  --ic-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b8a6ff'/%3E%3Cstop offset='1' stop-color='%23f2a7cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 2.5 18 16.5H2Z' fill='%23fff' stroke='url(%23g)' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b8a6ff'/%3E%3Cstop offset='1' stop-color='%23f2a7cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 17.5 18 3.5H2Z' fill='%23fff' stroke='url(%23g)' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-sq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b8a6ff'/%3E%3Cstop offset='1' stop-color='%23f2a7cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3' y='3' width='14' height='14' rx='1.5' fill='%23fff' stroke='url(%23g)' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b8a6ff'/%3E%3Cstop offset='1' stop-color='%23f2a7cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 1.5 18.5 10 10 18.5 1.5 10Z' fill='%23fff' stroke='url(%23g)' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.facts li:nth-child(1) { --ic: var(--ic-up); }
.facts li:nth-child(2) { --ic: var(--ic-down); }
.facts li:nth-child(3), .facts li:nth-child(5) { --ic: var(--ic-sq); }
.facts li:nth-child(4) { --ic: var(--ic-dia); }
.facts b { display: block; font-size: 17px; line-height: 1.15; margin-bottom: 2px; font-weight: 700; color: var(--text); }
/* Подписи — 13 px (21.10: были 14; подписи стали длиннее — так они не сливаются со следующим пунктом). */
.facts span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
/* На широком экране значки — на уровне названий, между ними «канал»: от центра значка до центра следующего. */
@media (min-width: 981px) {
  .facts li { position: relative; padding-left: 36px; max-width: 250px; text-wrap: balance; }
  .facts li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 20px; height: 20px; background: var(--ic) no-repeat center / contain; }
  .facts li:not(:last-child)::after {
    content: ""; position: absolute; left: 9.25px; top: 10px; width: 1.5px; height: calc(100% + var(--facts-gap));
    background: linear-gradient(#b8a6ff, #f2a7cf);
  }
}

.card-price {
  position: absolute; z-index: 2; right: 0; top: calc(var(--title) + 170px);
  width: 240px; padding: 26px 22px 28px; text-align: center; border-radius: 22px;
  /* Тонкая бледная обводка и молочная заливка с лёгким сиреневым — без свечения. */
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255,255,255,.82), rgba(247,244,255,.9)) padding-box,
    linear-gradient(160deg, rgba(184,166,255,.55), rgba(242,167,207,.35) 60%, rgba(184,166,255,.55)) border-box;
  backdrop-filter: blur(6px);
  display: grid; justify-items: center; gap: 14px;
}
.card-price .try { display: block; }
.card-get { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.card-get .link { font-size: 14px; }
.card-price .chain { width: 30px; height: 112px; color: var(--ink); margin-bottom: 4px; }
.card-price b { display: block; font-size: 18px; font-weight: 700; }
.card-price span { color: var(--muted); font-size: 14px; }

/* ---------- блоки ниже ---------- */

.block { padding: 110px 0 0; }
.h2 {
  font: 700 32px/1.15 Inter, sans-serif; letter-spacing: -0.02em;
  margin-bottom: 36px;
}
/* Заголовок и мелкая ссылка рядом с ним. */
.head-row { display: flex; align-items: baseline; gap: 18px; }
.head-row .link { font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Видео автора на главной (10.11.2026): ряд вертикальных роликов 9:16, под каждым — запись блога; на телефоне — вбок. */
.vids-lead { margin: -20px 0 28px; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.vids-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.vid { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.vid video { display: block; width: 100%; aspect-ratio: 9/16; border-radius: 18px; background: #111; object-fit: cover; }
.vid figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.35; }
.vid figcaption a { color: var(--text); font-weight: 600; text-decoration: none; }
.vid figcaption a:hover { color: var(--ink); }
.vid figcaption span { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) {
  .vids-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 8px; }
  .vid { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; scroll-margin-left: 16px; }
}

/* Плашка прозрачная: сверху слева бледно-серый уголок (2 px), плавно гаснущий по обоим краям; справа снизу — лёгкая тень.
   Так оформлены тарифы. */
.plan { position: relative; border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
.plan::before {
  content: ""; position: absolute; width: 45%; height: 60%; border: 2px solid; pointer-events: none;
  left: 0; top: 0; border-color: #c9cdd8; border-right: 0; border-bottom: 0; border-top-left-radius: 20px;
  -webkit-mask: radial-gradient(ellipse at top left, #000, transparent 70%); mask: radial-gradient(ellipse at top left, #000, transparent 70%);
}
/* Годовой тариф выделен сиреневым уголком. */
.plan-best::before { border-color: #b8a6ff; }

/* «Что внутри»: слева телефон с роликом пункта и отблеском космоса, справа пункты, разделённые тонкими линиями. */
.inside { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.show-stage { position: relative; display: grid; place-items: center; padding: 30px 0; }
/* Кусочек космоса с первого экрана: то же фото, растворяется кругом по плавной кривой. */
.show-space {
  position: absolute; inset: -50px -90px; border-radius: 50%;
  background: url(assets/space.webp) center / cover;
  -webkit-mask: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.86) 60%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.22) 85%, rgba(0,0,0,.05) 95%, transparent);
          mask: radial-gradient(closest-side, #000 50%, rgba(0,0,0,.86) 60%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.22) 85%, rgba(0,0,0,.05) 95%, transparent);
}
/* Телефон рисуем сами: тёмный корпус, белые полосы сверху (с камерой) и снизу — ролик без строки состояния. */
.show-phone {
  position: relative; width: 268px; padding: 8px; border-radius: 46px;
  background: linear-gradient(150deg, #4a4d57, #101116 35%, #1d1f25 70%, #3b3e47);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 40px 70px -28px rgba(8, 12, 35, .75);
}
.show-phone::before {
  content: ""; position: absolute; z-index: 1; top: 18px; left: 50%; translate: -50% 0;
  width: 11px; height: 11px; border-radius: 50%; background: #0c0d11;
}
.show-video {
  display: block; width: 100%; aspect-ratio: 540 / 1100; object-fit: cover; background: #fff;
  border-radius: 38px; border-top: 26px solid #fff; border-bottom: 16px solid #fff; box-sizing: content-box;
  transition: opacity .25s;
}
.show-video.fade { opacity: 0; }

.feat { position: relative; padding: 6px 4px; }
/* Пункт витрины: наведение или очередь делают его активным; полоска снизу — сколько осталось ролика. */
.inside .feat { cursor: pointer; padding: 12px 14px 16px; border-radius: 14px; transition: background .3s; outline: none; }
.inside .feat h3 { transition: color .3s; }
.inside .feat.on { background: linear-gradient(160deg, rgba(241, 237, 255, .75), rgba(252, 240, 247, .6)); }
.inside .feat:focus-visible { box-shadow: 0 0 0 2px #b8a6ff; }
.feat-bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.feat.on .feat-bar { background: rgba(23, 38, 74, .08); }
.feat-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--grad); }
.feat:not(.on) .feat-bar::after { width: 0; }
.feat::before {
  content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 0;
  /* Рамка, а не фон: рамку браузер ставит ровно в пиксель, и все линии одной толщины. */
  border-left: 1px solid; border-image: linear-gradient(transparent, #a9aebb 50%, transparent) 1;
}
.inside .feat:nth-child(3n+1)::before { display: none; }
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Список с галочками в пункте — как в тарифах. */
.feat-ticks { list-style: none; padding: 0; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: grid; gap: 3px; }
/* Ссылка из пункта на статью по теме — для читателя и для внутренних ссылок сайта. */
.feat-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.feat-more::after { content: " →"; }
.feat-more:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .inside { grid-template-columns: 1fr; gap: 24px; }
}
/* Между планшетом и широким экраном рядом с роликом три колонки тесны. */
@media (min-width: 981px) and (max-width: 1180px) {
  .inside .grid3 { grid-template-columns: repeat(2, 1fr); }
  .inside .feat:nth-child(3n+1)::before { display: block; }
  .inside .feat:nth-child(2n+1)::before { display: none; }
}
/* Заголовок — над пунктами, на одной линии с текстом первого пункта (телефон 360 + зазор 56 + отступ пункта 14). */
.inside-head { padding-left: 430px; }
.show-dots { display: none; }
@media (max-width: 980px) { .inside-head { padding-left: 0; text-align: center; } }

/* Телефон: пункты — лента карточек, листается пальцем; видна одна карточка (80%) и край соседней, под ней точки. */
@media (max-width: 720px) {
  .inside .feat::before { display: none; }
  /* Телефон пониже, чтобы он, карточка и точки помещались на один экран. */
  .inside { gap: 8px; }
  .inside-head { margin-bottom: 4px; }
  .show-stage { padding: 14px 0; }
  .show-phone { width: 205px; padding: 7px; border-radius: 38px; }
  .show-phone::before { top: 14px; width: 9px; height: 9px; }
  .show-video { border-radius: 31px; border-top-width: 20px; border-bottom-width: 12px; }
  .inside .grid3 {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 10% 6px; scroll-padding-inline: 10%; scrollbar-width: none;
  }
  .inside .grid3::-webkit-scrollbar { display: none; }
  .inside .feat { flex: 0 0 80%; scroll-snap-align: center; border: 1px solid var(--line); background: #fff; }
  .inside .feat.on { border-color: transparent; }
  .show-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .show-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: #d5d8e0; cursor: pointer;
    transition: width .3s, background .3s;
  }
  .show-dots button.on { width: 22px; background: var(--grad); }
}

.plan { padding: 34px 30px; display: flex; flex-direction: column; }
/* Значок в правом верхнем углу тарифа: месяц — лунный оборот, год — оборот Земли вокруг Солнца; движение — assets/plan-orbits.js. */
.plan-orbit, .plan-mark { position: absolute; top: 8px; right: 8px; width: 136px; height: 136px; overflow: visible; }
.plan-mark { width: 68px; height: 68px; top: 30px; right: 40px; opacity: .85; }
/* Кнопка тарифа и под ней, в нижнем поле карточки, вторая дорога (03.11.2026): у бесплатного — «или открыть в браузере»
   (кабинет), у подписки — «или в приложении для Android»; главная кнопка подписки — «Оформить подписку» в кабинете. */
.plan-get { position: relative; display: grid; }
.plan-get .link { position: absolute; top: calc(100% + 8px); left: 0; right: 0; text-align: center; font-size: 13px; }
.po-track { fill: none; stroke: var(--ink); stroke-width: .5; opacity: .16; }
.po-sun { filter: drop-shadow(0 0 4px rgba(255, 170, 60, .7)) drop-shadow(0 0 10px rgba(255, 140, 40, .35)); }
.plan-orbit image:not(.po-sun) { filter: drop-shadow(0 0 1.5px rgba(23, 38, 74, .25)); }
.plan h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.plan .sum { font: 700 40px/1.2 Inter, sans-serif; letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan .note { color: var(--ink); font-weight: 600; font-size: 14px; }
/* Пункты тарифа с галочками вместо точек. */
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; align-content: start; flex: 1; }
.plan li, .feat-ticks li { position: relative; padding-left: 26px; }
.plan li::before, .feat-ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%238f7cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Эксклюзив в тарифе (заказчик 23.10.2026): огонёк вместо галочки, пункт тёмным, плашка «Только в My Design». */
.plan-more { display: block; margin: -12px 0 22px; font-size: 13px; font-weight: 600; color: var(--ink); }
.plan-more::after { content: " →"; }
.plan-more:hover { text-decoration: underline; }
.plan li.hot { color: var(--ink); font-weight: 600; }
.plan li.hot::before {
  top: .05em; width: 17px; height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ff6a3d'/%3E%3Cstop offset='1' stop-color='%23f2a7cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23f)' d='M8.2 1C8.6 3.4 10.6 4.6 11.7 6.4 12.6 7.9 12.8 9.6 12.2 11.1 11.5 13 9.8 14.5 7.9 14.5 5.6 14.5 3.6 12.7 3.5 10.4 3.4 8.8 4.1 7.5 5.2 6.6 5.3 7.6 5.8 8.4 6.6 8.8 6.3 6.1 6.9 3.2 8.2 1Z'/%3E%3Cpath fill='%23fff' opacity='.75' d='M8 9.2C8.9 10.2 9.6 10.9 9.6 12 9.6 13 8.8 13.8 7.9 13.8S6.3 13 6.3 12C6.3 11 7 10.3 8 9.2Z'/%3E%3C/svg%3E");
}
.excl { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--grad); color: #1b1f3a; font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }

/* Тарифы на компьютере (заказчик 04.11.2026: «как будто посередине плашка впереди, именно выбрана»; так же на «Расшифровках»):
   месяц (.plan-main) — шире, впереди, с тенью; остальные (.plan-side) — меньше, бледнее, краем заходят за него, высота по
   содержимому, без пустот внутри. На телефоне — как было. */
@media (min-width: 981px) {
  #pricing .prices, .tariffs .prices { gap: 0; align-items: center; }
  #pricing .prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  .tariffs .prices { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .prices .plan.plan-main {
    z-index: 2; padding: 40px 40px 46px; background: #fff;
    box-shadow: 0 0 0 1.5px rgba(143, 124, 255, .32), 0 22px 56px -14px rgba(23, 38, 74, .32);
  }
  .prices .plan-main::before { border-color: #b8a6ff; }
  .prices .plan-main .sum { font-size: 46px; }
  .prices .plan-main ul { font-size: 14.5px; }

  .prices .plan.plan-side {
    z-index: 1; padding-block: 26px 36px; background: #f8f8fc; opacity: .82; transition: opacity .2s;
    box-shadow: 3px 4px 10px -6px rgba(23, 38, 74, .16);
  }
  .prices .plan.plan-side:hover, .prices .plan.plan-side:focus-within { opacity: 1; }
  /* На «Расшифровках» за карточками космос: прозрачность пустила бы сквозь текст звёзды и номера ворот — плотный приглушённый цвет. */
  .tariffs .prices .plan.plan-side { opacity: 1; background: #e6e7ef; }
  .prices .plan.plan-side:first-child { margin-right: -28px; padding-inline: 24px 52px; }
  .prices .plan.plan-side:last-child { margin-left: -28px; padding-inline: 52px 24px; }
  .prices .plan-side::before { border-color: #c9cdd8; }
  .prices .plan-side h3 { font-size: 15px; }
  .prices .plan-side .sum { font-size: 30px; margin-top: 6px; }
  .prices .plan-side .note { font-size: 13px; }
  .prices .plan-side ul { font-size: 13px; margin: 14px 0 20px; gap: 6px; }
  .prices .plan-side .btn-grad { background: #eceef5; box-shadow: none; }
  .prices .plan-orbit { top: 6px; right: 6px; }
  .prices .plan-side .plan-orbit { width: 92px; height: 92px; }
  .prices .plan-side .plan-mark { width: 46px; height: 46px; top: 22px; right: 62px; }
}

.soon p { color: var(--muted); font-size: 18px; }
.soon .h2 { margin-bottom: 14px; }

details:not(.burger) { border-top: 1px solid var(--line); padding: 22px 0; max-width: 800px; }
details:not(.burger):last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
details:not(.burger) summary::after { content: "+"; float: right; color: var(--muted); }
details:not(.burger)[open] summary::after { content: "−"; }

/* «Сейчас на небе»: слева расчёт карты (assets/calc.js) — не шире карты в приложении (416), справа небо (assets/sky.js).
   Расчёт слева — его читают первым (заказчик 08.11.2026; раньше слева было небо). */
.sky-calc { display: grid; grid-template-columns: minmax(380px, 2fr) minmax(0, 3fr); grid-template-areas: "calc sky"; gap: 8px 48px; align-items: start; }
.sky-calc .calc { justify-self: start; }
/* Небо шире своей колонки: заходит в правое поле страницы, планетам и подписям нужно место, — до 80 px, но не за край
   экрана (поле — половина разницы экрана и 1200, минус полоса прокрутки), иначе справа обрезаются подписи планет. */
.sky-calc .sky-home { --bleed: clamp(0px, (100vw - 1200px) / 2 - 12px, 80px); grid-area: sky; margin: 0 calc(-1 * var(--bleed)) 0 0; width: calc(100% + var(--bleed)); }
.sky-home .sky { aspect-ratio: 4 / 3; margin-top: -24px; }

/* «Вопросы»: слева заголовок с контактами, справа вопросы. */
.faq { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "side list"; gap: 8px 48px; align-items: start; }
.faq-side { grid-area: side; }
.faq-list { grid-area: list; }
.faq-side p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.faq-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.faq-contacts .link { font-size: 14px; color: var(--ink); }
.faq-list details { max-width: none; padding: 20px 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 17px; }
/* Кружок с плюсом: при открытии плюс поворачивается в крестик, кружок заливается градиентом кнопок. */
.faq .faq-list details summary::after {
  content: ""; float: none; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #c9cdd8; transition: rotate .3s, background-color .3s, border-color .3s;
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2317264a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq .faq-list details[open] summary::after { content: ""; rotate: 45deg; border-color: transparent; background-color: #ece6ff; }
.faq .faq-list summary:hover::after { border-color: #b8a6ff; }
.faq-list details p { max-width: 720px; }
/* Ссылки в ответах (кабинет, оферта, политика) — подчёркнутые, цветом текста. */
.faq-list details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(143, 124, 255, .6); }
.faq-list details p a:hover { text-decoration-color: currentColor; }
/* Ответ мягко проявляется при открытии. */
.faq-list details[open] p { animation: faq-in .35s ease; }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .faq-list details[open] p { animation: none; } }
/* Узкий экран: расчёт над небом (заказчик 08.11.2026; раньше небо было первым), небо от края до края экрана;
   вопросы — в одну колонку. */
@media (max-width: 980px) {
  .sky-calc { grid-template-columns: 1fr; grid-template-areas: "calc" "sky"; gap: 20px; }
  .sky-calc .calc { justify-self: center; }
  .sky-calc .sky-home { margin: 0 -16px; width: calc(100% + 32px); }
  .sky-home .h2 { padding-left: 16px; }
  .sky-home .sky { margin-top: -12px; }
  .faq { grid-template-columns: 1fr; grid-template-areas: "side" "list"; gap: 20px; }
}
details p { color: var(--muted); margin-top: 10px; }

.foot {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
  margin-top: 120px; padding: 40px 0 56px; border-top: 1px solid var(--line);
}
/* Реквизиты продавца под логотипом — требование Robokassa (самозанятый: ФИО и ИНН). */
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-req { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.foot nav { display: grid; grid-template-columns: auto auto; gap: 64px; color: var(--muted); font-size: 14px; }
.foot-col { display: grid; align-content: start; gap: 10px; }
/* Соцсети в подвале — под «Связью», мельче, чем были в шапке; край значка — по краю строк. */
.foot-social { display: flex; gap: 2px; margin: 2px 0 0 -6px; }
.foot-social .social { width: 30px; height: 30px; }
.foot-social .social svg { width: 18px; height: 18px; }
.foot-col b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
/* Телефон: логотип с реквизитами, под ним две колонки — «Документы» и «Связь». */
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr; gap: 28px; margin-top: 90px; padding: 32px 0 44px; }
  .foot nav { grid-template-columns: 1fr auto; gap: 24px; }
  .foot-col { gap: 11px; }
}

/* ---------- узкие экраны ---------- */

@media (max-width: 980px) {
  .menu, .top-right > .social { display: none; }
  .burger { display: block; }
  .top-right { gap: 8px; }
  .facts, .card-price { position: static; }
  .facts { height: auto; }
  .stage { height: calc(var(--title) * 1.55 + var(--lead-gap, 0px) + var(--phone) * 2.95); }
  .hero { display: flex; flex-direction: column; }
  .facts { order: 2; margin-top: 40px; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .card-price { order: 3; width: 100%; margin-top: 36px; display: flex; justify-content: flex-start; align-items: center; gap: 28px; text-align: left; }
  .card-price .chain { margin: 0; height: 80px; width: 22px; flex: none; }
}

@media (max-width: 720px) {
  :root { --title: 13.5vw; --phone: 36vw; --lead-gap: 6px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .1em; } /* общее правило ниже по файлу */
  /* Карточка в одну линию: цепочка и текст слева, кнопка и ссылки под ней — справа. */
  .card-price { gap: 16px; padding: 22px 20px; }
  .card-get { margin: 0 0 0 auto; }
  .card-get .btn-grad { white-space: nowrap; }
  .top { padding: 20px 0; }
  .logo-word { font-size: 22px; }
  .logo-mark { width: 44px; height: 44px; }
  /* Пункты по центру, между ними — значок следующего пункта, те же центры, что у пунктов на широком экране
     (24.10.2026: вместо полоски). */
  .facts { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .facts li + li::before {
    content: ""; display: block; width: 18px; height: 18px; margin: 16px auto;
    background: var(--ic) no-repeat center / contain;
  }
  .block { padding-top: 80px; }
  .h2 { font-size: 26px; margin-bottom: 28px; }
  .grid3 { grid-template-columns: 1fr; }
}

/* Совсем узко: цепочка центров — бледный узор во всю высоту слева, текст и кнопка по центру карточки. */
@media (max-width: 520px) {
  .card-price { position: relative; inset: auto; display: grid; justify-content: center; justify-items: center; text-align: center; gap: 18px; padding: 24px 64px; }
  .card-price .chain {
    position: absolute; left: 14px; top: 14px; height: calc(100% - 28px); width: auto; aspect-ratio: 40 / 150;
    opacity: .28;
  }
  .card-get { width: auto; margin: 0; }
}

/* Подзаголовок под «MY DESIGN»: суть приложения одной фразой. */
.lead {
  position: absolute; inset: calc(var(--title) * 1.01) 0 auto 0; z-index: 1;
  text-align: center; color: var(--muted); font-size: clamp(15px, 1.5vw, 20px); font-weight: 500;
  padding-inline: 16px;
}

/* Надзаголовок над «MY DESIGN». */
.eyebrow {
  text-align: center; color: var(--muted); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 4px;
}

/* «Войти» — просто надпись на линии меню. */
/* На айфоне и айпаде (класс ios ставит скрипт в <head>) кнопки «Скачать в RuStore» становятся «Открыть личный
   кабинет», когда страница разобрана; до того — не видны, чтобы не мелькнули (заказчик 27.10.2026). Ссылки в тексте
   (ответ «Как установить приложение на Android?») остаются как есть. */
html.ios a.btn-grad[href*="rustore.ru"] { visibility: hidden; }
html.ios .apk-file { display: none; }
/* Вторая дорога под кнопкой тарифа на айфоне лишняя: «или в приложении для Android» — не для него, «или открыть в
   браузере» — кнопка над ней и так ведёт в кабинет. */
html.ios .plan-get .link { display: none; }
.btn-login { margin-left: 10px; padding: 6px 4px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.btn-login:hover { color: var(--ink); }
/* «Личный кабинет» в шапке; на телефоне — «Кабинет», чтобы «My Design» не переносилось (полное — в меню). */
.btn-login .cab-short { display: none; }
@media (max-width: 720px), (min-width: 981px) and (max-width: 1100px) { .btn-login .cab-full { display: none; } .btn-login .cab-short { display: inline; } }


/* ---------- «Что нового»: карточки статей ---------- */
/* 21.10: без роликов — заголовок, пара строк и «Читать»; ролики переехали в кружки сверху. */

.news .grid3 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .news .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news .grid3 { grid-template-columns: 1fr; gap: 14px; } }
.news .news-card { min-height: 0; gap: 10px; padding: 22px 22px 18px; }
.news-card h3 { font-size: 17px; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.news-card .post-more { margin-top: auto; padding-top: 4px; }

/* ---------- кружки «Что нового» сверху (assets/stories.js) ---------- */
/* Полоса выезжает, когда шапка уехала из виду; кружок — ролик обновления, в нём планета из шапки статьи. */
.stories {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(23, 38, 74, .25);
  translate: 0 -110%; visibility: hidden;
  transition: translate .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
}
.stories.on { translate: 0 0; visibility: visible; transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.stories-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.stories-h { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.stories-list { display: flex; gap: 12px; }
/* Кольцо — градиент кнопок, у просмотренных серое. */
.story {
  position: relative; flex: none; width: 48px; height: 48px; padding: 2px; border: 0; border-radius: 50%;
  background: var(--grad); cursor: pointer;
}
.story img {
  display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 6px; border: 2px solid #fff; border-radius: 50%;
  object-fit: contain; background: radial-gradient(circle at 50% 40%, #2a3462, #0c1124 75%); transition: padding .2s;
}
.story:hover img { padding: 4px; }
.story.seen { background: #d5d8e0; }
.story:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Название — подсказкой под кружком при наведении мышью. */
@media (hover: hover) {
  .story::after {
    content: attr(data-title); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0;
    padding: 5px 10px; border-radius: 8px; background: rgba(17, 24, 39, .9); color: #fff;
    font: 500 12px/1.2 Inter, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s;
  }
  .story:hover::after { opacity: 1; }
}
@media (max-width: 720px) {
  .stories-in { height: 60px; gap: 14px; }
  .stories-list { gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
  .stories-list::-webkit-scrollbar { display: none; }
  .story { width: 44px; height: 44px; }
}

/* ---------- ролик из кружка на весь экран ---------- */
/* На компьютере — рамка 9:16 по высоте окна и стрелки по бокам, на телефоне — весь экран.
   Вверху полоски роликов, справа крестик, внизу «Подробнее» — к статье; пока держат палец — всё это прячется.
   С 29.10.2026 в кружках — тёмные ролики Reels: фон рамки — цвет их космоса, полоски и крестик светлые; ролик
   вписан целиком (у них подписи во всю ширину) — на вытянутом экране телефона сверху и снизу поля фона. */
html.sv-lock { overflow: hidden; }
.sv {
  --dim: 1;
  position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: rgb(9 12 24 / calc(.94 * var(--dim))); opacity: 0; transition: opacity .25s;
}
.sv[hidden] { display: none; }
.sv.on { opacity: 1; }
.sv-frame {
  position: relative; flex: none; height: min(100dvh - 48px, 880px); aspect-ratio: 9 / 16; max-width: 100vw;
  border-radius: 18px; overflow: hidden; background: #0a0a1c; outline: none; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.sv-track { display: flex; height: 100%; will-change: transform; }
.sv-slide { position: relative; flex: 0 0 100%; height: 100%; }
.sv-slide img, .sv-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; pointer-events: none; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.sv-close {
  position: absolute; top: 22px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
}
.sv-close svg, .sv-side svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-read { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(23, 38, 74, .45); }
.sv-read[hidden] { display: none; }
.sv-bars, .sv-close, .sv-read { transition: opacity .2s; }
.sv.held :is(.sv-bars, .sv-close, .sv-read) { opacity: 0; }
.sv-side {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s;
}
.sv-side:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 720px), (hover: none) { .sv-side { display: none; } }
@media (max-width: 720px) {
  .sv-frame { width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
  .sv-bars { top: max(10px, env(safe-area-inset-top)); }
  .sv-read { bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .stories, .stories.on, .sv { transition: none; }
}

/* ---------- статьи ---------- */

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--ink); background: #f1edff; border-radius: 999px; padding: 3px 10px; }

/* Список статей: поиск и метки сверху, ниже карточки. */
/* Заголовок «Статьи» и поиск с лупой рядом. */
.articles-head { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 28px; }
.articles-head .h2 { margin: 0; }
.post-search { position: relative; width: 280px; }
.post-search svg {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.post-search input {
  width: 100%; height: 42px; padding: 0 16px 0 40px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
}
.post-search input::placeholder { color: #9aa1b1; }
.post-search input:focus { outline: none; border-color: #b8a6ff; box-shadow: 0 0 0 3px rgba(184, 166, 255, .25); }
.post-search:focus-within svg { stroke: var(--ink); }
.post-empty { color: var(--muted); font-size: 15px; padding: 24px 0; }
@media (max-width: 720px) { .post-search { width: 100%; } }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-filter button {
  font: 500 14px Inter, sans-serif; color: var(--text); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.tag-filter button[aria-selected="true"] { background: var(--grad); border-color: transparent; }
/* Список статей: карточки по три, без обложек — метки, название, время чтения и «Читать».
   Оформлены как тарифы: прозрачные, бледный уголок слева сверху и лёгкая тень справа снизу. */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 26px 26px 22px;
  border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); transition: box-shadow .3s, translate .3s;
}
.post-card::before {
  content: ""; position: absolute; width: 45%; height: 60%; border: 2px solid; pointer-events: none;
  left: 0; top: 0; border-color: #c9cdd8; border-right: 0; border-bottom: 0; border-top-left-radius: 20px;
  -webkit-mask: radial-gradient(ellipse at top left, #000, transparent 70%); mask: radial-gradient(ellipse at top left, #000, transparent 70%);
  transition: border-color .3s;
}
.post-card:hover { translate: 0 -3px; box-shadow: 6px 10px 20px -8px rgba(23, 38, 74, .22); }
.post-card:hover::before { border-color: #b8a6ff; }
/* Фильтр прячет карточки атрибутом hidden — без этого его перебивает display. */
.post-card[hidden] { display: none; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.post-meta .read-time { color: var(--muted); font-size: 13px; }
.post-more { font-size: 13px; font-weight: 600; color: var(--ink); }
.post-more::after { content: " →"; display: inline-block; transition: translate .3s; }
.post-card:hover .post-more::after { translate: 4px 0; }
.post-card:hover h2, .post-card:hover h3 { color: var(--ink); }
@media (max-width: 980px) { .post-list { grid-template-columns: repeat(2, 1fr); } }

/* Страница статьи: ролик слева и держится на экране, текст справа узкой колонкой для чтения. */
.post { padding-top: 40px; }
.articles { padding-top: 40px; }
/* «Расшифровки» (pages/src/rasshifrovki.html): подписка на свою карту и разовые расшифровки — два ряда тарифов. */
.offers { padding-top: 40px; }
.offers-h { font-size: 20px; margin: 0 0 22px; }
.offers .prices + .offers-h { margin-top: 64px; }
.offers .prices + .prices { margin-top: 28px; }
/* «Твоя расшифровка» (03.11.2026, assets/my-reading.js): форма и оглавление по карте — белая подложка над небом, как
   карточки тарифов. Поля, колёса даты и список городов — классы блока расчёта (calc.css); колёса — поверх, под полем. */
.me [hidden] { display: none !important; } /* как .calc [hidden]: у колёс и списка свой display */
.me { position: relative; margin: 0 0 64px; padding: 34px 34px 30px; background: #fff; border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
.me-h { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.me-lead { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 640px; margin: 0; }
.me .me-form { grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 22px; padding-top: 0; border-top: 0; }
.me-form .calc-city { grid-column: auto; }
.me-form .calc-go { grid-column: auto; height: 44px; padding: 0 22px; white-space: nowrap; }
.me-born { position: relative; }
.me-born .calc-wheels { position: absolute; top: 100%; left: 0; right: 0; z-index: 6; background: #fff; box-shadow: 0 12px 30px -12px rgba(23, 38, 74, .3); }
.me-out { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.me-head { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 40px; align-items: center; }
/* Бодиграф — блок расчёта главной с заданной картой (hdcalc.mount fixed): столбцы, ворота, страница ворот по нажатию.
   Колесо ворот, как и на главной, не показываем. */
.me-graph { min-width: 0; }
.me-graph .calc { max-width: 440px; margin: 0 auto; }
.me .calc-mandala-btn { display: none !important; }
.me-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.me-sum h3 { margin: 0; font-size: 30px; line-height: 1.2; }
.me-volume { margin: 0 0 18px; max-width: 540px; font-size: 15px; line-height: 1.5; }
.me-buy { flex-direction: column; line-height: 1.25; padding: 11px 28px; }
.me-buy small { font-size: 12px; font-weight: 500; opacity: .75; white-space: nowrap; }
.me-toc-h { margin: 42px 0 16px; font-size: 18px; }
.me-toc, .me-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.me-ch { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.me-ch-head { display: flex; align-items: baseline; gap: 10px; }
.me-n { font: 600 12px/1 Inter, sans-serif; letter-spacing: .06em; color: #a08cf5; }
.me-ch h4, .me-more h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.me-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
/* Скругление — на одну строку (пилюля), длинный перечень центров в несколько строк — скруглённый прямоугольник: буквы не уходят за угол. */
.me-facts li { padding: 5px 12px; border-radius: 14px; background: #f3f0ff; color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.me-ch p, .me-more p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.me-lock { margin-top: auto; display: grid; gap: 8px; padding-top: 4px; }
.me-bars { display: grid; gap: 6px; }
.me-bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #eceef4, #f6f7fa); }
.me-bars i:nth-child(2) { width: 86%; }
.me-bars i:nth-child(3) { width: 58%; }
.me-lock-t { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.me-lock-t svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.me-more li { padding: 18px 20px; border-radius: 16px; background: var(--soft); }
.me-more h4 { margin-bottom: 6px; }
.me-end { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.me-end p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .me { padding: 24px 18px; margin-bottom: 44px; }
  .me-h { font-size: 22px; }
  .me .me-form { grid-template-columns: 1fr; }
  .me-form .calc-go { width: 100%; }
  .me-head { grid-template-columns: 1fr; gap: 18px; }
  .me-graph .calc { max-width: 416px; }
  .me-sum { text-align: center; }
  .me-volume { margin-inline: auto; }
  .me-toc, .me-more { grid-template-columns: 1fr; }
  .me-buy { width: 100%; }
}
/* Живая схема на «Расшифровках» (04.11.2026, assets/my-reading.js, schemeMount; сама схема — assets/vglub.css, копия из кабинета). */
.me-scheme-lead { margin: -8px 0 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.me-scheme { --bg: #07070D; --text: #f4f4f8; position: relative; overflow: hidden; background: var(--bg); border-radius: 20px; }
.me-scheme-stage { min-height: 480px; }
.me-scheme .vg-offer { padding: 11px 18px; border-radius: 24px; background: var(--grad); color: #1b1f3a; font: 600 13px/1.2 Inter, sans-serif; text-align: center; text-decoration: none; }
.me-sheet { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 5; box-sizing: border-box; width: min(460px, calc(100% - 20px)); max-height: calc(100% - 64px); margin: 0 auto; padding: 20px 20px 18px; overflow-y: auto;
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 -8px 40px rgba(0, 0, 0, .5); }
.me-sheet h4 { margin: 0 34px 10px 0; font-size: 18px; line-height: 1.3; }
.me-sheet .me-facts { margin-bottom: 10px; }
.me-sheet p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.me-sheet .me-lock-t { display: flex; margin-bottom: 12px; font-size: 13px; }
.me-sheet-free { font-size: 13px !important; font-weight: 600; color: var(--ink) !important; }
.me-sheet-buy { display: block; text-align: center; }
.me-sheet-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; font: 400 24px/1 Inter, sans-serif; color: var(--muted); cursor: pointer; }
/* На компьютере панель широкая: карточка справа, схема остаётся видна. */
@media (min-width: 1000px) {
  .me-sheet { left: auto; right: 20px; top: 64px; bottom: auto; width: 320px; margin: 0; }
}
@media (max-width: 760px) {
  .me-scheme { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
}
/* Стопка глав на телефоне (04.11.2026, assets/my-reading.js, stackOf): верхняя стоит левее, следующие выглядывают справа. */
.me-stack-bar, .me-stack-hint { display: none; }
@media (max-width: 760px) {
  .me-stack { margin-inline: -18px; padding: 10px 18px 2px; overflow: hidden; }
  .me-toc.stack { display: block; position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .me-toc.stack .me-ch { position: absolute; left: 0; top: 0; box-sizing: border-box; width: calc(100% - 34px); height: 100%; background: #fff;
    box-shadow: 0 8px 20px -14px rgba(23, 38, 74, .45); transform-origin: right center; transition: transform .26s cubic-bezier(.2, .7, .2, 1), opacity .2s; will-change: transform; }
  .me-toc.stack ~ .me-stack-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
  .me-toc.stack ~ .me-stack-hint:not([hidden]) { display: block; margin: 6px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
  .me-stack-n { min-width: 64px; font: 600 14px/1 Inter, sans-serif; text-align: center; color: var(--ink); }
  .me-stack-go { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: 500 18px/1 Inter, sans-serif; color: var(--ink); cursor: pointer; }
  .me-stack-go:disabled { opacity: .35; cursor: default; }
}
/* «Что входит в подписку» картинками (03.11.2026, assets/sub-rows.js): раздел — белая карточка, телефон с записью экрана
   (рамка — .show-phone главной), обещание, три пункта и «Подробнее»; телефоны по очереди слева и справа. */
.sub-rows { display: grid; gap: 28px; }
.sub-row { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; padding: 34px 44px; background: #fff; border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
.sub-row:nth-child(even) { grid-template-columns: 1fr 260px; }
.sub-row:nth-child(even) .sub-phone { order: 2; }
.sub-phone { display: grid; place-items: center; }
.sub-phone .show-phone { width: 230px; cursor: default; }
.sub-text { max-width: 560px; }
.sub-n { margin: 0 0 6px; font: 600 12px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a08cf5; }
.sub-row h3 { margin: 0; font-size: 26px; line-height: 1.25; }
.sub-promise { margin: 10px 0 14px; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.sub-row .feat-ticks { font-size: 15px; gap: 8px; }
.sub-more { margin-top: 14px; }
.sub-more summary { display: inline-block; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); list-style: none; }
.sub-more summary::-webkit-details-marker { display: none; }
.sub-more summary::after { content: " ↓"; }
.sub-more[open] summary::after { content: " ↑"; }
.sub-more .feat-ticks { margin-top: 10px; }
.sub-news { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.sub-news-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a08cf5; }
.sub-news b { color: var(--ink); }
.sub-year, .sub-how { margin-top: 28px; padding: 34px 44px; background: #fff; border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
.sub-year h3, .sub-how h3 { margin: 0 0 18px; font-size: 22px; }
.sub-beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sub-beats li { padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: 14px; line-height: 1.45; color: var(--muted); }
.sub-beats b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }
/* Лента года: двенадцать месяцев, в каждом — Луна; посчитали карту — числа лунаров (assets/my-reading.js). */
.sub-moons { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 22px; }
.sub-month { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 0 12px; border-radius: 12px; background: var(--soft); }
.sub-month span { font-size: 12px; color: var(--muted); }
.sub-moon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 12px/1 Inter, sans-serif; font-style: normal;
  color: #1b1f3a; background: radial-gradient(circle at 35% 35%, #fff, #e3e5ee 60%, #c9ccd8); opacity: .45;
}
.sub-moons.on .sub-moon { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #b8a6ff; }
.sub-moons-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.sub-how .feat-ticks { font-size: 14px; gap: 8px; }
@media (max-width: 980px) {
  .sub-beats { grid-template-columns: repeat(2, 1fr); }
  .sub-moons { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 760px) {
  .sub-row, .sub-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; padding: 24px 18px; }
  .sub-row:nth-child(even) .sub-phone { order: 0; }
  .sub-phone .show-phone { width: 190px; }
  .sub-row h3 { font-size: 22px; }
  .sub-promise { font-size: 16px; }
  .sub-year, .sub-how { padding: 24px 18px; }
  .sub-beats { grid-template-columns: 1fr; }
  .sub-moons { grid-template-columns: repeat(4, 1fr); }
}
/* Тарифы «Расшифровок» (шаг 5, 03.11.2026): после разделов — месяц и год, гарантии, бесплатное строкой; на телефоне —
   закреплённая кнопка (assets/sub-rows.js). */
.tariffs { margin-top: 64px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin-inline: auto; }
.plan .note-day { margin-top: 2px; color: var(--muted); font-weight: 500; }
.trust { list-style: none; margin: 28px 0 0; padding: 26px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: #fff; border-radius: 20px; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.trust svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #8f7cff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
.free-line { margin: 20px 0 0; padding: 18px 24px; border-radius: 16px; background: rgba(255, 255, 255, .92); font-size: 14px; line-height: 1.5; color: var(--muted); }
.free-line b { color: var(--ink); }
.free-line a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #b8a6ff; text-underline-offset: 2px; }
html.ios .free-line .apk-link { display: none; }
.sub-how { margin-top: 28px; }
.sub-sticky { display: none; }
@media (max-width: 980px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; padding: 22px 18px; }
  .tariffs { margin-top: 44px; }
  /* Кнопка внизу экрана: появляется, когда форма и тарифы ушли с экрана; страница под ней не прячется. */
  .sub-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 24px -12px rgba(23, 38, 74, .35);
    transform: translateY(110%); transition: transform .25s;
  }
  .sub-sticky.on { transform: none; }
  .sub-sticky[hidden] { display: none; }
  .sub-sticky .btn-grad { width: 100%; flex-direction: column; line-height: 1.25; padding: 10px 20px; }
  .sub-sticky small { font-size: 12px; font-weight: 500; opacity: .75; }
  body:has(.sub-sticky.on) .foot { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .sub-sticky { transition: none; } }
/* Фон шапки статей и их списка (с 23.10.2026; до этого — «Расшифровок») — механизм за куполом неба (assets/mechanism.js,
   подложки assets/mech/, разметка — MECH в tools/build.mjs). Полотно 2400×640 по центру страницы, под шапкой и текстом,
   книзу оно растворяется. Над шапкой — лёгкая белая дымка, чтобы читались пункты меню. */
.mech {
  position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.mech::after { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, 0)); }
.mech-art { position: absolute; top: 0; left: 50%; width: 2400px; height: 640px; margin-left: -1200px; transform-origin: 50% 0; }
.mech-art > img, .mech-gears, .mech-tw { position: absolute; left: 0; top: 0; width: 2400px; height: 640px; }
.mech-gear, .mech-orrery, .mech-arm, .mech-hold, .mech-body { position: absolute; display: block; }
.mech-gear, .mech-arm, .mech-hold { will-change: transform; overflow: visible; }
.mech-arm > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mech-body { inset: 0; width: 100%; height: 100%; }
.mech-tw path { fill: #f3d98b; stroke: #3b2d17; stroke-width: .6; animation: mech-tw 2.6s ease-in-out infinite alternate; }
@keyframes mech-tw { from { opacity: .15; } to { opacity: 1; } }
.mech-off .mech-tw path { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mech-tw path { animation: none; } }
.offers .plan { background: #fff; }
/* Текст над картинкой — с мягкой белой обводкой: под ним небо и город. */
body:has(.mech) :is(.post .crumbs, .post-head, .articles .crumbs, .articles-head h1) { text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, .9), 0 0 2px #fff; }
body:has(.mech) .top .social { color: var(--ink); }
/* Статья: ролик и текст — на белой подложке, она заходит на низ картинки (шоссе), как карточки — на «Расшифровках» раньше. */
body:has(.mech) .post-grid { background: #fff; border-radius: 24px; padding: 32px; margin-inline: -32px; box-shadow: 0 10px 40px -24px rgba(23, 38, 74, .35); }
@media (max-width: 720px) { body:has(.mech) .post-grid { padding: 20px 16px; margin-inline: -16px; } }
/* Заголовок статьи мельче (как заголовки разделов): длинный в 40px уходил на город и мост, теперь он в небе над горизонтом. */
body:has(.mech) .post-head h1 { font-size: 32px; }
/* Время чтения — в строку с метками, над заголовком: под заголовком оно ложилось на город. */
body:has(.mech) .post-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
body:has(.mech) .post-head h1 { flex-basis: 100%; order: 2; }
/* Список: под заголовком с поиском — место для человека на картинке, метки и карточки ниже него. */
body:has(.mech) .articles-head { margin-bottom: 160px; }
/* Планшет и телефон: полотно мельче и сдвинуто влево — колесо ворот и человек остаются в кадре. */
@media (max-width: 980px) { .mech-art { transform: translateX(-170px) scale(.75); } }
@media (max-width: 720px) { .mech { height: 460px; } .mech-art { transform: translateX(-150px) scale(.55); } }
/* Хлебные крошки: домик · Статьи · текущая. Длинное название обрезается многоточием в одну строку. */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; flex: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crumbs i { font-style: normal; color: #c3c7d2; flex: none; }
.crumbs span { color: #b3b8c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-head { max-width: 760px; margin-bottom: 40px; }
/* Земля на главной (assets/sky.js): холст 11:8, проявляется после загрузки текстур. */
.sky { display: block; width: 100%; aspect-ratio: 11 / 8; opacity: 0; transition: opacity .8s; cursor: pointer; }
.sky.on { opacity: 1; }
/* «Расшифровки» (с 23.10.2026; до этого — статьи и их список): Млечный путь фоном справа (assets/galaxy.js),
   закреплён на весь экран под страницей. Карточки тарифов белые, чтобы над небом текст читался. */
.galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1s; }
.galaxy.on { opacity: 1; }
/* Подпись к небу внизу подложки (tools/build.mjs: SKY_NOTE): мелко, справа, во всю ширину. На телефоне неба нет — и подписи. */
.sky-note { margin-top: 36px; text-align: right; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sky-note a { color: var(--ink); text-decoration: underline; text-decoration-color: #b8a6ff; text-underline-offset: 2px; }
@media (max-width: 600px) { .sky-note { display: none; } }
/* Мерцание ярких звёзд поверх неба (assets/galaxy.js): только прозрачность и масштаб — анимацию ведёт видеокарта. */
.glints { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.glints i {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: 0;
  background: radial-gradient(circle, #fff 0 10%, rgba(210, 225, 255, .5) 24%, rgba(210, 225, 255, 0) 62%),
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, .7) 50%, transparent 54%) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, .7) 50%, transparent 54%) center / 1px 100% no-repeat;
  animation: glint 5s ease-in-out infinite;
}
@keyframes glint { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .glints { display: none; } }
.post-card, .post-cta { background: #fff; } /* и кнопки меток в списке — у них тоже белый фон */
/* Небо во весь экран; на «Расшифровках» белые только карточки тарифов — подложки под ними нет.
   Шапка и подвал лежат прямо на небе, белым. Компьютер и планшет — на телефоне неба нет; главная не меняется. */
@media (min-width: 601px) {
  /* Подложки нет (заказчик 23.10.2026): небо видно целиком, белые только карточки. Крошки и заголовок — белым,
     подпись к небу — светлой, иначе на тёмном небе они теряются. */
  body:has(canvas.galaxy) .offers > .crumbs, body:has(canvas.galaxy) .offers > .crumbs :is(a, i, span),
  body:has(canvas.galaxy) .offers > :is(h1, .offers-h), body:has(canvas.galaxy) .offers .tariffs > .offers-h { color: #fff; }
  body:has(canvas.galaxy) .offers > .crumbs a:hover { color: rgba(255, 255, 255, .75); }
  body:has(canvas.galaxy) .offers .sky-note { color: rgba(255, 255, 255, .6); }
  body:has(canvas.galaxy) .offers .sky-note a { color: #fff; }
  body:has(canvas.galaxy) .top .logo, body:has(canvas.galaxy) .menu a, body:has(canvas.galaxy) .btn-login,
  body:has(canvas.galaxy) .burger summary { color: #fff; }
  body:has(canvas.galaxy) .menu a:hover, body:has(canvas.galaxy) .btn-login:hover { color: rgba(255, 255, 255, .75); }
  body:has(canvas.galaxy) .top .social { color: rgba(255, 255, 255, .7); }
  body:has(canvas.galaxy) .top .social:hover { color: #fff; background: rgba(255, 255, 255, .12); }
  body:has(canvas.galaxy) .top .logo-mark { filter: brightness(0) invert(1); }
  /* Подвал лежит прямо на небе: ссылки и логотип белые, линия сверху — едва заметная. */
  body:has(canvas.galaxy) .foot { border-top-color: rgba(255, 255, 255, .18); }
  body:has(canvas.galaxy) .foot a { color: #fff; }
  body:has(canvas.galaxy) .foot a:hover { color: rgba(255, 255, 255, .75); }
  body:has(canvas.galaxy) .foot .logo-mark { filter: brightness(0) invert(1); }
  body:has(canvas.galaxy) .foot-req { color: rgba(255, 255, 255, .7); }
  body:has(canvas.galaxy) .foot-col b { color: #fff; }
}
.post-head h1 { font: 700 40px/1.15 Inter, sans-serif; letter-spacing: -0.02em; margin: 14px 0 12px; }
.post-head .read-time { color: var(--muted); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: 280px minmax(0, 680px); gap: 56px; align-items: start; }
/* Статья без ролика: текст на всю ширину колонки, без пустого места слева. */
.post-grid.no-side { grid-template-columns: minmax(0, 720px); }
.post-side { position: sticky; top: 24px; }
.post-video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #f7f6fc; object-fit: cover; }
.post-body { font-size: 17px; line-height: 1.65; }
.post-body > * + * { margin-top: 16px; }
.post-body .post-lead { font-size: 19px; line-height: 1.55; color: var(--text); }
.post-body h2 { font: 700 26px/1.25 Inter, sans-serif; letter-spacing: -0.01em; margin-top: 44px; }
.post-body h3 { font: 700 20px/1.3 Inter, sans-serif; margin-top: 32px; }
/* Предложение в конце статьи (build.mjs BLOCKS): что открывает покупка и как скачать. */
.cta-box { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(160deg, rgba(241, 237, 255, .9), rgba(252, 240, 247, .8)); }
.cta-box > * + * { margin-top: 10px; }
.cta-title { font: 700 20px/1.3 Inter, sans-serif; }
.cta-box p { font-size: 16px; line-height: 1.55; }
.cta-note { color: var(--muted); font-size: 14px !important; }
.cta-get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.post-body b { font-weight: 600; }
.post-body ul { padding-left: 22px; }
.post-body li + li { margin-top: 8px; }
.post-body details { max-width: none; }
.post-body details p { margin-top: 10px; }
/* Список с галочками, как в тарифах. */
.post-body ul.checks { list-style: none; padding: 0; }
.post-body ul.checks li { position: relative; padding-left: 28px; }
.post-body ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%238f7cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.post-cta {
  position: relative; margin: 64px 0 0; max-width: 1016px; padding: 32px 36px; border-radius: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px;
  box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18);
}
.post-cta::before {
  content: ""; position: absolute; left: 0; top: 0; width: 45%; height: 60%; pointer-events: none;
  border: 2px solid #c9cdd8; border-right: 0; border-bottom: 0; border-top-left-radius: 20px;
  -webkit-mask: radial-gradient(ellipse at top left, #000, transparent 70%); mask: radial-gradient(ellipse at top left, #000, transparent 70%);
}
.post-cta b { display: block; font-size: 22px; }
.post-cta span { color: var(--muted); }
.post-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
/* «Читайте также» под призывом: те же карточки, что в списке статей. */
/* Ссылки внутри текста статьи на другие статьи. */
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: #b8a6ff; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-related { margin-top: 56px; max-width: 1016px; }
.post-related h2 { font-size: 24px; margin-bottom: 20px; }

@media (max-width: 600px) { .galaxy { display: none; } }
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-side { position: static; }
  .post-video { width: min(280px, 100%); margin-inline: auto; }
}
@media (max-width: 720px) {
  .post-head h1 { font-size: 28px; }
  .post-body { font-size: 16px; }
  .post-body .post-lead { font-size: 17px; }
  .post-body h2 { font-size: 22px; margin-top: 36px; }
  .post-list { grid-template-columns: 1fr; gap: 16px; }
  .post-card { min-height: 0; }
  .post-cta { padding: 24px 20px; }
}
/* Таблица в статье: строки разделены линиями, цифры справа. */
.post-body table { width: 100%; max-width: 480px; border-collapse: collapse; font-size: 16px; }
.post-body th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.post-body td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-body th:last-child, .post-body td:last-child { text-align: right; font-weight: 600; }
/* Широкая таблица в статье (несколько колонок со словами): колонки с отступом, первая — жирная.
   .stack — на телефоне строки карточками, подпись колонки из data-label у ячейки. */
.post-body table.wide { max-width: none; font-size: 15px; }
.post-body table.wide th, .post-body table.wide td { padding-right: 14px; vertical-align: top; }
.post-body table.wide th:last-child, .post-body table.wide td:last-child { text-align: left; font-weight: 400; padding-right: 0; }
.post-body table.wide td:first-child { font-weight: 600; }
@media (max-width: 720px) {
  .post-body table.stack thead { display: none; }
  .post-body table.stack, .post-body table.stack tbody, .post-body table.stack tr, .post-body table.stack td { display: block; width: 100%; }
  .post-body table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .post-body table.stack td { border: 0; padding: 2px 0; }
  .post-body table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ---------- документы: оферта, политика, согласие, реквизиты ---------- */

.doc { max-width: 820px; padding-top: 40px; font-size: 16px; line-height: 1.65; }
.doc > * + * { margin-top: 14px; }
.doc h1 { font: 700 34px/1.2 Inter, sans-serif; letter-spacing: -0.02em; margin-bottom: 24px; }
.doc h2 { font: 700 22px/1.3 Inter, sans-serif; margin-top: 40px; scroll-margin-top: 24px; }
.doc h3 { font: 600 18px/1.35 Inter, sans-serif; margin-top: 28px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc b { font-weight: 600; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc-table th { background: var(--soft); font-weight: 600; }
.doc-table td:first-child { width: 28%; }
/* Что ещё заполнить или сверить с юристом — до публикации таких мест быть не должно. */
mark.todo { background: #fff1c2; color: #6b4b00; border-radius: 4px; padding: 0 3px; }
@media (max-width: 720px) {
  .doc h1 { font-size: 26px; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table thead { display: none; }
  .doc-table td { border-width: 0 0 1px; padding: 8px 0; }
  .doc-table td:first-child { width: 100%; padding-top: 14px; }
}

/* ---------- окно о cookie ---------- */

.cookie {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 720px;
  padding: 20px 22px; border-radius: 18px; background: #fff; color: var(--text); font-size: 14px; line-height: 1.5;
  box-shadow: 0 10px 40px rgba(23, 38, 74, .18); border: 1px solid var(--line);
}
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.cookie .link { background: none; border: 0; padding: 0; font: 500 14px Inter, sans-serif; cursor: pointer; }
.foot nav a[data-cookie-settings] { cursor: pointer; }

/* ---------- блог (29.10.2026, tools/build.mjs «блог») ---------- */

/* Дата публикации — над заголовком записи и в карточке (у статей там время чтения; у блога — дата, заказчик). */
.post-date { margin: 0; color: var(--muted); font-size: 14px; }
.post-card .post-date { font-size: 13px; }
.blog-card p:not(.post-date):not(.post-meta) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
/* Автор: фото кружком, имя и подпись — в начале записи и над списком; ведёт на «О проекте». */
.post-body .blog-author, .blog-author {
  display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none;
}
.blog-author img { width: 48px; height: 48px; border-radius: 50%; flex: none; display: block; }
.blog-author b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.blog-author:hover b { text-decoration: underline; text-decoration-color: #b8a6ff; text-underline-offset: 3px; }
.post-body .blog-author { margin-bottom: 8px; }
/* Над списком подпись лежит на низу картинки — белая плашка, как у карточек. */
.blog > .blog-author { margin-bottom: 28px; padding: 6px 20px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 5px 6px 12px -6px rgba(23, 38, 74, .18); }
/* «О проекте»: последние записи — название и дата одной строкой. */
.post-body ul.blog-latest { list-style: none; padding: 0; }
.blog-latest li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.blog-latest li + li { margin-top: 0; }
.blog-latest time { color: var(--muted); font-size: 14px; white-space: nowrap; }
