@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-024F;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --background: #fff;
  --surface: rgba(255, 255, 255, .9);
  --surface-strong: #fff;
  --ink: #111;
  --muted: #565656;
  --muted-soft: #707070;
  --line: #d2d2d2;
  --line-soft: #e7e7e7;
  --secondary: #ededed;
  --accent: #f97316;
  --green: #38805f;
  --red: #b84a42;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 70px -36px rgba(0, 0, 0, .55);
  --sans: "Montserrat", ui-sans-serif, sans-serif;
  --mono: "Montserrat", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--background);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .68);
  outline-offset: 2px;
}
::selection { background: rgba(0, 0, 0, .17); }
.paper-grain { display: none; }

.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -.075em; line-height: 1; text-decoration: none; }
.wordmark b { color: var(--accent); font-weight: 800; }
.eyebrow, .mono-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.muted, .field-note { color: var(--muted); }
.field-note { font-size: 12px; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 43px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 720; letter-spacing: -.035em; line-height: 1.16; }
h3 { font-size: 14px; font-weight: 720; letter-spacing: -.015em; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(210, 210, 210, .8);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.header-actions, .inline-actions, .form-actions, .filter-row, .page-title, .client-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-link { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.header-link:hover { color: var(--ink); }

.button {
  min-height: 40px;
  padding: 9px 14px;
  color: #fafafa;
  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover:not(:disabled) { background: #2b2b2b; transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button.secondary { color: var(--ink); border-color: var(--line); background: #fff; box-shadow: none; }
.button.secondary:hover:not(:disabled) { color: var(--ink); border-color: #adadad; background: #f7f7f7; }
.button.olive { background: var(--green); border-color: var(--green); }
.button.ghost { min-height: 32px; padding: 6px 8px; color: var(--muted); border-color: transparent; background: transparent; box-shadow: none; font-size: 12px; }
.button.ghost:hover:not(:disabled) { color: var(--ink); background: var(--secondary); transform: none; }
.button.danger { color: var(--red); border-color: #eccbc7; background: #fff; box-shadow: none; }
.button.danger:hover:not(:disabled) { background: #fff6f5; }

label { color: #373737; font-size: 12px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(237, 237, 237, .64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  font-size: 13px;
  outline: none;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
textarea { min-height: 92px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #acacac; }
input:focus, select:focus, textarea:focus { border-color: #222; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .09); }
input::placeholder { color: #949494; }
.fields { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }

/* Public ordering */
.public-main { padding-bottom: 58px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: clamp(28px, 7vw, 88px); align-items: center; min-height: 568px; padding: 42px 0 57px; }
.hero-copy { max-width: 575px; }
.hero-copy h1 { max-width: 540px; margin: 0 0 18px; font-size: clamp(42px, 5.55vw, 74px); line-height: 1.01; }
.hero-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.panel, .block, .table-shell {
  border: 1px solid rgba(210, 210, 210, .85);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(9px);
}
.order-form { padding: 25px; border-radius: var(--radius-lg); overflow: hidden; }
.order-column { display: grid; min-width: 0; gap: 10px; }
.captcha-field { display: grid; gap: 7px; margin-top: 18px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(250, 250, 250, .72); }
.captcha-field[hidden] { display: none; }
.captcha-label { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.captcha-widget { min-height: 100px; max-width: 100%; overflow: hidden; }
.captcha-field .field-note { color: var(--red); }
.order-form .captcha-field.invisible, .account-stage .captcha-field.invisible { display: block; margin: 0; padding: 0; border: 0; background: transparent; }
.captcha-field.invisible .captcha-widget { min-height: 0; }
.order-confirmation { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: #285d3d; border: 1px solid #bdd8c6; border-radius: 12px; background: rgba(253, 255, 253, .94); box-shadow: 0 10px 22px -23px rgba(21, 91, 52, .7); animation: order-confirmation-in .2s ease-out both; font-size: 13px; font-weight: 650; line-height: 1.45; }
.order-confirmation[hidden] { display: none; }
.order-confirmation-marker { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(55, 134, 85, .12); }
.form-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.form-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.qty { display: grid; grid-template-columns: 43px 1fr 43px; }
.qty input { border-right: 0; border-left: 0; border-radius: 0; text-align: center; }
.qty button { color: var(--ink); border: 1px solid var(--line); background: var(--secondary); font-size: 19px; }
.qty button:first-child { border-radius: 14px 0 0 14px; }
.qty button:last-child { border-radius: 0 14px 14px 0; }
.price-strip { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 22px -25px -25px; padding: 18px 25px 22px; color: #fff; background: #111; }
.price-strip span { display: block; color: #a9a9a9; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.price-strip strong { display: block; margin-top: 4px; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.05em; line-height: .95; }
.price-strip .button { min-width: 150px; color: #111; border-color: #fff; background: #fff; }
.price-strip .button:hover:not(:disabled) { background: #e7e7e7; }
.laser-rule { display: none; }
.how { padding: 26px 0 10px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 21px; }
.section-top > p { max-width: 390px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-soft); }
.how-item { min-height: 174px; padding: 20px; border-right: 1px solid var(--line); }
.how-item:last-child { border: 0; }
.how-number { display: block; margin-bottom: 34px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.how-number::before { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--accent); content: ""; }
.how-item p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Customer account stays separate from the employee workspace. */
.account-page { width: min(1180px, calc(100vw - 32px)); min-height: 100vh; margin: 0 auto; padding: 12px 0 64px; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 1px solid rgba(210, 210, 210, .85); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.account-header-actions { display: flex; align-items: center; gap: 10px; }
.account-phone { color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.account-content { width: min(100%, 680px); margin: clamp(54px, 10vw, 116px) auto 0; }
.account-intro { margin-bottom: 24px; }
.account-intro h1 { margin: 11px 0 8px; font-size: clamp(35px, 5.2vw, 56px); line-height: 1; }
.account-intro > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.account-intro > p strong { color: var(--ink); font-weight: 700; }
.account-auth { padding: 25px; border-radius: var(--radius-lg); }
.account-auth h2 { margin-bottom: 20px; }
.account-auth .button { width: 100%; }
.account-auth .button.ghost { width: auto; justify-self: start; }
.account-history { gap: 10px; margin-top: 0; }
.account-history .history-item { position: relative; padding: 18px 19px 17px; border-color: rgba(210, 210, 210, .88); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.history-item-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.history-item-head strong { margin: 0; font-size: 15px; line-height: 1.35; }
.account-history .history-item > span { display: block; color: var(--muted); font-size: 13px; }
.account-history .history-item > span i { margin: 0 3px; color: #aaa; font-style: normal; }
.account-history .history-item small { display: block; margin-top: 13px; color: var(--muted-soft); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.account-empty { display: grid; justify-items: center; gap: 10px; padding: 38px 22px !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.account-empty h2 { font-size: 22px; }
.account-empty p { max-width: 380px; font-size: 13px; }
.account-empty .button { margin-top: 8px; text-decoration: none; }

/* Dialogs and notifications */
.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(20, 20, 20, .28); backdrop-filter: blur(4px); }
.modal { width: min(100%, 500px); max-height: calc(100vh - 36px); overflow: auto; padding: 25px; border: 1px solid rgba(210, 210, 210, .95); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 25px 100px rgba(0, 0, 0, .22); }
.modal.wide { width: min(100%, 760px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.icon-button { display: grid; width: 33px; height: 33px; place-items: center; color: var(--muted); border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 20px; }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: var(--secondary); }
.account-stage { display: grid; gap: 16px; }
.code-hint { padding: 12px; color: #575757; border: 1px dashed #ababab; border-radius: 12px; background: #f7f7f7; font-size: 12px; line-height: 1.45; }
.history-list { display: grid; gap: 8px; margin-top: 12px; }
.history-item { padding: 13px; border: 1px solid var(--line-soft); border-radius: 13px; background: #fafafa; }
.history-item strong { display: block; margin-bottom: 4px; }
.history-item span { color: var(--muted); font-size: 12px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 13px 15px; color: #fff; border: 1px solid #272727; border-radius: 13px; background: #1c1c1c; box-shadow: var(--shadow-soft); animation: rise .22s both; font-size: 13px; }
.toast.success { border-color: var(--green); }

/* Cabinet: planner-like icon rail when collapsed. */
.cabinet { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-width: 0; min-height: 100vh; padding: 12px; gap: 12px; transition: grid-template-columns .2s ease; }
.cabinet.sidebar-collapsed { grid-template-columns: 4.5rem minmax(0, 1fr); }
.cabinet-nav { position: sticky; top: 12px; align-self: start; display: flex; flex-direction: column; height: calc(100vh - 24px); min-width: 0; padding: 13px 10px 10px; border: 1px solid rgba(210, 210, 210, .85); border-radius: var(--radius-lg); background: rgba(250, 250, 250, .93); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); overflow: hidden; }
.nav-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 60px; margin: 0 3px 19px; }
.nav-mark { display: block; min-width: 0; padding: 5px 4px; }
.nav-mark small { display: block; margin-top: 9px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.wordmark-compact { display: none; align-items: baseline; justify-content: center; width: 31px; height: 31px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; font-style: normal; font-weight: 850; letter-spacing: -.12em; }
.wordmark-compact i { font-style: normal; }.wordmark-compact b { color: var(--accent); }
.sidebar-toggle { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-content: center; gap: 4px; padding: 0; color: var(--muted); border: 1px solid transparent; border-radius: 10px; background: transparent; transition: background .16s, color .16s, border-color .16s; }
.sidebar-toggle span { display: block; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .16s ease; }
.sidebar-toggle span:first-child { transform: translateX(-2px); }.sidebar-toggle span:last-child { transform: translateX(2px); }
.sidebar-toggle:hover { color: var(--ink); border-color: var(--line); background: #fff; }.sidebar-toggle:focus-visible { outline-offset: 1px; }
.nav-list { display: grid; gap: 2px; min-width: 0; }
.nav-list::before { margin: 0 10px 7px; color: var(--muted-soft); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; content: "Рабочее пространство"; white-space: nowrap; }
.nav-link { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; color: #4e4e4e; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 650; line-height: 1.25; text-decoration: none; transition: color .16s, background .16s, border-color .16s; }
.nav-link:hover { color: var(--ink); background: #f0f0f0; }.nav-link.active { color: var(--ink); border-color: #dedede; background: #fff; box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .65); }
.nav-link.active::before { display: block; flex: 0 0 6px; width: 6px; height: 6px; margin-right: -3px; border-radius: 50%; background: var(--accent); content: ""; }.nav-link svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }.nav-link > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.user-chip { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px; color: var(--ink); border: 1px solid transparent; border-radius: 13px; background: transparent; text-align: left; }.user-chip:hover { border-color: #dedede; background: #fff; }
.initials { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; color: #fff; border-radius: 10px; background: #252525; font-size: 10px; font-weight: 750; }.user-chip-copy { min-width: 0; }.user-chip strong, .user-chip-copy span { display: block; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-chip strong { font-size: 12px; }.user-chip-copy span { color: var(--muted); font-size: 10px; }
.sidebar-collapsed .cabinet-nav { padding-right: 10px; padding-left: 10px; }.sidebar-collapsed .nav-header { flex-direction: column; align-items: center; justify-content: flex-start; min-height: 71px; margin-bottom: 12px; }.sidebar-collapsed .nav-mark { padding: 0; }.sidebar-collapsed .wordmark-full, .sidebar-collapsed .nav-mark small, .sidebar-collapsed .nav-list::before, .sidebar-collapsed .nav-link > span, .sidebar-collapsed .user-chip-copy { display: none; }.sidebar-collapsed .wordmark-compact { display: inline-flex; }.sidebar-collapsed .sidebar-toggle span:first-child { transform: translateX(2px); }.sidebar-collapsed .sidebar-toggle span:last-child { transform: translateX(-2px); }.sidebar-collapsed .nav-link { position: relative; justify-content: center; gap: 0; min-height: 38px; padding: 9px; }.sidebar-collapsed .nav-link.active::before { position: absolute; left: 6px; width: 4px; height: 4px; margin: 0; }.sidebar-collapsed .nav-bottom { display: flex; justify-content: center; }.sidebar-collapsed .user-chip { justify-content: center; padding: 5px; }
.cabinet-content { min-width: 0; padding: 8px 0 40px; }
#cabinet-view { min-width: 0; padding: 0 8px; }
.page-title { align-items: end; justify-content: space-between; margin: 0 0 20px; padding: 18px 20px; border: 1px solid rgba(210, 210, 210, .85); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.page-title h1 { margin-top: 7px; font-size: clamp(27px, 3.5vw, 39px); }
.page-title .muted { margin-top: 6px; font-size: 13px; }
.status-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.status-tile { min-height: 122px; padding: 17px; border: 1px solid rgba(210, 210, 210, .85); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.status-tile span { display: flex; align-items: center; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.status-tile span::before { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #8a8a8a; content: ""; }
.status-tile.work span::before { background: var(--accent); }
.status-tile.done span::before { background: var(--green); }
.status-tile strong { display: block; margin-top: 21px; font-size: 34px; font-weight: 700; letter-spacing: -.06em; line-height: .8; }
.dash-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); min-width: 0; gap: 13px; }
.dash-grid > .block { min-width: 0; }
.dash-grid .table-shell table { min-width: 600px; }
.block { padding: 19px; border-radius: var(--radius); }
.block-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-title a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.block-title a:hover { color: var(--ink); }
.attention-list { display: grid; gap: 7px; }
.attention { display: flex; justify-content: space-between; gap: 13px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fbfbfb; }
.attention p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.production-rail { display: flex; width: 62px; gap: 3px; padding-top: 5px; }
.production-rail i { display: block; width: 100%; height: 4px; border-radius: 5px; background: #dedede; }
.production-rail.uch i:first-child { background: #8c8c8c; }
.production-rail.work i:nth-child(-n + 2) { background: var(--accent); }
.production-rail.done i { background: var(--green); }
.table-shell { position: relative; overflow: auto; border-radius: var(--radius); }
.table-shell::after { position: sticky; right: 0; display: block; width: 22px; height: 1px; margin-left: auto; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); content: ""; }
table { width: 100%; min-width: 850px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: rgba(247, 247, 247, .96); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(0, 0, 0, .025); }
td strong { display: block; font-weight: 700; }
td small { color: var(--muted); }
.table-input { min-width: 96px; min-height: 33px; padding: 6px 8px; border-radius: 10px; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #525252; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status::before { display: block; width: 7px; height: 7px; border-radius: 50%; background: #818181; content: ""; }
.status.work { color: #8d4b12; }.status.work::before { background: var(--accent); }
.status.done { color: #286749; }.status.done::before { background: var(--green); }
.filter-row { justify-content: space-between; margin: 0 0 13px; padding: 0 2px; }
.filter-row .search { flex: 1 1 210px; max-width: 360px; }
.filter-row select { width: auto; min-width: 158px; }
.row-actions { display: flex; gap: 2px; }.row-actions button { padding: 5px 7px; }
.empty-state { padding: 32px !important; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 0 3px; color: var(--muted); }
.pagination-range, .pagination-page { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.pagination-controls { display: flex; align-items: center; gap: 3px; }
.pagination-button { display: grid; min-width: 31px; min-height: 31px; place-items: center; padding: 5px !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 9px !important; background: #fff !important; font-size: 15px !important; line-height: 1; }
.pagination-button:hover:not(:disabled) { border-color: #a6a6a6 !important; background: #f7f7f7 !important; }
.pagination-page { min-width: 39px; color: var(--muted-soft); text-align: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field-price { padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fafafa; }
.checkbox { display: flex; align-items: center; gap: 9px; padding-top: 23px; }.checkbox input { width: 17px; min-height: 17px; }
.order-history { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.order-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.order-history-head h3 { font-size: 14px; }
.order-history-head > span { flex: 0 0 auto; color: var(--muted-soft); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.order-history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.order-history-entry { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 9px; min-width: 0; padding: 0 0 13px; }
.order-history-entry:last-child { padding-bottom: 0; }
.order-history-entry:not(:last-child)::after { position: absolute; top: 13px; bottom: 0; left: 6px; width: 1px; background: var(--line-soft); content: ""; }
.order-history-marker { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(249, 115, 22, .22); }
.order-history-status .order-history-marker { background: #777; box-shadow: 0 0 0 1px rgba(0, 0, 0, .16); }
.order-history-amount .order-history-marker { background: #b66520; box-shadow: 0 0 0 1px rgba(182, 101, 32, .18); }
.order-history-entry strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 720; line-height: 1.4; }
.order-history-entry p { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.order-history-entry time { color: var(--muted-soft); white-space: nowrap; }
.order-history-empty { margin: 0; padding: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: #fafafa; font-size: 12px; text-align: center; }

/* Staff sign in */
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 22px; }
.login-wrap { width: min(100%, 480px); overflow: hidden; border: 1px solid rgba(210, 210, 210, .9); border-radius: var(--radius-lg); background: rgba(255,255,255,.91); box-shadow: var(--shadow-soft); }
.login-aside { display: block; min-height: 0; padding: 22px 25px; color: var(--ink); border-bottom: 1px solid var(--line-soft); background: #fafafa; }
.login-aside h1 { display: none; }
.login-aside p { display: none; }
.login-aside small { display: block; margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.login-form { padding: 28px 25px; }
.login-form h2 { margin: 7px 0 9px; }.login-form > p { color: var(--muted); font-size: 13px; line-height: 1.55; }.login-form > p.eyebrow { color: var(--muted); font-size: 10px; }
.login-form .fields { margin-top: 22px; }
.demo-fill { margin-top: 17px; padding: 12px; color: var(--muted); border: 1px dashed #bdbdbd; border-radius: 12px; background: #fafafa; font-size: 12px; line-height: 1.55; }
.profile-card { max-width: 620px; }.profile-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin: 20px 0 30px; }.profile-card dt { color: var(--muted); font-size: 12px; }.profile-card dd { margin: 0; font-weight: 650; }
.role { display: inline-block; padding: 4px 7px; color: #4d4d4d; border: 1px solid #d5d5d5; border-radius: 7px; background: #f6f6f6; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hidden { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes order-confirmation-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .shell { width: min(100vw - 24px, 1180px); }
  .page-header { margin-top: 8px; padding: 12px 14px; border-radius: 18px; }
  .header-link { display: none; }
  .public-hero { grid-template-columns: 1fr; min-height: auto; padding: 42px 0; }
  .hero-copy h1 { font-size: clamp(39px, 13vw, 58px); }
  .order-form { padding: 21px; }.captcha-field { margin-top: 16px; padding: 10px; border-radius: 12px; }.captcha-widget { min-height: 100px; }.price-strip { margin: 20px -21px -21px; padding: 17px 21px 20px; }.price-strip strong { font-size: 24px; }.price-strip .button { min-width: auto; padding: 9px 11px; }
  .section-top { align-items: start; flex-direction: column; gap: 14px; }.how { padding-top: 10px; }.how-grid { grid-template-columns: 1fr; }.how-item { min-height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }.how-number { margin-bottom: 15px; }
  .account-page { width: min(100vw - 24px, 1180px); padding-top: 8px; }.account-header { padding: 12px 14px; border-radius: 18px; }.account-header-actions { gap: 8px; }.account-phone { max-width: 138px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }.account-header .button { min-height: 36px; padding: 8px 11px; }.account-content { margin-top: 54px; }.account-intro { margin-bottom: 18px; }.account-intro h1 { font-size: 37px; }.account-auth { padding: 20px; border-radius: 18px; }.account-history .history-item { padding: 15px; border-radius: 14px; }.history-item-head { gap: 8px; }.history-item-head strong { font-size: 14px; }
  .cabinet, .cabinet.sidebar-collapsed { display: block; padding: 8px; }.cabinet-nav { position: relative; z-index: 20; top: auto; display: block; width: 100%; height: auto; min-height: 0; padding: 8px; border-radius: 18px; overflow: visible; }.nav-header { align-items: center; min-height: 38px; margin: 0; }.nav-mark { padding: 3px 5px; }.nav-mark small { display: none; }.sidebar-toggle { margin-left: auto; }.nav-list { position: absolute; z-index: 21; top: calc(100% + 7px); right: 0; left: 0; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 20px 35px -24px rgba(0,0,0,.45); }.nav-list::before { display: none; }.nav-link { min-height: 40px; padding: 10px; }.nav-bottom { display: none; }.cabinet.sidebar-collapsed .nav-header { flex-direction: row; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 0; }.cabinet.sidebar-collapsed .cabinet-nav { padding: 8px; }.cabinet.sidebar-collapsed .nav-mark { padding: 3px 5px; }.cabinet.sidebar-collapsed .wordmark-full { display: inline; }.cabinet.sidebar-collapsed .wordmark-compact { display: none; }.cabinet.sidebar-collapsed .nav-list { display: none; }.cabinet.sidebar-collapsed .nav-link > span { display: inline; }.cabinet-content { padding: 9px 0 32px; }#cabinet-view { padding: 0; }.page-title { align-items: start; margin-bottom: 12px; padding: 17px 15px; border-radius: 18px; }.page-title h1 { font-size: 29px; }.status-tiles { gap: 7px; margin-bottom: 12px; }.status-tile { min-height: 104px; padding: 12px; border-radius: 14px; }.status-tile span { font-size: 8px; letter-spacing: .05em; }.status-tile span::before { width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #8a8a8a; content: ""; }.status-tile.work span::before { background: var(--accent); }.status-tile.done span::before { background: var(--green); }.status-tile strong { margin-top: 20px; font-size: 29px; }.dash-grid { grid-template-columns: 1fr; gap: 12px; }.block { padding: 14px; border-radius: 14px; }.filter-row { align-items: stretch; flex-direction: column; }.filter-row .search, .filter-row select { max-width: none; width: 100%; }.pagination { margin-top: 8px; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.modal { padding: 21px; border-radius: 18px; }.profile-card dl { grid-template-columns: 1fr; gap: 3px; }.order-history-head { align-items: flex-start; flex-direction: column; gap: 4px; }.order-history-entry { grid-template-columns: 12px minmax(0, 1fr); gap: 7px; }.order-history-entry:not(:last-child)::after { left: 5px; }.order-history-entry time { white-space: normal; }
}

.dadata-field { position: relative; }
.dadata-suggestions {
  position: absolute;
  z-index: 8;
  top: calc(100% - 2.7rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px -28px rgba(0, 0, 0, .6);
}
.dadata-item {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dadata-item:last-child { border-bottom: 0; }
.dadata-item:hover, .dadata-item:focus-visible { background: var(--secondary); outline: none; }
.order-client-field { position: relative; }
.order-client-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 248px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px -28px rgba(0, 0, 0, .6);
}
.order-client-suggestions[hidden] { display: none; }
.order-client-option {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 11px 13px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  transition: background .14s ease;
}
.order-client-option:last-child { border-bottom: 0; }
.order-client-option:hover, .order-client-option.active { background: var(--secondary); }
.order-client-option:focus-visible { position: relative; outline: 2px solid var(--ink); outline-offset: -2px; }
.order-client-option strong { font-size: 13px; font-weight: 700; line-height: 1.35; }
.order-client-option small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.order-client-empty { padding: 13px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .order-client-suggestions { max-height: min(230px, 42vh); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
