/* NoteVault — сайт. Тёмная тема по умолчанию, светлая через data-theme или системную настройку. */

/* Чужой фрейм не должен показывать страницу, даже если хост не прислал X-Frame-Options */
html[hidden] {
  display: none !important;
}

@font-face {
  font-family: "Tiempos Text";
  src: url("../fonts/TiemposText-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter лежит у нас, а не на Google Fonts: иначе IP каждого посетителя уходит в Google.
   Вариативный шрифт, один файл на все жирности. Лицензия OFL в assets/fonts/Inter-OFL.txt */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #161616;
  --bg-raised: #1d1d1d;
  --screen: #000;
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, 0.82);
  --fg-muted: rgba(255, 255, 255, 0.55);
  --fg-dim: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.35);
  --frame: linear-gradient(160deg, #f4f5f7 0%, #8d929a 35%, #e9ebee 60%, #6f747c 100%);
  --metal: linear-gradient(120deg, #ffffff 0%, #c9ccd2 25%, #8e939b 45%, #ffffff 60%, #b5b9c0 80%, #ffffff 100%);
  --pill-bg: #fff;
  --pill-fg: #111;
  --glow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 0 22px rgba(255, 255, 255, 0.38);
  --focus: #9cc4ff;

  --serif: "Tiempos Text", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f3f1;
    --bg-raised: #e8e8e6;
    --screen: #0c0c0c;
    --fg: #121212;
    --fg-soft: rgba(18, 18, 18, 0.82);
    --fg-muted: rgba(18, 18, 18, 0.58);
    --fg-dim: rgba(18, 18, 18, 0.3);
    --line: rgba(18, 18, 18, 0.12);
    --line-strong: rgba(18, 18, 18, 0.3);
    --metal: linear-gradient(120deg, #2a2c30 0%, #7c818a 30%, #1a1b1e 50%, #8a8f97 75%, #2a2c30 100%);
    --pill-bg: #121212;
    --pill-fg: #fff;
    --glow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 6px 22px rgba(0, 0, 0, 0.22);
    --focus: #2f6fd6;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f3f3f1;
  --bg-raised: #e8e8e6;
  --screen: #0c0c0c;
  --fg: #121212;
  --fg-soft: rgba(18, 18, 18, 0.82);
  --fg-muted: rgba(18, 18, 18, 0.58);
  --fg-dim: rgba(18, 18, 18, 0.3);
  --line: rgba(18, 18, 18, 0.12);
  --line-strong: rgba(18, 18, 18, 0.3);
  --metal: linear-gradient(120deg, #2a2c30 0%, #7c818a 30%, #1a1b1e 50%, #8a8f97 75%, #2a2c30 100%);
  --pill-bg: #121212;
  --pill-fg: #fff;
  --glow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 6px 22px rgba(0, 0, 0, 0.22);
  --focus: #2f6fd6;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-family: var(--sans);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Логотип-цветок (маска поверх градиента) ---------- */

.flower {
  display: inline-block;
  aspect-ratio: 874 / 803;
  background: currentColor;
  -webkit-mask: url("../img/flower.svg") center / contain no-repeat;
  mask: url("../img/flower.svg") center / contain no-repeat;
}

/* ---------- Кнопки ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  box-shadow: var(--glow);
  font-family: var(--serif);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill:active {
  transform: translateY(0) scale(0.98);
}

.pill--sm {
  padding: 5px 13px;
  font-size: 13px;
}

.pill--md {
  padding: 10px 20px;
  font-size: 16px;
}

.pill--lg {
  padding: 14px 28px;
  font-size: 19px;
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 34px rgba(255, 255, 255, 0.5);
  }
}

:root[data-theme="light"] .pill--lg {
  animation: none;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: 52px;
  max-width: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 15px;
}

.brand .flower {
  width: 18px;
}





.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.header__actions > a:not(.pill) {
  color: var(--fg-muted);
}

.header__actions > a:not(.pill):hover {
  color: var(--fg);
}

.header__contact {
  color: var(--fg-muted);
  font-weight: 400;
}

.header__contact a {
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}

.header__contact a:hover {
  border-color: var(--fg);
}









/* ---------- Телефон ----------
   Пропорции iPhone 15 Pro: корпус 71.6 × 147.6 мм, рамка из титана, тонкий чёрный безель,
   Dynamic Island 126 × 37 pt на экране шириной 393 pt. Размеры внутри считаются от ширины корпуса. */

.phone {
  --w: 172px;
  --ios: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  --tint: #fff;
  --ios-fill: rgba(118, 118, 128, 0.24);
  --ios-cell: #1c1c1e;
  --ios-sep: rgba(84, 84, 88, 0.55);
  --ios-gray: #8e8e93;
  position: relative;
  width: var(--w);
  aspect-ratio: 71.6 / 147.6;
  padding: 2.5px;
  border-radius: calc(var(--w) * 0.165);
  background:
    linear-gradient(145deg, #d9dce0 0%, #7d8086 18%, #b9bcc1 42%, #f1f2f3 55%, #8a8d93 78%, #c6c9cd 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 1px 1.5px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

/* кнопки: Action, громкость вверх и вниз слева, боковая справа */
.phone__btn {
  position: absolute;
  width: 2.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, #6d7076, #c9ccd0 60%, #8a8d93);
}

.phone__btn--action { left: -1.5px; top: 18.5%; height: 5.5%; }
.phone__btn--up { left: -1.5px; top: 27%; height: 10%; }
.phone__btn--down { left: -1.5px; top: 39%; height: 10%; }
.phone__btn--side { right: -1.5px; top: 30%; height: 15.5%; transform: scaleX(-1); }

.phone__screen {
  position: relative;
  height: 100%;
  border: calc(var(--w) * 0.024) solid #000;
  border-radius: calc(var(--w) * 0.15);
  background: var(--screen);
  overflow: hidden;
  color: #fff;
  font-family: var(--ios);
  -webkit-font-smoothing: antialiased;
}

.phone__island {
  position: absolute;
  z-index: 3;
  top: calc(var(--w) * 0.03);
  left: 50%;
  width: calc(var(--w) * 0.305);
  height: calc(var(--w) * 0.09);
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.04);
}

/* камера справа в «острове» */
.phone__island::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 50%;
  width: calc(var(--w) * 0.04);
  height: calc(var(--w) * 0.04);
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3550, #0a0d16 70%);
}

/* время по центру левого «уха», значки по центру правого */
.phone__status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--w) * 0.33) minmax(0, 1fr);
  align-items: center;
  height: calc(var(--w) * 0.15);
  padding-top: calc(var(--w) * 0.012);
}

.phone__time {
  justify-self: center;
  font-size: calc(var(--w) * 0.043);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.phone__icons {
  grid-column: 3;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: calc(var(--w) * 0.012);
}

.phone__icons svg {
  display: block;
  height: calc(var(--w) * 0.034);
  width: auto;
  fill: currentColor;
}

/* у <svg><use> нет своих размеров, без пропорций браузер даст ему 300px ширины */
.phone__icons svg:nth-child(1) { aspect-ratio: 18 / 12; }
.phone__icons svg:nth-child(2) { aspect-ratio: 16 / 12; }
.phone__icons svg:nth-child(3) { aspect-ratio: 27 / 12; }

.phone__home {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--w) * 0.022);
  width: calc(var(--w) * 0.34);
  height: calc(var(--w) * 0.014);
  min-height: 2px;
  translate: -50% 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
}
/* ---------- Подвал: одна строка ---------- */

