/* Stophanen VVS — demo site made by Webdrift. Fictional business. */

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-cyrillic.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #eef1ec;
  --sheet: #fbfcf8;
  --ink: #10285c;
  --ink-soft: #40548a;
  --wash: #dfe6f3;
  --rule: #aab7d3;
  --rule-soft: #d3dbe9;
  --edge: #7384ad;
  --alarm: #c4320f;
  --alarm-deep: #9f2609;
  --alarm-wash: #fbe6de;
  --display: "Bitter", Georgia, serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --bar: 44px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-variant-numeric: tabular-nums;
  padding-bottom: var(--bar); /* room for the fixed demo strip */
  caret-color: var(--alarm);
  scrollbar-color: var(--rule) var(--paper);
}
::selection { background: var(--ink); color: var(--sheet); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--alarm); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1160px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
section { padding-block: clamp(64px, 9vw, 112px) 0; }
.head { max-width: 62ch; margin-bottom: 32px; }
.head p { margin-top: 12px; color: var(--ink-soft); }
.fine { color: var(--ink-soft); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: var(--sheet);
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #1b3b82; border-color: #1b3b82; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); border-color: var(--ink); }
.btn.alarm { background: var(--alarm); border-color: var(--alarm); color: #fff; }
.btn.alarm:hover { background: var(--alarm-deep); border-color: var(--alarm-deep); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.btn.alarm:focus-visible, .fab:focus-visible { outline-color: var(--ink); }

/* Demo strip */
.demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -12px rgba(16, 40, 92, 0.45);
  background: var(--ink); color: var(--sheet);
  font-size: 14.5px; line-height: 1.3;
}
.demo .shell { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 6px; }
.demo p { flex: 1; }
.demo b { font-weight: 700; }
.demo .short { display: none; }
.demo a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 34px; padding: 4px 14px; border-radius: 4px;
  background: var(--sheet); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.demo a:hover { background: var(--wash); }
.demo a:focus-visible { outline-color: #fff; }
.demo svg { width: 14px; height: 14px; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.top .shell { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.mark { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.mark svg { width: 38px; height: 38px; flex: none; }
.mark strong { font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; }
.mark em { font: 600 0.78rem/1 var(--text); letter-spacing: 0.14em; color: var(--alarm); font-style: normal; margin-left: 6px; }
.top nav { display: flex; gap: 22px; }
.top nav a { padding-block: 10px; font-size: 0.97rem; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.langs { display: flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.langs a { min-width: 40px; padding: 8px 10px; font-size: 0.82rem; font-weight: 600; text-align: center; text-decoration: none; color: var(--ink-soft); }
.langs a[aria-current] { background: var(--ink); color: var(--sheet); }
.langs a:not([aria-current]):hover { background: var(--wash); color: var(--ink); }

/* Hero: squared paper, like the back of a job sheet */
.hero { position: relative; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--rule-soft) 1px, transparent 1px) 0 -1px / 100% 28px,
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px) -1px 0 / 28px 100%;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 78%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 78%);
}
.hero .shell {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
h1 {
  font-weight: 800; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.1rem);
  line-height: 1.02; letter-spacing: -0.03em;
}
h1 span { display: block; color: var(--alarm); }
.lead { max-width: 46ch; margin-top: 24px; font-size: 1.16rem; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.vagt {
  position: relative;
  background: var(--sheet); border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 18px 40px -22px rgba(16, 40, 92, 0.55), 0 2px 4px rgba(16, 40, 92, 0.08);
  transform: rotate(0.8deg);
}
.vagt h2 {
  padding: 16px 22px; border-bottom: 1px solid var(--ink);
  font: 700 1.05rem/1.2 var(--display); letter-spacing: 0;
}
.vagt h2 time { float: right; font: 500 0.92rem/1.4 var(--text); color: var(--ink-soft); }
.vagt li + li { border-top: 1px solid var(--rule); }
.vagt button {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; width: 100%;
  padding: 16px 22px; border: 0; background: none; text-align: left;
  transition: background 0.2s;
}
.vagt button:hover { background: var(--wash); }
.vagt button b { font-weight: 600; }
.vagt button span { grid-column: 1; color: var(--ink-soft); font-size: 0.95rem; }
.vagt button i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; white-space: nowrap; }
.vagt button[data-when="akut"] b { color: var(--alarm); }
.vagt button:focus-visible { outline-offset: -3px; }
.stamp {
  display: inline-block; padding: 5px 12px 4px;
  border: 3px solid var(--alarm); border-radius: 4px;
  color: var(--alarm); font: 800 0.95rem/1.1 var(--display);
  letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
}
.vagt .stamp { position: absolute; right: 18px; bottom: -20px; background: var(--sheet); mix-blend-mode: normal; }

/* Prices */
.rates { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); }
.rates div { flex: 1 1 180px; padding: 16px 20px; border-right: 1px solid var(--rule-soft); }
.rates div:last-child { border-right: 0; }
.rates dt { color: var(--ink-soft); font-size: 0.9rem; }
.rates dd { font: 700 1.35rem/1.3 var(--display); }
.jobs { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.jobs th, .jobs td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.jobs thead th { padding-block: 10px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.jobs tbody th { font: 700 1.15rem/1.3 var(--display); }
.jobs tbody th small { display: block; margin-top: 3px; font: 400 0.95rem/1.45 var(--text); color: var(--ink-soft); max-width: 48ch; }
.jobs .num { white-space: nowrap; }
.jobs .sum { font-weight: 600; font-size: 1.08rem; }
.jobs td:last-child { padding-right: 0; text-align: right; }
.jobs + .fine { margin-top: 16px; max-width: 70ch; }

/* Order */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: clamp(20px, 3.4vw, 40px); }
.minisum { display: none; }
fieldset + fieldset { margin-top: 40px; padding-top: 36px; border-top: 1px dashed var(--rule); }
legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font: 700 1.3rem/1.2 var(--display); }
legend + * { clear: both; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt > span {
  display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; align-items: start;
  height: 100%; min-height: 60px; padding: 14px 16px;
  border: 1px solid var(--edge); border-radius: 3px; background: var(--sheet);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.opt > span::before {
  content: ""; grid-row: 1 / 3; width: 20px; height: 20px; margin-top: 2px;
  border: 2px solid var(--ink-soft); border-radius: 2px; background: #fff;
}
.opt b { font-weight: 600; line-height: 1.3; }
.opt i { grid-column: 2; font-style: normal; font-size: 0.92rem; color: var(--ink-soft); }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { background: var(--wash); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span::before {
  border-color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='%2310285c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.opt input:focus-visible + span { outline: 3px solid var(--alarm); outline-offset: 2px; }
.opt input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.opt.hot input:checked + span { background: var(--alarm-wash); border-color: var(--alarm); box-shadow: inset 0 0 0 1px var(--alarm); }
.opt.hot b { color: var(--alarm); }
.when { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { margin-top: 12px; min-height: 1.5em; color: var(--ink-soft); font-size: 0.95rem; }
#planbox { margin-top: 20px; }
#planbox h3 { margin-bottom: 10px; font: 600 0.95rem/1.3 var(--text); }
#planbox h3 + .chips + h3 { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; min-width: 76px; padding: 6px 14px;
  border: 1px solid var(--edge); border-radius: 3px; background: var(--sheet);
  font-weight: 600; line-height: 1.2; text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.chip[aria-pressed="true"] small { color: #c8d3ec; }
.chip:disabled { cursor: not-allowed; color: var(--ink-soft); background: var(--paper); border-color: var(--rule); text-decoration: line-through; text-decoration-color: var(--rule); }
.chip:disabled small { text-decoration: none; display: block; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.92rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .chat form input {
  width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1px solid var(--ink-soft); border-radius: 3px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .chat form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--alarm) !important; }
.err { margin-top: 6px; color: var(--alarm-deep); font-size: 0.92rem; font-weight: 500; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }

/* The slip: running estimate */
.slip {
  position: sticky; top: 20px;
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 3px;
  box-shadow: 0 18px 40px -24px rgba(16, 40, 92, 0.5);
}
.slip header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ink); }
.slip h3 { font-size: 1.1rem; }
.slip header span { color: var(--ink-soft); font-size: 0.88rem; }
.slip dl { padding: 6px 20px; }
.slip dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.slip dt { color: var(--ink-soft); flex: none; }
.slip dd { text-align: right; font-weight: 500; }
.slip dd small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.slip .blank { color: var(--ink-soft); font-weight: 400; }
.slip .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px 6px; border-top: 2px solid var(--ink); margin-top: 6px; }
.slip .sum span { font-weight: 600; }
.slip .sum b { font: 800 1.9rem/1.1 var(--display); letter-spacing: -0.02em; }
.slip .fine { padding: 0 20px 18px; }

/* Done */
.done { position: relative; }
.done .stamp { margin-bottom: 18px; font-size: 1.5rem; border-width: 4px; padding: 8px 18px 6px; }
.done h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
.done h3:focus { outline: none; }
.done p { margin-top: 12px; max-width: 58ch; }
.done .recap { margin-top: 20px; padding: 14px 18px; border: 1px dashed var(--rule); border-radius: 3px; font-weight: 500; }
.done .nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-16deg) scale(2.1); filter: blur(3px); }
  60% { opacity: 1; filter: blur(0); }
  to { opacity: 1; transform: rotate(-7deg) scale(1); }
}
.done:not([hidden]) .stamp, .note .stamp { animation: stamp 0.5s var(--ease) both; }

/* First aid */
.first { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: n; }
.first li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 0 8px; padding: 26px 32px 26px 0; border-bottom: 1px solid var(--rule); }
.first li:nth-child(odd) { border-right: 1px solid var(--rule); }
.first li:nth-child(even) { padding-left: 32px; }
.first li::before { content: counter(n); grid-row: 1 / 3; font: 800 2.4rem/1 var(--display); color: var(--alarm); }
.first p { margin-top: 6px; color: var(--ink-soft); max-width: 44ch; }

/* Area, hours, pitch */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.hours + p { margin-top: 16px; color: var(--ink-soft); }
.pitch { padding: clamp(24px, 3.4vw, 40px); background: var(--ink); color: var(--sheet); border-radius: 3px; }
.pitch h3 { font-size: 1.55rem; }
.pitch p { margin: 12px 0 24px; color: #d3dcf0; max-width: 46ch; }
.pitch .btn { background: var(--sheet); border-color: var(--sheet); color: var(--ink); }
.pitch .btn:hover { background: var(--wash); border-color: var(--wash); }
.pitch :focus-visible { outline-color: #fff; }

footer { margin-top: clamp(64px, 9vw, 112px); padding-block: 32px 96px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.93rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer p:first-child { max-width: 70ch; }

/* Emergency chat */
.fab {
  position: fixed; right: 20px; bottom: calc(var(--bar) + 20px); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 12px 22px 12px 18px;
  border: 0; border-radius: 4px;
  background: var(--alarm); color: #fff; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(159, 38, 9, 0.7), 0 2px 5px rgba(16, 40, 92, 0.2);
  transition: background 0.2s, transform 0.25s var(--ease);
}
.fab:hover { background: var(--alarm-deep); transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; }
.fab .short { display: none; }
.chat {
  position: fixed; right: 20px; bottom: calc(var(--bar) + 20px); z-index: 41;
  display: flex; flex-direction: column;
  width: min(400px, 100vw - 24px); height: min(640px, 100dvh - var(--bar) - 40px);
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(16, 40, 92, 0.6), 0 4px 10px rgba(16, 40, 92, 0.12);
  overflow: hidden;
  transform-origin: 100% 100%;
  animation: rise 0.32s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.chat > header { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 18px; background: var(--ink); color: var(--sheet); }
.chat h2 { flex: 1; font: 700 1.05rem/1.2 var(--display); letter-spacing: 0; }
.chat h2:focus { outline: none; }
.chat h2 small { display: block; margin-top: 2px; font: 400 0.8rem/1.3 var(--text); color: #c8d3ec; }
.chat header button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 4px; background: none; color: inherit;
  transition: background 0.2s;
}
.chat header button:hover { background: rgba(255, 255, 255, 0.14); }
.chat header button:focus-visible { outline-color: #fff; outline-offset: -3px; }
.chat header svg { width: 20px; height: 20px; }
.log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 3px; font-size: 0.97rem; line-height: 1.45; animation: say 0.3s var(--ease); }
@keyframes say { from { opacity: 0; transform: translateY(6px); } }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule-soft); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--sheet); }
.msg.typing { display: flex; gap: 5px; padding: 15px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.note { margin-top: 8px; padding: 18px; border: 1px solid var(--ink); border-radius: 3px; background: #fff; font-size: 0.95rem; }
.note .stamp { margin-bottom: 12px; }
.note h3 { font-size: 1.2rem; }
.note p { margin-top: 8px; }
.note p.fine { font-size: 0.86rem; }
.note a { display: inline-block; margin-top: 12px; font-weight: 600; }
.replies { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 16px; border-top: 1px solid var(--rule-soft); }
.replies:empty { display: none; }
.replies button {
  min-height: 46px; padding: 9px 14px;
  border: 1px solid var(--ink); border-radius: 3px; background: var(--sheet);
  font-weight: 600; font-size: 0.97rem; text-align: left;
  transition: background 0.2s, color 0.2s;
}
.replies button:hover { background: var(--ink); color: var(--sheet); }
.chat form { display: flex; gap: 8px; padding: 10px 16px 16px; border-top: 1px solid var(--rule-soft); flex-wrap: wrap; }
.chat form input { flex: 1; min-width: 0; }
.chat form .btn { min-height: 50px; padding-inline: 18px; }
.chat form .err { flex-basis: 100%; margin: 0; }

@media (max-width: 1000px) {
  .top nav { display: none; }
  html { scroll-padding-top: 76px; }
  .hero .shell { grid-template-columns: 1fr; }
  .hero::before { -webkit-mask-image: linear-gradient(170deg, transparent 45%, #000 85%); mask-image: linear-gradient(170deg, transparent 45%, #000 85%); }
  .vagt { max-width: 520px; transform: none; }
  .order { grid-template-columns: 1fr; }
  .slip { position: static; }
  .minisum {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    margin: calc(clamp(20px, 3.4vw, 40px) * -1) calc(clamp(20px, 3.4vw, 40px) * -1) 24px;
    padding: 12px clamp(20px, 3.4vw, 40px);
    background: var(--ink); color: var(--sheet);
    font-weight: 500;
  }
  .minisum b { font: 800 1.3rem/1.1 var(--display); }
  .where { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .demo .shell { gap: 10px; }
  .demo .long { display: none; }
  .demo .short { display: inline; }
  .demo a { min-height: 44px; }
  .top .shell { gap: 12px; min-height: 64px; }
  .top .btn { display: none; }
  .mark svg { width: 32px; height: 32px; }
  .mark strong { font-size: 1.25rem; }
  .acts .btn { width: 100%; }
  .vagt button { padding-inline: 16px; }
  .vagt h2 { padding-inline: 16px; }
  .jobs thead { display: none; }
  .jobs, .jobs tbody, .jobs tr, .jobs th, .jobs td { display: block; }
  .jobs tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .jobs th, .jobs td { padding: 0; border: 0; }
  .jobs tbody th { grid-column: 1 / -1; }
  .jobs .len { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.95rem; }
  .when { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .send .btn { width: 100%; }
  .first { grid-template-columns: 1fr; }
  .first li, .first li:nth-child(even) { padding: 22px 0; border-right: 0; grid-template-columns: 44px 1fr; }
  .fab { right: 12px; bottom: calc(var(--bar) + 12px); min-height: 52px; padding: 10px 18px 10px 14px; }
  .fab .long { display: none; }
  .fab .short { display: inline; }
  .chat { right: 0; bottom: var(--bar); width: 100vw; height: calc(100dvh - var(--bar)); border-radius: 0; border-width: 1px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
