/* Эффекты из Meowdes Refs (meowdes.tech), скопированы без изменений. Под сайт настраиваются переменными в site.css. */

/* ===== meowdes.tech/header-hide-scroll ===== */
/* Шапка, которая уезжает вверх, когда страницу крутят вниз, и возвращается при прокрутке вверх.
   Прячет её скрипт классом is-hidden. */
.header-hide {
  --header-hide-duration: 0.5s;
  --header-hide-ease: ease-in-out;
  --header-hide-z: 50;
  --header-hide-pad: 16px;
  --header-hide-bg: #fff;
  --header-hide-color: #000;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--header-hide-z);
  padding: var(--header-hide-pad);
  pointer-events: none;
  transition: transform var(--header-hide-duration) var(--header-hide-ease);
}
.header-hide.is-hidden { transform: translateY(-100%); }

/* Пока шапка спрятана, фокус с клавиатуры возвращает её */
.header-hide:focus-within { transform: none; }

.header-hide__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  background: var(--header-hide-bg);
  color: var(--header-hide-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  pointer-events: auto;
}

.header-hide__logo { width: 28px; height: 28px; border-radius: 50%; background: #FF1447; }

.header-hide__nav { display: flex; gap: 28px; }
.header-hide__nav a { color: inherit; font-weight: 600; text-decoration: none; }

.header-hide__button {
  justify-self: end;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--header-hide-color);
  color: var(--header-hide-bg);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-hide__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .header-hide { transition: none; }
}

/* ===== meowdes.tech/skew-line-reveal ===== */
/* Заголовок по строкам: каждая строка выезжает из-под маски снизу,
   а весь блок в это же время выпрямляется из косого 3D-положения. Разметку строк собирает скрипт. */
.skew-line-reveal {
  --skew-line-reveal-duration: 0.8s;
  --skew-line-reveal-stagger: 0.1s;
  --skew-line-reveal-delay: 0s;
  --skew-line-reveal-ease: cubic-bezier(0.2, 0.715, 0.205, 0.99);
  --skew-line-reveal-from: skewX(20deg) rotateX(40deg) rotateY(20deg);
}

/* Блок, который выпрямляется */
.skew-line-reveal__body {
  display: inline-block;
  transform: var(--skew-line-reveal-from);
}

/* Строка — маска. Небольшой запас снизу, чтобы не резались хвосты букв (g, y, р) */
.skew-line-reveal__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
}
.skew-line-reveal__line + .skew-line-reveal__line { margin-top: -0.07em; }
.skew-line-reveal__line:last-child { margin-bottom: -0.07em; }

.skew-line-reveal__text {
  display: inline-block;
  transform: translateY(105%);
}

/* Ключевые кадры, а не transition: переход из стартового состояния браузер может пропустить,
   если оно ещё не отрисовано */
.skew-line-reveal.is-in .skew-line-reveal__body {
  animation: skew-line-reveal-straighten var(--skew-line-reveal-duration) var(--skew-line-reveal-ease)
    var(--skew-line-reveal-delay) both;
}
.skew-line-reveal.is-in .skew-line-reveal__text {
  animation: skew-line-reveal-rise var(--skew-line-reveal-duration) var(--skew-line-reveal-ease)
    calc(var(--skew-line-reveal-delay) + var(--skew-line-reveal-i, 0) * var(--skew-line-reveal-stagger)) both;
}

/* После пересборки строк (ресайз) — сразу финальное состояние, без повтора */
.skew-line-reveal.is-done .skew-line-reveal__body,
.skew-line-reveal.is-done .skew-line-reveal__text {
  animation: none;
  transform: none;
}

@keyframes skew-line-reveal-straighten {
  from { transform: var(--skew-line-reveal-from); }
  to { transform: none; }
}

@keyframes skew-line-reveal-rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .skew-line-reveal .skew-line-reveal__body,
  .skew-line-reveal .skew-line-reveal__text {
    animation: none;
    transform: none;
  }
}

/* ===== meowdes.tech/corner-clip-reveal ===== */
/* Раскрытие из угла: clip-path маски растёт из точки в углу до полного прямоугольника,
   картинка внутри уменьшается с 1.2 до 1. Старт — класс is-in от script.js (IntersectionObserver).
   Скрытое стартовое состояние включается классом is-armed, его тоже ставит скрипт: без JS карточка просто видна.
   clip-path — на внутренней маске, а не на самой карточке: полностью обрезанный элемент
   IntersectionObserver считает невидимым, и старт бы не случился. */