.footer {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  color: var(--fg-muted);
}

.footer__legal a {
  position: relative;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--fg);
}

.prefs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-raised);
}

.switch button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-muted);
  transition: background 0.2s, color 0.2s;
}

.switch button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch svg {
  width: 14px;
  height: 14px;
}

/* ---------- Поддержка ---------- */

.support-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.support-hero .flower {
  width: 54px;
  margin-bottom: 18px;
  animation: pulse 5s ease-in-out infinite;
}

.support-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.support-hero p {
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--fg-muted);
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  font-family: var(--sans);
  font-size: 15px;
}

.search input:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: var(--glow);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  font-family: var(--sans);
}

.topics button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.topics button:hover {
  color: var(--fg);
}

.topics button[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px var(--gutter) 70px;
}

.faq h2,
.contact h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

.qa[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.qa__body {
  padding: 0 0 20px;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 68ch;
}

.qa[open] .qa__body {
  animation: appear 0.35s ease both;
}

.faq__empty {
  padding: 24px 0;
  color: var(--fg-muted);
}

.contact {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

.contact > p {
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-raised);
  font-family: var(--sans);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 15px;
  color: var(--fg);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
  font-family: var(--serif);
  line-height: 1.5;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--fg-muted);
}

.form [aria-invalid="true"] {
  border-color: #ff6b5e;
}

