/* UV-Fabrica — рабочий инструмент в фирменном стиле uv-land.ru.

   Палитра снята с сайта: синий #198CE6 держит всё, голубой #00AEEF даёт свет,
   бирюза #00A99E отвечает за «готово». Цвет здесь несёт смысл: идёт работа,
   ошибка, деньги. Анимации короткие и служебные — показывают, что происходит,
   а не развлекают: интерфейсом пользуются каждый день. */
@import url('/static/fonts/fonts.css');

:root {
  --brand: #198ce6;
  --brand-dark: #0f6fbf;
  --brand-light: #00aeef;
  --brand-ink: #0a3f6b;
  --teal: #00a99e;
  --ink: #0f2438;
  --muted: #64788c;
  --line: #dbe6f0;
  --bg: #f2f7fc;
  --panel: #fff;
  --work: #b45309;
  --good: #067a5f;
  --bad: #d92020;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 36, 56, .06), 0 8px 24px rgba(15, 36, 56, .06);
  --shadow-lift: 0 2px 6px rgba(15, 36, 56, .08), 0 16px 40px rgba(25, 140, 230, .16);
  --ease: cubic-bezier(.2, .7, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(1200px 500px at 12% -8%, rgba(0, 174, 239, .10), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(25, 140, 230, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  font: 15px/1.55 "Fira Sans", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--brand-dark); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-light); text-decoration: none; }

h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: 18px; margin: 28px 0 10px; font-weight: 600; }
h3 { font-size: 12px; margin: 0 0 10px; text-transform: uppercase;
     letter-spacing: .1em; color: var(--muted); font-weight: 700; }
main { max-width: 1320px; margin: 0 auto; padding: 24px 20px 72px; }
.quiet { color: var(--muted); }
.sub { color: var(--muted); margin: 0 0 16px; }
.empty { color: var(--muted); padding: 16px; background: rgba(255, 255, 255, .6);
         border: 1px dashed var(--line); border-radius: var(--radius); }
.error { color: var(--bad); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── шапка ─────────────────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 26px; padding: 10px 22px;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 52%, var(--brand-light) 100%);
  box-shadow: 0 2px 18px rgba(15, 63, 107, .28);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.brand b {
  font-family: "Bebas Neue", "Fira Sans", sans-serif; font-size: 20px; font-weight: 400;
  letter-spacing: .12em; color: #fff; opacity: .92; padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .35);
}
.top nav { display: flex; gap: 4px; }
.top nav a {
  color: rgba(255, 255, 255, .88); padding: 7px 13px; border-radius: 9px;
  font-weight: 500; transition: background .18s var(--ease), color .18s var(--ease);
}
.top nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.top nav a.on { background: rgba(255, 255, 255, .95); color: var(--brand-dark); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px;
             color: rgba(255, 255, 255, .9); font-size: 13px; }
