/* ===== Академия Misty Wood — liquid-glass, в стиле основного сайта ===== */

/* Шрифты — самохостинг, как на сайте */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/static/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/barlow-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/barlow-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/barlow-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/static/fonts/barlow-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/barlow-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/barlow-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ===== База ===== */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; background: #000; }
body { margin: 0; padding: 0; background: transparent;
  font-family: 'Barlow', sans-serif; -webkit-font-smoothing: antialiased;
  color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.6;
  min-height: 100vh; }
h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400;
  letter-spacing: -0.02em; color: #fff; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0.6em 0 0.5em; }
h2 { font-size: 1.4rem; margin: 1.2em 0 0.4em; }
a { color: #fff; }

/* ===== Стекло (glass-card с сайта) ===== */
.card, .tile {
  background: rgba(12,12,12,0.55);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 10px 34px rgba(0,0,0,0.38);
  position: relative; overflow: hidden;
  border-radius: 1.25rem;
}
.card::before, .tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.12) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.12) 80%, rgba(255,255,255,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ===== Шапка ===== */
.top { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; background: rgba(0,0,0,.55); z-index: 10; }
.brand { color: #fff; text-decoration: none; letter-spacing: .14em;
  font-size: .78rem; font-weight: 500; text-transform: uppercase; }
.logout { color: rgba(255,255,255,.55); font-size: .8rem; text-decoration: none; }
.logout-form { display: inline; margin: 0; }
.logout-btn { background: none; border: 0; box-shadow: none; padding: 0;
  color: rgba(255,255,255,.55); font: inherit; font-size: .8rem; cursor: pointer; }
.logout-btn:hover { color: #fff; transform: none; }
.top-links { display: flex; gap: 16px; align-items: center; }
.me-link { color: rgba(255,255,255,.75); font-size: .8rem; text-decoration: none; }
.me-link:hover, .logout:hover { color: #fff; }
.hamburger { display: none; background: none; border: 0; color: #fff;
  font-size: 1.6rem; line-height: 1; padding: 2px 8px; cursor: pointer; box-shadow: none; }
.hamburger:hover { transform: none; opacity: .85; }

main { max-width: 720px; margin: 0 auto; padding: 18px 16px 60px; }

/* ===== Карточки и плитки ===== */
.card { padding: 22px; }
.narrow { max-width: 420px; margin: 8vh auto; }
.tiles { display: grid; gap: 14px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px)); }
.tile { display: block; padding: 18px 16px; text-decoration: none; text-align: center;
  color: rgba(255,255,255,.9); transition: transform .35s ease, box-shadow .35s ease; }
.tile:hover { transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.16), 0 14px 40px rgba(0,0,0,0.5); }
.tile h2 { margin: 0 0 4px; font-size: 1.25rem; }
.tile p { margin: 0; color: rgba(255,255,255,.55); font-size: .8rem; }

/* ===== Списки тем ===== */
.list { list-style: none; padding: 0; margin: 14px 0; }
.list li { border-bottom: 1px solid rgba(255,255,255,.1); }
.list li:last-child { border-bottom: none; }
.list a { display: block; padding: 13px 4px; text-decoration: none;
  color: rgba(255,255,255,.9); transition: color .2s ease, padding-left .25s ease; }