.form__error {
  font-size: 12px;
  color: #ff6b5e;
  min-height: 0;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form__foot small {
  color: var(--fg-muted);
  font-size: 12px;
  max-width: 380px;
}

.form .pill {
  padding: 10px 22px;
  font-size: 15px;
}

.form__status {
  font-size: 14px;
  color: var(--fg-soft);
}

/* ---------- Юридические страницы (собираются docs/legal/build.py) ---------- */

/* В HTML обе версии, видна та, что совпадает с языком сайта. Испанский идёт на английскую */
html[lang="ru"] .legal[lang="en"],
html:not([lang="ru"]) .legal[lang="ru"] {
  display: none;
}

.legal-page {
  padding: 48px var(--gutter) 96px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 48px;
  font-family: var(--sans);
}

.legal-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.legal-nav a:hover {
  color: var(--fg);
}

.legal-nav a[aria-current="page"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.legal h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 44px 0 14px;
  scroll-margin-top: 72px;
}

.legal h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 10px;
  scroll-margin-top: 72px;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
  color: var(--fg-soft);
}

.legal .legal__meta {
  margin-bottom: 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-muted);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal a:hover {
  text-decoration-color: currentColor;
}

.legal strong {
  font-weight: 600;
  color: var(--fg);
}

.legal code {
  font-size: 0.9em;
}

.legal__table {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.legal th,
.legal td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--fg-soft);
}

.legal th {
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-raised);
}

.legal tbody tr:last-child td {
  border-bottom: 0;
}

/* Незаполненная заглушка из values.json: видно сразу, такую страницу не публикуем */
.legal__todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffd54a;
  color: #111;
  font-family: var(--sans);
  font-size: 0.85em;
}

/* ---------- Адаптив ---------- */

@media (max-width: 860px) {
  .header__contact > span,
  .header__help {
    display: none;
  }
}

@media (max-width: 560px) {
  .header__contact {
    display: none;
  }

  .header__actions {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}


/* ---------- Иконки ---------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1em;
  height: 1em;
  flex: none;
}

.ico--row {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  vertical-align: -1px;
}

.ico--shield {
  width: 14px;
  height: 14px;
  color: var(--fg-muted);
}

.ico--btn {
  width: 17px;
  height: 17px;
}

.pill--lg:hover .ico--btn {
  animation: nudge 0.9s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(3px);
  }
}

/* ---------- Шапка при скролле ---------- */

.header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--fg);
  opacity: 0.6;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}





/* ---------- Кнопки: блик и магнит ---------- */

.pill {
  position: relative;
  overflow: hidden;
  translate: var(--tx, 0) var(--ty, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shine: rgba(150, 160, 175, 0.4);
}

:root[data-theme="light"] .pill {
  --shine: rgba(255, 255, 255, 0.28);
}

.pill--lg::after,
.pill--sm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.pill--lg::after {
  animation: shine 5s ease-in-out 2.5s infinite;
}

.pill--sm:hover::after {
  animation: shine 0.9s ease-out;
}

@keyframes shine {
  0% {
    transform: translateX(-130%);
  }
  30%,
  100% {
    transform: translateX(130%);
  }
}

/* ---------- Появление при скролле (только если JS включил has-reveal) ---------- */

.has-reveal [data-reveal]:not(:has([data-reveal-item])),
.has-reveal [data-reveal-item] {
  opacity: 0;
  translate: 0 28px;
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.has-reveal [data-reveal].is-in:not(:has([data-reveal-item])),
.has-reveal .is-in [data-reveal-item] {
  opacity: 1;
  translate: 0 0;
  filter: none;
}


/* заголовки выезжают из-под маски */
.has-reveal .h-reveal[data-reveal] {
  opacity: 1;
  filter: none;
  translate: 0 0.5em;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.7, 0, 0.2, 1), translate 1s cubic-bezier(0.7, 0, 0.2, 1);
}

.has-reveal .h-reveal[data-reveal].is-in {
  translate: 0 0;
  clip-path: inset(0 0 -20% 0);
}

@media print {
  .has-reveal [data-reveal],
  .has-reveal [data-reveal-item] {
    opacity: 1 !important;
    translate: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* ---------- Разделы, которых ещё нет ---------- */

[data-soon] {
  position: relative;
  cursor: default;
}



/* бейдж «Скоро»: при наведении и коротким «тычком» после клика */
[data-soon]::before {
  content: attr(data-soon-label);
  position: absolute;
  z-index: 5;
  left: calc(100% + 8px);
  top: 50%;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  translate: -4px -50%;
  transition: opacity 0.2s ease, translate 0.25s ease;
  pointer-events: none;
}


[data-soon]:hover::before,
[data-soon]:focus-visible::before {
  opacity: 1;
  translate: 0 -50%;
}


[data-soon].is-poked {
  animation: poke 0.4s ease;
}

@keyframes poke {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

