/* ==========================================================================
   3D-печать — тема «Медь»
   Скругления 4–6px, мягкие тени, внутренняя тень по краю, плавные анимации.
   Шрифты Onest + JetBrains Mono, локально.
   ========================================================================== */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/onest-latin-wght-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-wght-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;
}

:root {
  --bg: #131416;
  --bg2: #191A1D;
  --card: #191A1D;
  --line: #2A2C31;
  --text: #F2F3F5;
  --muted: #9AA0A9;
  --muted-2: #6E747D;

  --accent: #C9713A;
  --accent2: #E0B79C;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(201, 113, 58, .14);
  --accent-line: rgba(201, 113, 58, .40);
  --accent-glow: rgba(201, 113, 58, .30);

  --ok: #2FD98A;
  --warn: #D29922;
  --err: #F85149;

  --r: 4px;
  --r-lg: 6px;
  --r-xl: 8px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 26px -14px rgba(0, 0, 0, .85);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .5), 0 22px 48px -24px rgba(0, 0, 0, .9);
  --inset-edge: inset 0 1px 0 rgba(255, 255, 255, .045), inset 0 0 0 1px rgba(255, 255, 255, .02), inset 0 -26px 44px -34px #000;
  --inset-sink: inset 0 1px 3px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { background: var(--bg); }
body { background: transparent; }

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(242, 118, 46, .3); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(1.1);
  background: linear-gradient(180deg, rgba(20, 15, 12, .95), rgba(18, 13, 11, .9));
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
header.top::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 17px; }
.brand span { color: var(--accent2); }
.brand small { font-weight: 500; color: var(--muted); letter-spacing: 0; font-size: 12px; }
.topnav { display: flex; gap: 4px; font-size: 14px; color: var(--muted); }
.topnav a {
  color: var(--muted);
  padding: 7px 11px;
  border-radius: var(--r);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { padding: 54px 20px 34px; }
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: #E09A6A;
}
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 5px 11px;
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.pill:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-1px); }

/* ---------- карточки ---------- */
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: none;
  animation: riseIn .34s var(--ease) both;
}
.card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.grid2 > div:last-child { display: flex; flex-direction: column; gap: 16px; }
.grid2 > div:last-child > .card:first-child { flex: 1 1 auto; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- зона загрузки файла ---------- */
.drop {
  border: 1.5px dashed #3A3D44;
  border-radius: var(--r-lg);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .015);
  box-shadow: inset 0 0 40px -18px #000;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.drop:hover, .drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 40px -14px rgba(242, 118, 46, .35);
}
.drop .big { font-size: 15px; font-weight: 600; }
.drop .small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.drop input { display: none; }

.fileinfo { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fileinfo b { color: var(--text); }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.inp, select, textarea {
  width: 100%;
  background: #191A1D;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--r);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  box-shadow: var(--inset-sink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.inp:hover, select:hover, textarea:hover { border-color: #3A3D44; }
.inp:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #191A1D;
  box-shadow: var(--inset-sink), 0 0 0 3px rgba(242, 118, 46, .2);
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }

.check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------- кнопки: глубокий изумруд ---------- */
button, .btn {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  background: #A95722;
  color: #FFFFFF;
  border: 1px solid #B4612B;
  border-radius: var(--r);
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .18);
  transition: background .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
button:hover, .btn:hover {
  background: #AD5B26;
  filter: none;
  transform: translateY(-1px);
}
button:active, .btn:active { transform: scale(.99); box-shadow: var(--inset-sink); }
button:disabled { opacity: .45; cursor: default; transform: none; }
.btn.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
  color: var(--text);
  border: 1px solid var(--line);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .4);
}
.btn.ghost:hover { background: linear-gradient(180deg, rgba(242, 118, 46, .12), rgba(242, 118, 46, .04)); border-color: var(--accent-line); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r); }

.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.contacts .btn {
  display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; white-space: nowrap;
}
.contacts .btn:hover { text-decoration: none; }
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }
.footlinks { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- результат расчёта ---------- */
.result {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  background: linear-gradient(180deg, #202226, #191A1D);
  box-shadow: var(--inset-edge), var(--shadow-1);
  animation: riseIn .3s var(--ease) both;
}
.result .price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 30px rgba(242, 118, 46, .25);
}
.result .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 14px 0 0; font-size: 14px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sect { padding: 34px 20px; }
.sect h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .cards3 { grid-template-columns: 1fr; } }
.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  background: linear-gradient(180deg, #191A1D, #191A1D);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -20px 28px -26px #000;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .05); }
.tile .ico {
  font-size: 15px;
  line-height: 1;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  color: var(--accent2);
  background: linear-gradient(180deg, rgba(242, 118, 46, .18), rgba(242, 118, 46, .05));
  box-shadow: inset 0 0 0 1px rgba(242, 118, 46, .22), inset 0 -10px 16px -12px #000;
}
.tile h3 { font-size: 15px; margin: 10px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 13.5px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
  background: linear-gradient(180deg, transparent, rgba(3, 20, 15, .6));
}
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--err); font-size: 13.5px; }
.okmsg { color: var(--ok); font-size: 13.5px; }