.corner-clip-reveal {
  --corner-clip-reveal-radius: 24px;
  --corner-clip-reveal-ratio: 3 / 2;
  --corner-clip-reveal-duration: 1.2s;
  --corner-clip-reveal-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --corner-clip-reveal-zoom: 1.2;
  --corner-clip-reveal-media-duration: 1.6s;
  --corner-clip-reveal-media-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --corner-clip-reveal-delay: 0s;
  /* Стартовая форма: точка в правом верхнем углу (inset: сверху, справа, снизу, слева) */
  --corner-clip-reveal-from: inset(0 0 100% 100% round var(--corner-clip-reveal-radius));

  position: relative;
  aspect-ratio: var(--corner-clip-reveal-ratio);
}
.corner-clip-reveal[data-corner="top-left"] { --corner-clip-reveal-from: inset(0 100% 100% 0 round var(--corner-clip-reveal-radius)); }
.corner-clip-reveal[data-corner="bottom-right"] { --corner-clip-reveal-from: inset(100% 0 0 100% round var(--corner-clip-reveal-radius)); }
.corner-clip-reveal[data-corner="bottom-left"] { --corner-clip-reveal-from: inset(100% 100% 0 0 round var(--corner-clip-reveal-radius)); }

.corner-clip-reveal__mask {
  position: absolute;
  inset: 0;
  border-radius: var(--corner-clip-reveal-radius);
  overflow: hidden;
}

/* Картинка на всю карточку. Заглушка в клетку — <img> с этим классом её перекроет */
.corner-clip-reveal__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px) -1px -1px / 40px 40px,
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px) -1px -1px / 40px 40px,
    #fff;
}

/* Ждёт появления в экране */
.corner-clip-reveal.is-armed .corner-clip-reveal__mask {
  clip-path: var(--corner-clip-reveal-from);
}

/* Ключевые кадры, а не transition: переход из стартового состояния браузер может пропустить */
.corner-clip-reveal.is-armed.is-in .corner-clip-reveal__mask {
  animation: corner-clip-reveal-open var(--corner-clip-reveal-duration) var(--corner-clip-reveal-ease) var(--corner-clip-reveal-delay) both;
}
.corner-clip-reveal.is-armed.is-in .corner-clip-reveal__media {
  animation: corner-clip-reveal-settle var(--corner-clip-reveal-media-duration) var(--corner-clip-reveal-media-ease) var(--corner-clip-reveal-delay) both;
}