.top-right a { color: #fff; opacity: .85; }
.top-right a:hover { opacity: 1; color: #fff; }

/* ── вход ──────────────────────────────────────────────────────────────── */
.login {
  max-width: 380px; margin: 11vh auto; background: var(--panel);
  border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lift);
  animation: rise .45s var(--ease) both;
}
.login .logo-big {
  display: block; margin: 0 auto 18px; height: 62px;
  padding: 14px 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  box-sizing: content-box;
}
.login h1 { text-align: center; font-size: 22px; }
.login .sub { text-align: center; }

/* ── формы ─────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
/* flex-direction обязателен: .form выше задаёт колонку, и без явного row
   поля выстраивались вертикально да ещё прижимались к правому краю */
.form.row, .row { display: flex; flex-direction: row; gap: 12px;
                  flex-wrap: wrap; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px;
        color: var(--muted); font-weight: 500; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; padding: 9px 11px;
  border: 1.5px solid var(--line); border-radius: 10px; min-width: 180px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(25, 140, 230, .14);
}
textarea { resize: vertical; }
button {
  font: inherit; font-weight: 600; color: #fff; cursor: pointer; border: 0;
  border-radius: 10px; padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 2px 8px rgba(25, 140, 230, .28);
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(25, 140, 230, .34); }
button:active { transform: translateY(0); }
button:disabled { background: #c9d6e2; box-shadow: none; cursor: not-allowed;
                  transform: none; filter: grayscale(.3); }
.pay { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Платная кнопка отличается на вид: за ней списываются деньги */
.pay button { background: linear-gradient(135deg, #0b7d74, var(--teal));
              box-shadow: 0 2px 10px rgba(0, 169, 158, .3); }
.pay button:hover { box-shadow: 0 6px 20px rgba(0, 169, 158, .38); }
.pay button:disabled { background: #c9d6e2; box-shadow: none; }

.newvideo { display: flex; gap: 10px; margin: 16px 0 24px; flex-wrap: wrap;
            background: var(--panel); padding: 14px; border-radius: var(--radius);
            box-shadow: var(--shadow); }
.newvideo input { flex: 1 1 240px; }

/* ── таблицы ───────────────────────────────────────────────────────────── */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel);
        border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.grid th { text-align: left; font-size: 11px; text-transform: uppercase;
           letter-spacing: .08em; color: var(--muted); font-weight: 700;
           padding: 11px 13px; background: #f7fafd; border-bottom: 1px solid var(--line); }
.grid td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr, .grid tr { transition: background .15s var(--ease); }
.grid td a { font-weight: 600; }
.grid.small th, .grid.small td { padding: 8px 10px; font-size: 13px; }
.grid.rows tr:hover td { background: #f3f9ff; }

/* номер ролика: тонкий, моноширинный — служебный опознавательный знак */
.vnum { font-family: "Bebas Neue", ui-monospace, monospace; letter-spacing: .06em;
        color: var(--muted); font-variant-numeric: tabular-nums; }
h1 .vnum { font-size: .8em; margin-right: 4px; }

/* список сотрудников в панели доступа */
.who-list { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 4px 22px;
            padding-left: 10px; border-left: 2px solid var(--line); }

/* образцы фона: цвет выбирается глазами, а не из выпадающего списка */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 6px; }
.swatch { align-items: center; gap: 4px; cursor: pointer; width: 74px; }
.swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.swatch span, .swatch input[type=color] {
  display: block; width: 100%; height: 38px; border-radius: 10px; padding: 0;
  border: 2px solid var(--line); box-shadow: inset 0 1px 3px rgba(15, 36, 56, .08);
  transition: transform .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease); cursor: pointer; min-width: 0;
}
.swatch:hover span, .swatch:hover input[type=color] { transform: translateY(-2px); }
.swatch input[type=radio]:checked ~ span,
.swatch input[type=radio]:checked ~ input[type=color] {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 140, 230, .2);
}
.swatch i { font-style: normal; font-size: 11px; color: var(--muted); text-align: center;
            display: block; width: 100%; }

/* второстепенная кнопка: действие вспомогательное, кричать ей незачем */
button.ghost { background: #eef4fa; color: var(--brand-dark); box-shadow: none; }
button.ghost:hover { background: #e2edf8; box-shadow: none; }

/* ценник рядом с выбором модели: сумма должна быть видна до траты, а не после */
.price-tag { align-self: flex-end; padding: 8px 12px; border-radius: 10px;
             background: #eaf7f4; color: var(--good); font-size: 13.5px;
             border: 1px solid #bfe8de; white-space: nowrap; }
.price-tag b { font-size: 16px; font-variant-numeric: tabular-nums; }
.price-tag.approx { background: #fff7e2; color: var(--work); border-color: #f2dcae; }
.price-tag.unknown { background: #f1f4f8; color: var(--muted); border-color: var(--line); }

/* Кадр с номером: на номер ссылаются в разговоре и в выборе «из какого кадра» */
.shot { position: relative; }
.shot-num { position: absolute; top: 8px; left: 8px; z-index: 2;
            min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
            display: inline-flex; align-items: center; justify-content: center;
            font-family: "Bebas Neue", sans-serif; font-size: 14px; letter-spacing: .04em;
            color: #fff; background: rgba(15, 63, 107, .78);
            box-shadow: 0 2px 6px rgba(15, 36, 56, .3); }
/* Переделка кадра: окно во всю ширину, слева сам кадр, справа поле пожелания.
   В ячейке галереи форма была шириной в полторы сотни пикселей */
.regen-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px;
              padding: 18px; align-items: start; }
.regen-shot { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.regen-form textarea { width: 100%; font-size: 14px; }
.regen-form input[type=file] { width: 100%; }
.wide { width: 100%; margin-top: 6px; }

@media (max-width: 720px) {
  .regen-body { grid-template-columns: 1fr; }
  .regen-shot { max-width: 220px; margin: 0 auto; }
}

/* ── референсы по ролям ────────────────────────────────────────────────── */
.slot { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
        background: #f7fafd; border: 1px solid var(--line); }
.slot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.slot-head h3 { margin: 0; }
.slot .gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

/* окно выбора из библиотеки: показываем картинки, имя файла ничего не говорит */
.picker { border: 0; border-radius: 16px; padding: 0; width: min(920px, 92vw);
          box-shadow: 0 24px 70px rgba(15, 36, 56, .3); color: var(--ink);
          background: var(--panel); }
.picker::backdrop { background: rgba(10, 40, 70, .45); backdrop-filter: blur(2px); }
.picker-top { display: flex; align-items: center; justify-content: space-between;
              gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line);
              position: sticky; top: 0; background: var(--panel); border-radius: 16px 16px 0 0; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
               gap: 14px; padding: 18px; max-height: 70vh; overflow: auto; }
.picker-card { display: flex; flex-direction: column; gap: 6px; text-align: center;
               font-size: 13px; }
.picker-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
                   border: 1px solid var(--line); background: #fff;
                   transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.picker-card:hover img { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.picker-card button { padding: 7px 10px; font-size: 13px; }
.picker .empty { margin: 18px; }

/* ── экран людей ───────────────────────────────────────────────────────── */
/* Кошелёк фабрики: баланс крупно, раздача лимитов рядом — сравнение должно
   читаться одним взглядом, ради него блок и заведён */
.wallet { min-width: 250px; background: var(--panel); border-radius: var(--radius);
          padding: 14px 16px; box-shadow: var(--shadow); }
.wallet-main { display: flex; align-items: baseline; justify-content: space-between;
               gap: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.wallet-main b { font-size: 24px; font-variant-numeric: tabular-nums;
                 background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
                 -webkit-background-clip: text; background-clip: text; color: transparent; }
.wallet-row { display: flex; justify-content: space-between; gap: 14px;
              font-size: 13px; color: var(--muted); padding-top: 7px; }
.wallet-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet-warn { margin: 9px 0 0; font-size: 12px; line-height: 1.5; color: var(--work);
               background: #fff3d6; border-radius: 9px; padding: 8px 10px; }

/* Формы внутри ячеек: управление должно жить в строке, а не на отдельной странице */
.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline input, .inline select { min-width: 0; padding: 7px 9px; font-size: 13.5px; }
.inline button { padding: 7px 11px; font-size: 13px; }
.people td { vertical-align: middle; }
.bar span.warm { background: linear-gradient(90deg, #f6c445, #e08c1a); }
.bar span.hot { background: linear-gradient(90deg, #ff8a6b, var(--bad)); }

/* Сообщение о том, что получилось или не получилось */
.notice { padding: 11px 15px; border-radius: 12px; margin: 0 0 16px; font-weight: 500;
          animation: rise .35s var(--ease) both; }
.notice.good { background: #d7f5ee; color: var(--good); }
.notice.bad { background: #ffe0e0; color: var(--bad); }

/* ── значки состояния ──────────────────────────────────────────────────── */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px;
        font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
        background: #eaf1f8; color: var(--muted); }
.pill.work { background: #fff3d6; color: var(--work); }
.pill.good { background: #d7f5ee; color: var(--good); }
.pill.bad  { background: #ffe0e0; color: var(--bad); }
/* «идёт» дышит — видно, что машина работает, а не зависла */
.pill.work { animation: breathe 1.8s ease-in-out infinite; }
.stage { font-weight: 600; }
.balance { font-size: 14px; }
.balance b { font-variant-numeric: tabular-nums; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between;
            gap: 20px; margin-bottom: 10px; }

/* полоска готовности на доске */
.bar { height: 7px; border-radius: 999px; background: #e8eef5; overflow: hidden; }
.bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  animation: grow .7s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(.05); transform-origin: left; } to { transform: none; } }

/* ── лента этапов ролика ───────────────────────────────────────────────── */
.rail {
  display: flex; gap: 6px; margin: 0 0 20px; padding: 12px 14px; flex-wrap: wrap;
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
}
.rail a {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.rail a:hover { background: #f0f7ff; color: var(--brand-dark); transform: translateY(-1px); }
.rail a i {
  font-style: normal; font-family: "Bebas Neue", sans-serif; font-size: 13px;
  width: 22px; height: 22px; border-radius: 50%; background: #eaf1f8; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.rail a.done { color: var(--good); }
.rail a.done i { background: #d7f5ee; color: var(--good); }
.rail a.now {
  color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  box-shadow: 0 4px 14px rgba(25, 140, 230, .34);
}
.rail a.now i { background: rgba(255, 255, 255, .28); color: #fff; }
.rail .arrow { align-self: center; color: var(--line); user-select: none; }

/* подсказка «что делать дальше» */
.next-hint {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px;
  border-radius: var(--radius); font-size: 14px;
  background: linear-gradient(120deg, rgba(25, 140, 230, .10), rgba(0, 174, 239, .06));
  border: 1px solid rgba(25, 140, 230, .22); color: var(--brand-ink);
  animation: rise .4s var(--ease) both;
}
.next-hint b { font-weight: 700; }
.next-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
                  box-shadow: 0 0 0 0 rgba(25, 140, 230, .5); animation: ping 2s infinite; }

/* ── карточка ролика ───────────────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 74px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 16px;
         box-shadow: var(--shadow); }
.step {
  background: var(--panel); border-radius: var(--radius); padding: 15px 18px;
  margin-bottom: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
  animation: rise .4s var(--ease) both;
}
.step:hover { box-shadow: var(--shadow-lift); }
/* Раскрытый этап подсвечен полосой слева: сразу видно, где сейчас работа */
.step[open] { box-shadow: var(--shadow-lift); }
.step[open]::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
}
.step > summary { cursor: pointer; font-weight: 600; list-style: none; font-size: 15.5px;
                  display: flex; align-items: center; gap: 11px; user-select: none; }
.step > summary::-webkit-details-marker { display: none; }
.step > summary:hover { color: var(--brand-dark); }
.step[open] > summary { margin-bottom: 15px; }
.step[open] > summary .num-badge {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light)); color: #fff;
}
.step[open] > div, .step[open] > form, .step[open] > table {
  animation: fade .35s var(--ease) both;
}
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: #eaf1f8; color: var(--muted);
  font-family: "Bebas Neue", sans-serif; font-size: 14px; letter-spacing: .04em;
  transition: background .2s var(--ease), color .2s var(--ease);
}

/* ── галереи ───────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gallery figure { margin: 0; animation: rise .4s var(--ease) both; }
.gallery img, .gallery video {
  width: 100%; border-radius: 12px; background: #fff; display: block;
  border: 1px solid var(--line);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.gallery img:hover, .gallery video:hover {
  transform: translateY(-3px) scale(1.012); box-shadow: var(--shadow-lift);
  border-color: rgba(25, 140, 230, .5);
}
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.gallery figcaption a { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 14px; font-size: 13px;
        box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card ul { margin: 6px 0 0; padding-left: 16px; }

.gates { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; }
.gates li { padding: 8px 0; border-top: 1px solid var(--line); }
.rules { line-height: 1.9; }
.journal { white-space: pre-wrap; word-break: break-word; font-size: 12px;
           background: #f6fafd; border-radius: 12px; padding: 13px;
           max-height: 420px; overflow: auto; border: 1px solid var(--line); }

/* ── раскрывающийся промпт ─────────────────────────────────────────────── */
.prompt { border-top: 1px solid var(--line); padding: 11px 0; }
.prompt > summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.prompt > summary:hover { color: var(--brand-dark); }
.prompt[open] > summary { color: var(--brand-dark); font-weight: 600; }
.prompt textarea { width: 100%; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 12px; }

.link-btn { background: none; color: var(--muted); border: 0; padding: 0 0 0 6px;
            font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline;
            box-shadow: none; border-radius: 0; }
.link-btn:hover { color: var(--bad); background: none; transform: none; box-shadow: none; }
input[type=file] { padding: 7px; }

.gallery figure.picked img { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 140, 230, .22); }
.pick { flex-direction: row; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.pick input { min-width: auto; }
.hints { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.75; }
/* Пояснение к выбранному приёму: одна строка вместо перечня на весь экран */
.motion-note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; min-height: 1.2em; }
textarea[readonly] { background: #f6fafd; color: var(--muted); }

/* ── движение ──────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(25, 140, 230, .5); }
  70% { box-shadow: 0 0 0 10px rgba(25, 140, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 140, 230, 0); }
}

/* Уважаем системную настройку: кому движение мешает, тот его не увидит */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .top { gap: 14px; padding: 10px 14px; flex-wrap: wrap; }
  main { padding: 18px 14px 56px; }
}