/* ---------- админка ---------- */
.adminbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r);
  box-shadow: none;
  text-shadow: none;
  transform: none;
}
.tabs button:hover { background: rgba(255, 255, 255, .04); color: var(--text); transform: none; }
.tabs button.active {
  background: linear-gradient(180deg, #D98A55, #B4612B);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  background: linear-gradient(180deg, #191A1D, #191A1D);
  box-shadow: var(--shadow-1), var(--inset-edge);
}
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v.plus { color: var(--ok); }
.stat .v.minus { color: var(--err); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(51, 38, 31, .7); vertical-align: top; }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #191A1D;
}
tbody tr { transition: background .16s var(--ease); }
tbody tr:hover { background: rgba(242, 118, 46, .05); }
tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: none;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2, #6E747D);
  flex: 0 0 auto;
}
.badge.new { color: var(--text); }
.badge.new::before { background: var(--accent); }
.badge.quoted::before { background: var(--warn); }
.badge.confirmed::before, .badge.printing::before { background: var(--accent2, #D98A55); }
.badge.ready::before { background: var(--ok); }
.badge.done::before { background: var(--ok); }
.badge.done { color: var(--text); }
.badge.cancelled { color: var(--muted); text-decoration: none; opacity: .6; }

.login { max-width: 360px; margin: 12vh auto; }

/* ---------- палитра цветов ---------- */
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--r);
  border: 2px solid #2A323D;
  background: var(--c);
  cursor: pointer;
  position: relative;
  transition: transform .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25);
}
.swatch:hover { transform: translateY(-2px); border-color: #4A5666; }
.swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 118, 46, .22), inset 0 -6px 10px rgba(0, 0, 0, .25);
}
.swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.swatch[data-color="белый"].active::after,
.swatch[data-color="жёлтый"].active::after,
.swatch[data-color="прозрачный"].active::after { color: #1A0C05; text-shadow: none; }

.dims-warn { margin-top: 8px; font-size: 12.5px; color: var(--warn); }

/* ---------- выравнивание сетки страницы ---------- */
main > section { margin: 0; }
@media (max-width: 720px) {
  header.top .wrap { gap: 10px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .brand small { display: none; }
  .topnav {
    min-width: 0;
    gap: 8px;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 20px 26px; }
  .sect { padding: 26px 20px; }
  .card { padding: 18px; }
}

/* ---------- заглушка в блоке предварительной цены ---------- */
.quote-empty {
  position: relative;
  min-height: 190px;
  border: 1px dashed #3A3D44;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #191A1D, #191A1D);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 60px -24px #000;
}
.quote-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 120px at 50% 50%, rgba(242, 118, 46, .12), transparent 70%);
}
.quote-empty span {
  position: relative;
  transform: rotate(-12deg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 154, 92, .8);
  text-align: center;
  padding: 0 14px;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .quote-empty { min-height: 140px; }
  .quote-empty span { font-size: 16px; }
}

.brand { color: var(--text); text-decoration: none; cursor: pointer; }
.brand:hover { text-decoration: none; opacity: .85; }

/* ---------- прокрутка и отступы у якорей ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; scroll-margin-bottom: 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

main { padding-bottom: 18vh; }
@media (max-width: 640px) { main { padding-bottom: 10vh; } }

/* ---------- полоса ожидания расчёта ---------- */
.progress {
  margin-top: 12px;
  height: 6px;
  border-radius: 3px;
  background: #191A1D;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--inset-sink);
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #B4612B, #D98A55);
  transition: width .35s var(--ease);
  position: relative;
}
.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: progress-sheen 1.4s linear infinite;
}
@keyframes progress-sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.progress-text { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- цена и время рядом ---------- */
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.time-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(242, 118, 46, .3);
  background: linear-gradient(180deg, rgba(242, 118, 46, .14), rgba(242, 118, 46, .04));
  border-radius: var(--r);
  padding: 6px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.time-chip small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 420px) { .time-chip { font-size: 16px; padding: 5px 11px; } }

/* ---------- числовые поля без спиннеров ---------- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- согласие на обработку ПД ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 12px;
  cursor: pointer;
}
.consent input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.consent a { color: var(--accent2); text-decoration: underline; }

/* ---------- анимации ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.sect .card, .hero { animation: riseIn .38s var(--ease) both; }
.cards3 .tile:nth-child(2) { animation-delay: .05s; }
.cards3 .tile:nth-child(3) { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  button:hover, .btn:hover, .tile:hover, .pill:hover { transform: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; line-height: 1.18; }
  .hero p { font-size: 15.5px; }
  .card h2 { font-size: 19px; }
  .grid2 { gap: 14px; }
  .topnav a { padding: 6px 9px; font-size: 12.5px; }
}
/* ---------- системные контролы в тёмной теме ---------- */
:root { color-scheme: dark; }

/* ---------- фокус с клавиатуры ---------- */
.topnav a:focus-visible, button:focus-visible, .btn:focus-visible, .inp:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 118, 46, .35);
}

@media print {
  html { background: #fff !important; }
}

/* ---------- Полоса прокрутки: тонкая, скруглённая, без серой «полосы» ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--accent-line);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  min-height: 44px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }
::-webkit-scrollbar-thumb:active { background-color: var(--accent2); }
::-webkit-scrollbar-corner { background: transparent; }