@keyframes corner-clip-reveal-open {
  from { clip-path: var(--corner-clip-reveal-from); }
  to { clip-path: inset(0 0 0 0 round var(--corner-clip-reveal-radius)); }
}
@keyframes corner-clip-reveal-settle {
  from { transform: scale(var(--corner-clip-reveal-zoom)); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .corner-clip-reveal.is-armed .corner-clip-reveal__mask { clip-path: none; animation: none; }
  .corner-clip-reveal.is-armed.is-in .corner-clip-reveal__media { animation: none; }
}

/* ===== meowdes.tech/dot-fill-button ===== */
/* Кнопка с точкой, которая разливается в заливку.
   Точка — это верхний слой кнопки (копия в цветах наведения), обрезанный clip-path до маленького круга.
   При наведении круг раздувается на всю кнопку, а подпись съезжает к центру, освобождая место точки. */
.dot-fill-button {
  --dot-fill-button-bg: #000;
  --dot-fill-button-color: #fff;
  --dot-fill-button-hover-bg: #FF1447;
  --dot-fill-button-hover-color: #fff;
  --dot-fill-button-radius: 0.75rem;
  --dot-fill-button-dot: 0.42em;           /* диаметр точки */
  --dot-fill-button-pad-left: 0.9em;       /* отступ слева до точки */
  --dot-fill-button-pad-right: 1.1em;
  --dot-fill-button-pad-y: 0.95em;
  --dot-fill-button-gap: 0.5em;            /* между точкой и текстом */
  --dot-fill-button-duration: 0.55s;
  --dot-fill-button-ease: cubic-bezier(0.625, 0.05, 0, 1);

  /* центр точки и сдвиг текста к центру кнопки при наведении */
  --dot-fill-button-cx: calc(var(--dot-fill-button-pad-left) + var(--dot-fill-button-dot) / 2);
  --dot-fill-button-offset: calc((var(--dot-fill-button-pad-right) - (var(--dot-fill-button-pad-left) + var(--dot-fill-button-gap) + var(--dot-fill-button-dot))) / 2);

  position: relative;
  display: inline-grid;
  border-radius: var(--dot-fill-button-radius);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.dot-fill-button__hover,
.dot-fill-button__default {
  grid-area: 1 / 1;
  display: grid;
  border-radius: inherit;
}

.dot-fill-button__default {
  color: var(--dot-fill-button-color);
  background: var(--dot-fill-button-bg);
}

.dot-fill-button__hover {
  z-index: 1;
  color: var(--dot-fill-button-hover-color);
  background: var(--dot-fill-button-hover-bg);
  clip-path: circle(calc(var(--dot-fill-button-dot) / 2) at var(--dot-fill-button-cx) 50%);
  transition: clip-path var(--dot-fill-button-duration) var(--dot-fill-button-ease);
  will-change: clip-path;
}

.dot-fill-button__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* слева место под точку, поэтому текст в покое смещён вправо */
  padding: var(--dot-fill-button-pad-y) var(--dot-fill-button-pad-right) var(--dot-fill-button-pad-y)
    calc(var(--dot-fill-button-pad-left) + var(--dot-fill-button-gap) + var(--dot-fill-button-dot));
}

.dot-fill-button__text {
  transition: translate var(--dot-fill-button-duration) var(--dot-fill-button-ease);
}

.dot-fill-button:is(:hover, :focus-visible) .dot-fill-button__hover {
  clip-path: circle(150% at var(--dot-fill-button-cx) 50%);
  transition-delay: 50ms;
}
.dot-fill-button:is(:hover, :focus-visible) .dot-fill-button__text {
  translate: var(--dot-fill-button-offset) 0;
  transition-delay: 50ms;
}

.dot-fill-button:focus-visible { outline: 2px solid var(--dot-fill-button-hover-bg); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .dot-fill-button__hover,
  .dot-fill-button__text { transition-duration: 0.15s; }
}

/* ===== meowdes.tech/before-after-slider ===== */
/* Положение ручки — число 0…100 в --before-after-p. Регистрируем его, чтобы оно плавно
   переходило (transition): клик в любое место — ручка доезжает, при перетаскивании — идёт за пальцем. */
@property --before-after-p {
  syntax: "<number>";
  inherits: true;
  initial-value: 50;
}

.before-after {
  --before-after-ratio: 3 / 2;
  --before-after-radius: 20px;
  --before-after-line: #FF1447;
  --before-after-line-width: 2px;
  --before-after-knob-size: 52px;
  --before-after-knob-bg: #FF1447;
  --before-after-knob-color: #fff;
  --before-after-label-bg: rgba(0, 0, 0, 0.72);
  --before-after-label-color: #fff;
  --before-after-duration: 0.6s;
  --before-after-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --before-after-p: 50;

  position: relative;
  overflow: hidden;
  container-type: inline-size; /* 100cqw — ширина блока: по ней кнопка не выходит за края */
  aspect-ratio: var(--before-after-ratio);
  border-radius: var(--before-after-radius);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* вертикальный скролл пальцем остаётся странице */
  -webkit-tap-highlight-color: transparent;
  transition: --before-after-p var(--before-after-duration) var(--before-after-ease);
}
.before-after.is-dragging {
  transition: none;
}

.before-after__layer {
  position: absolute;
  inset: 0;
}
/* Верхний слой «до» виден слева от ручки */
.before-after__layer--before {
  clip-path: inset(0 calc(100% - var(--before-after-p) * 1%) 0 0);
}

.before-after__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Заглушки: «до» светлая, «после» тёмная — перекроются картинками */
.before-after__layer--before .before-after__media {
  background:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px) -1px -1px / 40px 40px,
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px) -1px -1px / 40px 40px,
    #fff;
}
.before-after__layer--after .before-after__media {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) -1px -1px / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) -1px -1px / 40px 40px,
    #1C1C1C;
}

.before-after__label {
  position: absolute;
  top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--before-after-label-bg);
  color: var(--before-after-label-color);
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
}
.before-after__layer--before .before-after__label { left: 16px; }
.before-after__layer--after .before-after__label { right: 16px; }

