@font-face {
  font-family: Golos;
  src: url("/static/fonts/golos-text-cyrillic-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F;
}
@font-face {
  font-family: Golos;
  src: url("/static/fonts/golos-text-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Golos, Arial, sans-serif;
  color: #1c1c1a;
  background: #f1f1ef;
  font-size: 14px;
  font-synthesis: none;
  /* Spacing scale and shared action geometry: see DESIGN.md. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --control-height: 44px;
  --touch-height: 56px;
  --primary-touch-height: 64px;
  --action-height: 56px;
  --line: #e3e3df;
  --muted: #686862;
  --ink: #1c1c1a;
}
.material-list {display:flex;flex-direction:column;gap:6px;margin-bottom:20px;}
.material-list button {text-align:left;overflow-wrap:anywhere;}
.material-list button[aria-pressed="true"] {border-color:var(--ink);background:#e8ebe2;}
#material-file-info:empty {display:none;}
.material-reader {min-width:0;overflow-wrap:anywhere;}
.reader-controls {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 12px;}
.reader-viewport {width:100%;overflow:auto;max-height:75vh;background:#fff;}
.reader-viewport img {display:block;width:100%;max-width:none;height:auto;}
.material-link {display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;}
#page-help details {padding:20px 0;border-bottom:1px solid var(--line);line-height:1.65;}
#page-help summary {font-size:18px;font-weight:550;cursor:pointer;}
#page-help p {max-width:70ch;}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #d0d0ca;
  background: #fff;
  border-radius: 7px;
  padding: var(--space-2) var(--space-4);
  min-height: var(--control-height);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  transition: background 0.15s;
}
button:hover {
  background: #efefeb;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button.primary:hover {
  background: #373733;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #526a93;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #bcbcb6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-weight: 500;
}
label + label {
  margin-top: 20px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  font-weight: 550;
  margin-bottom: 0;
}
h2 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 550;
  margin-bottom: 16px;
}
p {
  line-height: 1.55;
}
small,
.small {
  font-size: 12px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: block;
  font-weight: 550;
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
.text-button {
  border: none;
  background: none;
  padding: 8px 0;
  text-align: left;
}
.text-button:hover {
  background: transparent;
  text-decoration: underline;
}
details summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
}
details p {
  margin: 8px 0;
  font-size: 12px;
}
.login-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login-card h1 {
  margin: 20px 0;
}
.login-card p {
  color: var(--muted);
}
.login-card > button {
  width: 100%;
  margin-top: 24px;
}
.login-card [role="alert"] {
  color: #9b3424;
  min-height: 20px;
  margin: 12px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  margin: 0;
}
.card-foot {
  font-size: 11px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.empty {
  padding: 40px 24px;
  color: var(--muted);
  line-height: 1.6;
}
.notice {
  background: #e9ebe6;
  border: 1px solid #cdd2c7;
  padding: 14px 18px;
  border-radius: 7px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 13px;
}
.state-message {
  padding: 18px 0 0;
  color: #7b4133;
  font-size: 13px;
}
.narrow {
  max-width: 780px;
  margin-left: 0;
}
.form-card {
  padding: 28px;
}
.form-card h2 {
  margin: 24px 0;
}
.form-card > h2 {
  margin-top: 0;
}
.form-card form + form {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.form-card form > button {
  margin-top: 24px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: var(--ink);
}
.workshop-grid {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(300px, 0.9fr);
  gap: 36px;
  align-items: start;
}
.modes {
  border: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modes legend {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.modes label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  background: #f4f4f0;
  border-radius: 6px;
  padding: 12px 10px;
  margin: 0;
  min-height: 44px;
  cursor: pointer;
}
.modes input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: var(--ink);
}
.modes label:has(input:checked) {
  background: #e2e2da;
}
.actions {
  display: flex;
  gap:var(--space-2);
  flex-wrap:wrap;
  margin-top:var(--space-6);
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 16px;
}
.preview-heading h2 {
  margin: 0;
  font-size: 15px;
}
.preview-heading span {
  font-size: 12px;
}
.workshop-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 500px;
  background: #fafaf8;
  padding: 30px;
}
.workshop-grid aside > p {
  padding: 16px 2px;
  line-height: 1.6;
}
.form-card .small {
  margin-top: 12px;
}
.checkout {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
}
.checkout-head {
  flex-shrink: 0;
}
.checkout h1 {
  font-size: 32px;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.services {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.service {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  align-items: flex-start;
}
.service > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.service span {
  font-size: 18px;
}
.service small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.service strong {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0 4px;
  flex-shrink: 0;
}
.total > span {
  font-size: 20px;
}
.total > strong {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.lower-block {
  border-top: 1px solid #d8d8cf;
  margin-top: 30px;
  padding-top: 24px;
  flex-shrink: 0;
  overflow-wrap: anywhere;
}
.lower-block h2 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.lower-block p {
  font-size: 16px;
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.lower-block small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}
.review-links {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.review-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.review-links img {
  width: 118px;
  height: 118px;
}
.preview {
  padding: 18px;
  background: #fafaf8;
  border-radius: 8px;
  max-height: 520px;
}
.preview h1 {
  font-size: 20px;
}
.preview .service {
  padding: 12px 0;
  gap: 10px;
}
.preview .service span,
.preview .service strong {
  font-size: 12px;
}
.preview .total span {
  font-size: 14px;
}
.preview .total strong {
  font-size: 25px;
}
.preview .total {
  gap: 10px;
  padding-top: 20px;
}
.preview .lower-block h2 {
  font-size: 16px;
}
.preview .lower-block p {
  font-size: 12px;
}
.preview .lower-block small {
  font-size: 10px;
}
.preview .review-links img {
  width: 80px;
  height: 80px;
}
.neutral {
  margin: auto;
  text-align: center;
  max-width: 500px;
  padding: 20px;
}
.neutral h1 {
  font-size: 40px;
  margin: 18px 0;
  line-height: 1.15;
}
.neutral p {
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

input::placeholder,
textarea::placeholder {
  color: #6b6b65;
  opacity: 1;
}
::selection {
  background: #d8ded3;
  color: #1c1c1a;
}
input,
textarea {
  caret-color: #1c1c1a;
}
* {
  scrollbar-color: #a4a49b #eeeee9;
  scrollbar-width: thin;
}
.offer-date {margin-top: 12px;}
.document-paper {background:#fafaf8;padding:24px;overflow-wrap:anywhere;border:1px solid var(--line);}
.document-paper h2 {margin-top:28px;}
.document-text {white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere;}
.document-paper details summary {padding:14px 0;cursor:pointer;min-height:44px;}
#documents-pdf {display:inline-flex;align-items:center;min-height:var(--control-height);}
#signature-canvas {display:block;width:100%;max-width:640px;aspect-ratio:25/8;background:white;border:1px solid #686862;touch-action:none;}
.archive-search {display:flex;align-items:end;gap:16px;flex-wrap:wrap;}
.archive-row {display:block;text-align:left;width:100%;margin:10px 0;}
#archive-detail {margin-top:32px;overflow-wrap:anywhere;}
#archive-detail .button-row {padding:20px 0;gap:24px;}
.archive-signature {display:block;max-width:100%;width:400px;border:1px solid var(--line);margin-top:20px;}
.public-policy {flex:1;min-height:0;overflow:auto;padding-block:24px;}
.print-page {max-width:800px;margin:32px auto;padding:24px;background:white;}
@media(max-width:600px){.document-paper {padding:16px;}.archive-search label {width:100%;}}
@media print {body.print-page {margin:0;padding:0;max-width:none;color:black;background:white;} .print-page #print,.print-page #print-status {display:none;} .print-page .document-paper {border:0;padding:0;} .print-page details {display:block;} .print-page img {break-inside:avoid;} @page {size:A4;margin:18mm;}}
.carousel-workspace {display:grid;grid-template-columns:minmax(320px,1fr) minmax(300px,1fr);gap:32px;align-items:start;margin-top:24px;}
.carousel-workspace > * {min-width:0;}
.carousel-list {display:grid;gap:6px;margin-bottom:20px;}
.slide-list-item {text-align:left;overflow-wrap:anywhere;}
.slide-list-item[aria-pressed="true"] {background:#e8ebe2;border-color:#7c8675;}
#slide-form {border-top:1px solid var(--line);padding-top:var(--space-4);}
.carousel-timing {margin-top:24px;}
.carousel-timing summary {cursor:pointer;padding:12px 0;}
.carousel-preview-controls,.waiting-controls {display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:20px;}
.slide-paper {background:#e8ebe2;color:#1c1c1a;min-height:360px;padding:40px;display:flex;flex-direction:column;justify-content:center;overflow-wrap:anywhere;}
.slide-paper h2 {font-size:clamp(26px,3vw,42px);font-weight:550;letter-spacing:-.025em;line-height:1.15;margin:0 0 24px;text-wrap:balance;}
.slide-paper p {font-size:20px;line-height:1.55;white-space:pre-wrap;margin:0;max-width:65ch;}
.slide-paper img {width:100%;max-height:320px;object-fit:contain;margin-bottom:28px;}
.slide-image-empty {padding:32px 0;color:var(--muted);}
@media(max-width:1100px){.carousel-workspace {grid-template-columns:minmax(0,1fr);}.carousel-preview-wrap {max-width:700px;}}
@media(max-width:600px){.slide-paper,.waiting-carousel .slide-paper {padding:24px;}.slide-paper p {font-size:18px;}.waiting-controls {font-size:14px;}.menu-price {font-size:21px;padding:24px;}}
.button-row, .catalog-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:var(--space-2); }
.action-stack { display:grid; gap:var(--space-2); }
.action-groups { display:grid; gap:var(--space-4); }
.action-stack > button { width:100%; min-width:0; margin:0; overflow-wrap:anywhere; }
.form-flow,.editor-stack { display:grid; gap:var(--space-4); align-content:start; }
.form-flow > :is(h2,label,p,div),.editor-stack > * { margin-block:0; }
.content-stack { display:grid; gap:var(--space-6); align-content:start; }
.content-stack > * { margin-block:0; }
.content-stack > button { justify-self:start; }
.material-menu { display:grid; gap:var(--space-3); }
.material-menu > button { margin:0; }
.catalog-source-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.catalog-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 32px; align-items: start; }
.catalog-workspace > * { min-width: 0; }
.catalog-editor { max-height: 610px; overflow-y: auto; padding-right: 8px; }
.catalog-edit-row { border-bottom: 1px solid var(--line); padding: 22px 0; }
.catalog-edit-row:first-child { padding-top: 12px; }
.catalog-edit-row p { margin: 8px 0; }
.catalog-selection { margin: 0; align-items: start; }
.catalog-selection strong { overflow-wrap: anywhere; }
.catalog-editor-price { padding-left: 32px; font-variant-numeric: tabular-nums; }
.catalog-edit-row details { margin-top: 12px; }
.catalog-edit-row details label { margin-block: 14px; }
.catalog-edit-row summary, .catalog-sections-editor summary, .catalog-lab summary { cursor: pointer; padding-block: 10px; min-height: 44px; }
.catalog-sections-editor { margin-bottom: 12px; }
.catalog-actions { padding-top: 20px; }
.catalog-view { background: #fafaf8; overflow-wrap: anywhere; }
.catalog-preview { padding: 24px; min-height: 320px; max-height: 730px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.catalog-view h1 { font-size: 32px; font-weight: 550; letter-spacing: -.8px; margin: 0 0 32px; }
.catalog-view .catalog-section { margin: 36px 0 12px; font-size: 23px; }
.catalog-service { padding: 22px 0; border-bottom: 1px solid var(--line); }
.catalog-service.catalog-highlight { background: #e8ebe2; padding: 22px 16px; border-radius: 8px; border-bottom-color: transparent; margin-block: 12px; }
.catalog-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.catalog-line h3 { font-size: 19px; font-weight: 500; margin: 0; line-height: 1.4; }
.catalog-line p { margin: 0; line-height: 1.5; }
.catalog-amount { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 100px; }
.catalog-no-price { font-size: 15px; max-width: 230px; color: var(--muted); }
.catalog-service details { margin-top: 12px; }
.catalog-service summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.catalog-service details p { line-height: 1.6; white-space: pre-wrap; max-width: 70ch; }
.catalog-empty { color: var(--muted); padding: 24px 0; }
.catalog-lab { margin-top: 32px; }
.catalog-lab form { max-width: 500px; }
#catalog-message:empty { display: none; }
@media (max-width: 1100px) {
  .catalog-workspace { grid-template-columns: minmax(0, 1fr); }
  .catalog-preview { max-height: 550px; }
}
@media (max-width: 600px) {
  .catalog-line { flex-direction: column; align-items: start; gap: 6px; }
  .catalog-amount { text-align: left; }
  .catalog-editor { max-height: 65svh; }
  .catalog-preview { padding: 18px; }
}
