/* ---------- Токены ---------- */
:root {
  color-scheme: dark;

  --bg: #080d16;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-bg-hover: rgba(255, 255, 255, 0.11);
  --input-bg: rgba(8, 13, 22, 0.6);
  --track: rgba(255, 255, 255, 0.08);
  --on-accent: #fff;

  --text: #eaf0fb;
  --text-muted: #8fa0bd;
  --text-faint: #62728f;

  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-glow: rgba(79, 140, 255, 0.5);
  --notice-bg: #14233d;
  --notice-border: rgba(79, 140, 255, 0.45);
  --success: #35d19b;
  --danger: #ff5f6d;

  --radius-sm: 10px;
  --radius: 16px;

  --gap: clamp(14px, 2vw, 22px);
  --pad: clamp(18px, 2.4vw, 30px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
}

/* Светлая тема */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f6fa;
  --surface: rgba(9, 16, 30, 0.035);
  --border: rgba(9, 16, 30, 0.11);
  --border-strong: rgba(9, 16, 30, 0.2);

  --btn-bg: rgba(9, 16, 30, 0.04);
  --btn-bg-hover: rgba(9, 16, 30, 0.09);
  --input-bg: #fff;
  --track: rgba(9, 16, 30, 0.09);

  --text: #101a2b;
  --text-muted: #4f5f78;
  --text-faint: #7a89a2;

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.4);
  --notice-bg: #e6eeff;
  --notice-border: rgba(37, 99, 235, 0.35);
  --success: #0e8f5c;
  --danger: #d92d3f;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

/* иначе display у классов перебивает [hidden] */
[hidden] {
  display: none !important;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- Каркас ---------- */
/* отступы под вырез и домашнюю полоску: в браузере они нулевые,
   а в установленном веб-приложении своей строки сверху нет */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
}

/* цвет текста, а не акцента: иначе в светлой теме белый на белом */
.brand__mark2 {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 0 var(--pad) var(--pad);
}

.install {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.install__text {
  flex: 1;
  margin: 0;
}

.install__key {
  color: var(--text);
  white-space: nowrap;
}

.install__close {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.install__close:hover {
  background: var(--btn-bg-hover);
  color: var(--text);
}

/* показываем иконку темы, на которую переключимся */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  display: block;
}

.theme-toggle[data-theme="dark"] .theme-toggle__moon,
.theme-toggle[data-theme="light"] .theme-toggle__sun {
  display: none;
}

/* ---------- Обратный отсчёт ---------- */
.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.countdown__value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.countdown--expired .countdown__value {
  color: var(--danger);
}

/* ---------- Карточки действий ---------- */
/* Цветная полоса слева, а не заливка: роли различаются с одного взгляда,
   но фон не спорит за внимание с синей кнопкой «Получить файлы» внутри */
.card {
  display: grid;
  gap: 14px;
  padding: var(--pad);
  border: 1px solid var(--border);
  /* полоса - именно левая граница, а не псевдоэлемент: границу обводит то же
     скругление, что и всю рамку, и угол полосы не может разъехаться с углом карточки */
  border-left: 4px solid var(--card-stripe);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Преемственность: карточка «Отправить файлы» разворачивается в панель отправки,
   и полоса переезжает на неё - иначе цвет роли пропадал бы на полпути */
.send .panel {
  --card-stripe: var(--success);
  border-left: 4px solid var(--card-stripe);
}

.card--receive {
  --card-stripe: var(--accent);
}

.card--send {
  --card-stripe: var(--success);
}

/* Заголовки блоков набраны мелко и прописными: крупный кегль спорил бы
   с именем и кнопками, а так заголовок читается как ярлык блока */
.card__title,
.panel__title,
.share-list__title,
.receive__label,
.view__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Имя: шапка страницы ---------- */
.receive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 18px);
  text-align: center;
  padding: clamp(16px, 4vh, 40px) 0 0;
}

/* --code-len и max-width блока проставляет index.js */
.code {
  --code-len: 6;
  --code-min: 30px;
  --code-gap: clamp(5px, 1vw, 14px);
  --code-cell: clamp(
    var(--code-min),
    calc((100% - (var(--code-len) - 1) * var(--code-gap)) / var(--code-len)),
    96px
  );
  --code-font: clamp(18px, 5vw, 60px);

  display: flex;
  flex-wrap: wrap;
  gap: var(--code-gap);
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}