/* Ручка — вертикальная линия во всю высоту с круглой кнопкой посередине */
.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--before-after-p) * 1%);
  width: 0;
  outline: none;
}
.before-after__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--before-after-line-width) / -2);
  width: var(--before-after-line-width);
  background: var(--before-after-line);
}
.before-after__knob {
  --before-after-knob-edge: calc(var(--before-after-knob-size) / 2 + 10px);
  position: absolute;
  top: 50%;
  /* Линия доходит до края, а кнопка останавливается в 10px от него */
  left: calc(clamp(var(--before-after-knob-edge), var(--before-after-p) * 1cqw, 100cqw - var(--before-after-knob-edge)) - var(--before-after-p) * 1cqw);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: var(--before-after-knob-size);
  height: var(--before-after-knob-size);
  border-radius: 50%;
  background: var(--before-after-knob-bg);
  color: var(--before-after-knob-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.before-after__knob svg {
  width: 45%;
  height: 45%;
}
.before-after:hover .before-after__knob { scale: 1.08; }
.before-after.is-dragging .before-after__knob { scale: 0.92; }
.before-after__handle:focus-visible .before-after__knob {
  outline: 2px solid var(--before-after-knob-color);
  outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
  .before-after,
  .before-after__knob { transition: none; }
}

/* ===== meowdes.tech/blur-focus-faq ===== */
/* Две колонки: список вопросов и окно ответа. Размытие вопроса — filter: blur() по --d (расстояние
   от активного в строках, от скрипта). Список сдвигается так, чтобы активный вопрос стоял на уровне окна. */
.blur-focus-faq {
  --blur-focus-faq-blur: 2px;
  --blur-focus-faq-dim: 0.25;
  --blur-focus-faq-text: #000;
  --blur-focus-faq-line: rgba(0, 0, 0, 0.14);
  --blur-focus-faq-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: start;
  gap: 32px;
  color: var(--blur-focus-faq-text);
}
.blur-focus-faq__list { display: grid; }
.blur-focus-faq__q {
  --d: 0;
  margin: 0;
  padding: 8px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  opacity: max(var(--blur-focus-faq-dim), calc(1 - var(--d) * 0.3));
  filter: blur(calc(min(var(--d), 3) * var(--blur-focus-faq-blur)));
  transition: filter 0.4s, opacity 0.4s;
}
.blur-focus-faq__q:hover { filter: none; opacity: 1; }
.blur-focus-faq__q[aria-selected="true"] { font-weight: 600; }
.blur-focus-faq__q:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.blur-focus-faq__a { display: none; }

/* Окно ответа в «терминальном» стиле: строки IN и OUT */
.blur-focus-faq__panel {
  border: 1px solid var(--blur-focus-faq-line);
  font-size: 14px;
  line-height: 1.55;
}
.blur-focus-faq__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 16px;
}
.blur-focus-faq__row + .blur-focus-faq__row { border-top: 1px solid var(--blur-focus-faq-line); }
.blur-focus-faq__tag { font-family: var(--blur-focus-faq-mono); font-size: 12px; opacity: 0.5; }
.blur-focus-faq__in { font-family: var(--blur-focus-faq-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.blur-focus-faq__out > * { margin: 0 0 0.6em; }
.blur-focus-faq__out.is-in { animation: blur-focus-faq-in 0.45s ease-out both; }
@keyframes blur-focus-faq-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(4px); }
}

@media (max-width: 700px) {
  .blur-focus-faq { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .blur-focus-faq__q { transition: none; }
  .blur-focus-faq__out.is-in { animation: none; }
}

/* ===== meowdes.tech/footer-reveal ===== */
/* Футер выезжает из-под страницы. Футер стоит в потоке последним и обрезан по своему верхнему краю (clip-path),
   а содержимое (__inner) стартует выше — спрятанным под этим краем — и по мере въезда футера догоняет его:
   отстаёт от страницы на --footer-reveal-lag, пока верх футера идёт от низа окна до конца страницы.
   Одновременно гаснет затемнение (::after). Прогресс — scroll-driven animation по view-timeline футера,
   в браузерах без неё (Firefox) его считает script.js в --footer-reveal-p.
   Скругление: футер заходит под секцию над ним на --footer-reveal-radius и виден там только в двух нижних углах,
   поэтому секция выглядит листом со скруглённым низом. */

/* Радиус объявлен длиной, чтобы `0` без единиц не ломал calc() в clip-path */
@property --footer-reveal-radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 32px;
}

.footer-reveal {
  --footer-reveal-lag: 0.25;          /* отставание, доля высоты: 1 — футер стоит на месте (шторка), 0 — едет со страницей */
  --footer-reveal-shade: 0.5;         /* затемнение в начале въезда, 0 — без него */
  --footer-reveal-shade-color: #000;
  --footer-reveal-radius: 32px;       /* скругление нижних углов секции над футером, 0 — прямой край */
  --footer-reveal-bg: #141414;
  --footer-reveal-color: #FFF;

  position: relative;
  display: block;
  margin-top: calc(-1 * var(--footer-reveal-radius));
  padding-top: var(--footer-reveal-radius);
  background: var(--footer-reveal-bg);
  color: var(--footer-reveal-color);
  view-timeline: --footer-reveal block;
  /* Верхняя полоса высотой в радиус лежит на секции над футером: из неё видны только углы вне скругления */
  clip-path: polygon(
    0 0,
    calc(var(--footer-reveal-radius) * 0.0152) calc(var(--footer-reveal-radius) * 0.1736),
    calc(var(--footer-reveal-radius) * 0.0603) calc(var(--footer-reveal-radius) * 0.342),
    calc(var(--footer-reveal-radius) * 0.134) calc(var(--footer-reveal-radius) * 0.5),
    calc(var(--footer-reveal-radius) * 0.234) calc(var(--footer-reveal-radius) * 0.6428),
    calc(var(--footer-reveal-radius) * 0.3572) calc(var(--footer-reveal-radius) * 0.766),
    calc(var(--footer-reveal-radius) * 0.5) calc(var(--footer-reveal-radius) * 0.866),
    calc(var(--footer-reveal-radius) * 0.658) calc(var(--footer-reveal-radius) * 0.9397),
    calc(var(--footer-reveal-radius) * 0.8264) calc(var(--footer-reveal-radius) * 0.9848),
    var(--footer-reveal-radius) var(--footer-reveal-radius),
    calc(100% - var(--footer-reveal-radius)) var(--footer-reveal-radius),
    calc(100% - var(--footer-reveal-radius) * 0.8264) calc(var(--footer-reveal-radius) * 0.9848),
    calc(100% - var(--footer-reveal-radius) * 0.658) calc(var(--footer-reveal-radius) * 0.9397),
    calc(100% - var(--footer-reveal-radius) * 0.5) calc(var(--footer-reveal-radius) * 0.866),
    calc(100% - var(--footer-reveal-radius) * 0.3572) calc(var(--footer-reveal-radius) * 0.766),
    calc(100% - var(--footer-reveal-radius) * 0.234) calc(var(--footer-reveal-radius) * 0.6428),
    calc(100% - var(--footer-reveal-radius) * 0.134) calc(var(--footer-reveal-radius) * 0.5),
    calc(100% - var(--footer-reveal-radius) * 0.0603) calc(var(--footer-reveal-radius) * 0.342),
    calc(100% - var(--footer-reveal-radius) * 0.0152) calc(var(--footer-reveal-radius) * 0.1736),
    100% 0,
    100% 100%,
    0 100%
  );
}

/* Содержимое футера. Сдвиг вверх — на долю высоты всего футера (вместе с полосой под углами),
   поэтому при --footer-reveal-lag: 1 оно стоит в окне неподвижно */
.footer-reveal__inner {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 5vw 40px;
  transform: translateY(calc((1 - var(--footer-reveal-p, 1)) * var(--footer-reveal-lag) * (-100% - var(--footer-reveal-radius))));
}

/* Затемнение поверх футера */
.footer-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--footer-reveal-shade-color);
  opacity: calc((1 - var(--footer-reveal-p, 1)) * var(--footer-reveal-shade));
  pointer-events: none;
}