.list a:hover { color: #fff; padding-left: 10px; }

.crumbs { font-size: .8rem; color: rgba(255,255,255,.62); margin-bottom: 8px; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.lead { color: rgba(255,255,255,.7); }

/* ===== Контент темы ===== */
.body { color: rgba(255,255,255,.86); line-height: 1.72; }
.body > :first-child { margin-top: 0; }
.body p { margin: 0 0 1.05em; max-width: 64ch; }
.body strong { color: #fff; font-weight: 600; }
/* Раздел (h2) — крупный, отделён тонкой линией: дробит «полотно» на блоки */
.body h2 { font-size: 1.6rem; margin: 2.1em 0 .55em; padding-bottom: .28em;
  border-bottom: 1px solid rgba(255,255,255,.14); text-wrap: balance; }
.body > h2:first-child { margin-top: .15em; }
/* Подраздел (h3) — ярче и крупнее текста, с воздухом сверху для сканирования */
.body h3 { font-size: 1.22rem; color: #fff; margin: 1.7em 0 .4em;
  letter-spacing: -0.01em; text-wrap: balance; }
.body ul, .body ol { margin: 0 0 1.15em; padding-left: 1.4em; max-width: 64ch; }
.body li { margin: .42em 0; }
.body li::marker { color: rgba(255,255,255,.5); }
/* Абзац-зачин сразу под подразделом не отрывается лишним отступом */
.body h3 + p { margin-top: 0; }
.body blockquote { border-left: 2px solid rgba(255,255,255,.3); margin: 1em 0;
  padding: 2px 0 2px 14px; color: rgba(255,255,255,.7); }
.body code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.body img { max-width: 100%; height: auto; display: block; margin: 10px 0;
  border-radius: 1rem; box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 8px 28px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1); }
main video { width: 100%; border-radius: 1.25rem; margin-bottom: 12px; display: block; }
hr { border: none; border-top: 1px solid rgba(255,255,255,.1); }

/* ===== Формы и кнопки (белая pill — как CTA сайта) ===== */
label { display: block; margin-bottom: 12px; font-size: .9rem; color: rgba(255,255,255,.75); }
input { width: 100%; padding: 13px 16px; margin-top: 6px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 9999px;
  font-size: 1.05rem; font-family: 'Barlow', sans-serif;
  background: rgba(255,255,255,.06); color: #fff; outline: none; }
input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.09); }
input::placeholder { color: rgba(255,255,255,.5); }
input[type="radio"] { width: auto; margin-right: 8px; accent-color: #fff; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #000; border: 0; padding: 12px 22px;
  border-radius: 9999px; font-size: .95rem; font-weight: 600;
  font-family: 'Barlow', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, opacity .25s ease; }
button:hover, .btn:hover { transform: translateY(-1px); opacity: .92; }

fieldset { border: 1px solid rgba(255,255,255,.12); border-radius: 1rem;
  padding: 14px 16px; margin: 0 0 14px; }
legend { padding: 0 8px; color: #fff; font-weight: 500; }
fieldset label { display: block; margin: 4px 0; padding: 10px 12px; border-radius: .7rem;
  color: rgba(255,255,255,.85); cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
fieldset label:hover { background: rgba(255,255,255,.05); }
fieldset label:has(input:checked) { background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; }

.search input { margin: 0 0 16px; }
.hint { font-size: .8rem; color: rgba(255,255,255,.62); }
.error { color: #e3b341; }

/* ===== Тест ===== */
.timer { font-variant-numeric: tabular-nums; font-size: 1.35rem; color: #fff;
  font-weight: 500; }
.timer.low { color: #e3b341; }
.result-pass { color: #b9e8c9; }
.result-fail { color: #e3b341; }

/* ===== Мой прогресс ===== */
.progress a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.status { font-size: .85rem; white-space: nowrap; }
.status-none { color: rgba(255,255,255,.45); }
.status-pass { color: #b9e8c9; }
.status-fail { color: #e3b341; }
.attempts { width: 100%; border-collapse: collapse; font-size: .9rem;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.attempts td { padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.attempts tr:last-child td { border-bottom: none; }
.attempts .when { color: rgba(255,255,255,.62); font-size: .8rem; white-space: nowrap; }
.attempts .pct { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Фирменный фон — MW_Circles из брендбука (007_Wallpaper) ===== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.bg-pattern { position: absolute; inset: 0;
  background: url('/static/bg-circles.jpg') center / cover no-repeat;
  opacity: 0.45; }
@media (max-width: 700px) {
  .bg-pattern { background-image: url('/static/bg-circles-mobile.png'); }
}
.bg-veil { position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%); }
.card h1:first-child, .card .search:first-child { margin-top: 0; }

/* ===== Профиль и админка ===== */
.top-links a { margin-left: 14px; }
.ok { color: #b9e8c9; }
.req { color: #e3b341; }
textarea, select {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: .7rem;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.18); font: inherit; }
select { width: auto; }
textarea { resize: vertical; }

.avatar-row { margin: 10px 0 18px; }
.avatar-lg { width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255,255,255,.2); }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  display: inline-block; vertical-align: middle; }
.avatar-empty { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
/* атрибут hidden должен скрывать даже элементы с заданным display */
[hidden] { display: none !important; }

.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-form input, .row-form select { width: auto; flex: 1 1 160px; margin-top: 0; }
.row-form button { width: auto; }
form.inline { display: inline; margin: 0; }

.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
/* Инвентаризация */
.inv-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.inv-row .r-tare { flex: 1 1 200px; margin-top: 0; }
.inv-row .r-count, .inv-row .r-gross { width: auto; flex: 1 1 110px; margin-top: 0; }
.inv-row .r-net { min-width: 72px; text-align: right; color: #b9e8c9;
  font-variant-numeric: tabular-nums; }
.inv-row .r-del { background: none; border: 0; box-shadow: none; padding: 0 6px;
  color: #e3b341; cursor: pointer; }
.inv-row .r-cat { flex: 1 1 150px; margin-top: 0; }
.inv-subt { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0 4px;
  color: rgba(255,255,255,.8); font-size: .92rem; }
.inv-subt b { color: #fff; font-variant-numeric: tabular-nums; }
.inv-total { font-size: 1.15rem; margin: 12px 0 18px; }
.inv-total b { font-variant-numeric: tabular-nums; }

/* Модальное окно (pop-up) */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); }
.modal { max-width: 380px; width: 100%; text-align: center; padding: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.progress-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 999px;
  overflow: hidden; margin: 6px 0 14px; }
.progress-bar span { display: block; height: 100%; background: #b9e8c9; border-radius: 999px; }
.admin-table { display: block; width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; white-space: nowrap;
  border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.admin-table th { text-align: left; font-weight: 600; color: rgba(255,255,255,.55);
  font-size: .78rem; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: middle; }
.admin-table .when { color: rgba(255,255,255,.62); font-size: .8rem; white-space: nowrap; }
.admin-table .pct { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-pass { color: #b9e8c9; }
.result-fail { color: #e3b341; }
.link-danger { background: none; border: none; color: #e3b341; cursor: pointer;
  padding: 0; font: inherit; box-shadow: none; }

/* ===== Таблицы в контенте (матчасть, меню) ===== */
.body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.body th, .body td { border: 1px solid rgba(255,255,255,.15); padding: 8px 10px;
  text-align: left; vertical-align: top; }
.body thead th { background: rgba(255,255,255,.06); color: #fff; }

/* Плитки сами переносятся (auto-fit): 1 → 2 → 3 в ряд по ширине,
   без растяжения — ширина каждой держится в пределах 190–230px, ряд по центру. */

/* ===== Адаптив под телефон ===== */
@media (max-width: 600px) {
  main { padding: 14px 12px 48px; }
  .card { padding: 16px; }
  h1 { font-size: 1.7rem; }
  .top { padding: 10px 14px; }
  .hamburger { display: block; }
  /* Меню-панель (поиск + ссылки) выпадает из-под шапки */
  .top-right { display: none; position: absolute; top: calc(100% + 6px); left: 8px; right: 8px;
    z-index: 50; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px;
    background: #0e0f0e;
    border: 1px solid rgba(255,255,255,.14); border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(0,0,0,.7); }
  .top-right.open { display: flex; }
  .top-links { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .top-search input { width: 100%; }
  /* Контентные таблицы переносят текст (читаются без бокового скролла);
     горизонтальный скролл — только у широких админ-таблиц */
  .admin-table { display: block; max-width: 100%; overflow-x: auto;
    white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .body th, .body td { padding: 7px 8px; font-size: .88rem; }
}

/* ===== Доступность: видимый фокус ===== */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; border-radius: 6px; }

/* ===== Вторичная кнопка ===== */
.btn.ghost { background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ===== Навигация под темой ===== */
.topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

/* ===== Вход: вспомогательные действия ===== */
.login-aux { display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.backlink { color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; }
.backlink:hover { color: #fff; }
.resend { display: inline; margin: 0; }
.linklike { background: none; border: none; box-shadow: none; padding: 0;
  color: rgba(255,255,255,.75); font: inherit; font-size: .85rem; cursor: pointer; }
.linklike:hover { color: #fff; transform: none; }

/* ===== Подсказка заполнить профиль ===== */
.profile-nudge { display: block; margin-bottom: 14px; padding: 12px 16px;
  border-radius: .9rem; text-decoration: none; color: #fff; font-size: .9rem;
  background: rgba(227,179,65,.14); box-shadow: inset 0 0 0 1px rgba(227,179,65,.4); }
.profile-nudge:hover { background: rgba(227,179,65,.22); }

/* ===== Поиск в шапке ===== */
/* Десктоп-раскладка меню только для широких экранов, иначе перебивает
   мобильное правило .top-right{display:none} и панель «не убирается». */
@media (min-width: 601px) { .top-right { display: flex; align-items: center; gap: 14px; } }
.top-search { margin: 0; }
.top-search input { width: 150px; padding: 7px 14px; margin: 0; font-size: .85rem; }

/* ===== Разбор ответов теста ===== */
.editor textarea { min-height: 440px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88rem; line-height: 1.5; }
.review { text-align: left; margin-top: 16px; }
.review-q { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.review-q:last-child { border-bottom: none; }
.review-title { font-weight: 500; margin: 0 0 8px; }
.rmark { display: inline-block; width: 1.4em; }
.rmark.ok { color: #b9e8c9; }
.rmark.err { color: #e3b341; }
.review-opts { list-style: none; padding: 0; margin: 0; }
.review-opts li { padding: 5px 10px; border-radius: .5rem; font-size: .92rem;
  color: rgba(255,255,255,.7); }
.opt-correct { background: rgba(185,232,201,.14); color: #d6f0de; }
.opt-wrong { background: rgba(227,179,65,.14); color: #f0dca8; }


/* ===== Мягкая защита от копирования (поля ввода — исключение) ===== */
body { -webkit-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: text; -ms-user-select: text; user-select: text; }

/* ===== Активный пункт меню ===== */
.me-link.active { color: #fff; }

/* ===== Кнопка «наверх» ===== */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(14,15,14,.85); color: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 1.2rem; line-height: 1; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: none; opacity: .9; }

/* ===== Иконки (вместо эмодзи — единый монохром, наследует цвет текста) ===== */
.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em;
  margin-right: .55em; opacity: .82; }
.list a .ic { transition: opacity .2s ease; }
.list a:hover .ic { opacity: 1; }
.btn .ic, button .ic { opacity: 1; margin-right: 0; }
.error .ic { opacity: 1; }

/* ===== Основные CTA в формах — во всю ширину (крупная зона нажатия) ===== */
.card.narrow > form > button, #quizform > button { width: 100%; }

/* ===== Доступность: уважать «уменьшить движение» ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .tile:hover, button:hover, .btn:hover, .list a:hover { transform: none; }
}