.code__cell {
  display: grid;
  place-items: center;
  width: var(--code-cell);
  aspect-ratio: 3 / 4;
  border-radius: clamp(10px, 1.6vw, 18px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: var(--code-font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.code--stale .code__cell {
  color: var(--text-faint);
  border-color: var(--border);
}

.code__placeholder {
  font-family: var(--font-mono);
  font-size: clamp(26px, 6vw, 60px);
  color: var(--text-faint);
}

.receive__caption {
  margin: 0;
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Режим отправки ---------- */
.send {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-content: start;
}

@media (min-width: 900px) {
  .send {
    grid-template-columns: minmax(300px, 1fr) 2fr;
    align-items: start;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--pad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* срок жизни под кнопкой закрытия: обе строки про одно - когда отправка исчезнет.
   Прижаты вправо, чтобы не тянуть на себя внимание: закрытие - действие редкое */
.panel__close {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  /* отодвинуто от «Поделиться»: рядом с отправкой закрытие читалось бы
     как соседняя по смыслу кнопка, а это противоположные действия */
  margin-top: clamp(12px, 2.5vh, 26px);
}

.panel__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.panel__divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---------- Зона загрузки ---------- */
.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(20px, 4vw, 32px) 16px;
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.dropzone:hover {
  border-color: var(--accent);
  color: var(--text);
}

.dropzone--active {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  color: var(--text);
}

.dropzone--busy {
  pointer-events: none;
  opacity: 0.7;
}

.dropzone__icon {
  font-size: 26px;
  line-height: 1;
}

.dropzone__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.dropzone__hint {
  font-size: 12px;
  color: var(--text-faint);
}

/* не display:none - иначе поле недоступно с клавиатуры */
.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* поле стоит в разметке перед зоной */
.dropzone__input:focus-visible + .dropzone {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--track);
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.btn:hover:not(:disabled) {
  background: var(--btn-bg-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover:not(:disabled) {
  background: #3d7df5;
}

.btn--danger {
  border-color: rgba(255, 95, 109, 0.35);
  color: var(--danger);
  background: rgba(255, 95, 109, 0.08);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(255, 95, 109, 0.16);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

/* ---------- Ввод кода получателя ---------- */
.pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pair__input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  /* толще и заметнее соседей: это главное поле панели, без него отправки нет */
  border: 2px solid var(--notice-border);
  background: var(--input-bg);
  font-family: var(--font-mono);
  font-size: clamp(19px, 4.2vw, 24px);
  font-weight: 700;
  /* интервал скромный: имя бывает и словом, а разрядка под шесть цифр
     растаскивала его по слогам. text-indent гасит хвостовой интервал при центровке */
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-align: center;
}

/* завершающее действие отправки - по весу вровень с «Получить файлы» у адресата,
   а не мельче всех кнопок панели */
.pair__submit {
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
}

.pair__input::placeholder {
  color: var(--text-faint);
  font-weight: 500;
}

.pair__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.result {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.result--ok {
  color: var(--success);
}

.result--error {
  color: var(--danger);
}

/* Кнопка не акцентная: синяя спорила бы за внимание с «Получить файлы» выше,
   а выигрывать должно получение - оно срочное */
.create-room {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.create-room__btn {
  width: min(100%, 420px);
  min-height: 46px;
  font-size: 15px;
}

.create-room__error {
  margin: 0;
}

/* ---------- Файлы отправителя ---------- */
.files__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.files__count {
  font-size: 13px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.tile__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--surface);
  overflow: hidden;
}

/* position: absolute, а не 100%: у коробки с aspect-ratio высота для процентов не определена */
.tile__preview img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  display: block;
}

.tile__icon {
  font-size: 32px;
  opacity: 0.55;
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  margin-top: auto;
}

.tile__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.tile__meta {
  font-size: 11.5px;
  color: var(--text-faint);
}

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(30px, 8vh, 70px) 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.empty__icon {
  font-size: 32px;
  opacity: 0.6;
}

.empty__title {
  font-weight: 650;
  color: var(--text);
}

.empty__text {
  margin: 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Страница просмотра ---------- */
.view {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.view__head {
  --card-stripe: var(--accent);
  display: grid;
  gap: 10px;
  padding: 12px var(--pad);
  border: 1px solid var(--border);
  border-left: 4px solid var(--card-stripe);
  border-radius: var(--radius);
  background: var(--surface);
}

.view__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.view__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

/* кнопка архива прижата вправо: основное действие - сами файлы под ней */
.view__all {
  display: flex;
  justify-content: flex-end;
}

.collage {
  columns: 4 210px;
  column-gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.collage > li {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.shot {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.shot__link {
  display: block;
  line-height: 0;
}

.shot__link img {
  width: 100%;
  height: auto;
  display: block;
}

.shot__file {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 30px 12px;
  font-size: 32px;
  opacity: 0.6;
}

.shot__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}

/* ---------- Имя клиента ---------- */

.receive--compact {
  padding: clamp(8px, 2vh, 18px) 0 0;
  gap: clamp(10px, 1.6vh, 18px);
}

.receive--compact .code {
  --code-min: 24px;
  --code-cell: clamp(
    var(--code-min),
    calc((100% - (var(--code-len) - 1) * var(--code-gap)) / var(--code-len)),
    52px
  );
  --code-font: clamp(14px, 3vw, 30px);
}

.receive--compact .code__cell {
  border-radius: clamp(7px, 1vw, 12px);
}

/* ширину задаёт index.js */
.name {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  margin-inline: auto;
}

.name-edit {
  padding: 2px 6px;
  margin-right: -6px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  cursor: pointer;
  transition: color 0.16s ease;
}

.name-edit:hover {
  color: var(--text-muted);
}

/* строка ожидания и кнопка одной высоты, чтобы ничего не прыгало */
.incoming {
  display: grid;
  place-items: center;
  min-height: 58px;
  width: 100%;
}

/* пульсация: на страницу приходят по уведомлению и ищут глазами, что нажать */
.take {
  width: min(100%, 420px);
  min-height: 58px;
  font-size: 17px;
  font-weight: 700;
  animation: take-pulse 2.4s ease-in-out infinite;
}

@keyframes take-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 16px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ожидание и уведомления - одна группа, поэтому свой тесный зазор,
   а не общий большой от .receive */
.inbox {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.notify {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.received {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  margin-inline: auto;
  text-align: left;
}

.deliveries {
  display: grid;
  gap: 8px;
}

.deliveries__hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
}

.share-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.share-list__info {
  min-width: 0;
}

.share-list__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-list__meta {
  font-size: 12px;
  color: var(--text-faint);
}

.share-list__meta--ok {
  color: var(--success);
}

.pair__note {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.pair__note:focus {
  border-color: var(--accent);
  outline: none;
}

.view__alert {
  margin: 0 0 var(--gap);
}

/* липкая и непрозрачная: коллаж бывает длинным, и в прокрутке полоску
   легко пропустить - а пропустить её значит скачивать то, чего уже нет */
.view__changed {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 var(--gap);
  padding: 11px 12px 11px 14px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-sm);
  background: var(--notice-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  animation: notice-in 0.28s ease;
}

.view__changed:focus-within {
  border-color: var(--accent);
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.waiting {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.waiting__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: waiting-blink 1.6s ease-in-out infinite;
}

@keyframes waiting-blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.rename {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: min(100%, 460px);
}

.rename__input {
  flex: 1 1 190px;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  font-family: var(--font-mono);
  font-size: 17px;
  text-align: center;
}

.rename__input,
.pair__input {
  text-transform: uppercase;
}

.rename__input::placeholder {
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 14px;
  text-transform: none;
}

.rename__input:focus {
  border-color: var(--accent);
  outline: none;
}

/* ---------- Описание сервиса ---------- */
.about {
  width: min(900px, 100%);
  margin: clamp(40px, 8vh, 90px) auto 0;
  padding-top: var(--gap);
  border-top: 1px solid var(--border);
}

.about__title {
  margin: 0 0 var(--gap);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 650;
}

.about__steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin: 0 0 var(--gap);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 760px) {
  .about__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about__step {
  display: grid;
  gap: 6px;
  align-content: start;
}

.about__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.about__head {
  font-size: 14.5px;
  font-weight: 650;
}

.about__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq {
  margin-top: clamp(28px, 5vh, 56px);
}

.faq__list {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin: 0;
}

@media (min-width: 760px) {
  .faq__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq__q {
  margin-bottom: 5px;
  font-size: 14.5px;
  font-weight: 650;
}

.faq__a {
  margin: 0;
}

/* ---------- 404 ---------- */
.notfound {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(60px, 16vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}

.footer {
  padding: 0 var(--pad) 14px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Пожертвования ---------- */
.donate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: min(900px, 100%);
  margin: 14px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.donate__text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.donate__link {
  color: var(--text);
}

/* ---------- Страница «Поддержать» ---------- */
.support {
  width: min(620px, 100%);
  margin: clamp(16px, 4vh, 40px) auto 0;
  display: grid;
  gap: var(--gap);
}

.support__notes {
  display: grid;
  gap: 10px;
}

.support__cta {
  justify-self: start;
}

.support__fine {
  font-size: 12.5px;
  color: var(--text-faint);
}

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