/* Пример содержимого: крупная надпись и ссылки */
.footer-reveal__title {
  font-size: clamp(56px, 13vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: inherit;
  text-decoration: none;
}
.footer-reveal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.footer-reveal__links a {
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.footer-reveal__links a:hover,
.footer-reveal__links a:focus-visible { text-decoration: underline; }

/* Прогресс — от «верх футера у низа окна» до «футер целиком в окне» (или заполнил окно, если он выше экрана) */
@supports (animation-timeline: view()) {
  .footer-reveal__inner {
    animation: footer-reveal-lift linear both;
    animation-timeline: --footer-reveal;
    animation-range: entry 0% entry 100%;
  }
  .footer-reveal::after {
    animation: footer-reveal-shade linear both;
    animation-timeline: --footer-reveal;
    animation-range: entry 0% entry 100%;
  }
}

@keyframes footer-reveal-lift {
  from { transform: translateY(calc(var(--footer-reveal-lag) * (-100% - var(--footer-reveal-radius)))); }
  to { transform: none; }
}
@keyframes footer-reveal-shade {
  from { opacity: var(--footer-reveal-shade); }
  to { opacity: 0; }
}

/* Без движения: футер едет вместе со страницей, остаётся только затемнение */
@media (prefers-reduced-motion: reduce) {
  .footer-reveal__inner {
    animation: none;
    transform: none;
  }
}
