.esm7-page {
  --esm7-focus: #8a6500;
  --esm7-blue: #17324d;
  --esm7-blue-soft: #eaf1f7;
  --esm7-error: #a52c25;
  background: var(--bg);
  color: var(--ink-1);
}

.esm7-page h1,
.esm7-page h2,
.esm7-page h3,
.esm7-page p {
  margin-top: 0;
}

.esm7-page h1,
.esm7-page h2,
.esm7-page h3 {
  text-wrap: balance;
}

.esm7-page p {
  text-wrap: pretty;
}

.esm7-kicker {
  color: #765700;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 12px;
}

.esm7-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 68px 0 72px;
}

.esm7-hero__grid {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .74fr);
}

.esm7-hero__copy {
  max-width: 700px;
}

.esm7-hero h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 24px;
}

.esm7-hero__lead {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 66ch;
}

.esm7-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.esm7-text-link,
.esm7-source-links a {
  color: var(--esm7-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 50, 77, .35);
  text-underline-offset: 4px;
}

.esm7-text-link:hover,
.esm7-source-links a:hover {
  text-decoration-color: currentColor;
}

.esm7-assurances {
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 22px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.esm7-assurances li {
  align-items: center;
  display: flex;
  gap: 8px;
}

.esm7-assurances li::before {
  background: var(--positive);
  border-radius: 50%;
  content: '';
  height: 7px;
  width: 7px;
}

.esm7-hero__document {
  justify-self: end;
  margin: 0;
  max-width: 420px;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.esm7-hero__document figcaption {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  margin: 16px 0 0;
}

.esm7-hero__paper {
  background: #fff;
  box-shadow: 0 10px 18px rgba(20, 20, 20, .13);
  overflow: hidden;
}

.esm7-hero__paper img {
  display: block;
  height: auto;
  width: 100%;
}

.esm7-about {
  padding: 72px 0;
}

.esm7-about__grid {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr);
}

.esm7-about h2,
.esm7-guide h2,
.esm7-fields-section h2,
.esm7-faq h2,
.esm7-section-heading h2 {
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1.16;
  margin-bottom: 20px;
}

.esm7-about__grid > div > p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.72;
  max-width: 72ch;
}

.esm7-source-links {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 24px;
  margin-top: 24px;
}

.esm7-need {
  border-top: 3px solid var(--accent);
  padding-top: 22px;
}

.esm7-need h3 {
  font-size: 19px;
  margin-bottom: 18px;
}

.esm7-need ol {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.esm7-need li {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 34px 1fr;
}

.esm7-need li > span,
.esm7-fieldset legend > span,
.esm7-form-nav span {
  align-items: center;
  background: var(--ink-1);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.esm7-need b,
.esm7-need small {
  display: block;
}

.esm7-need b {
  font-size: 14px;
  margin-bottom: 2px;
}

.esm7-need small {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.esm7-builder-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 76px 0 88px;
}

.esm7-section-heading {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.esm7-section-heading h2 {
  margin-bottom: 10px;
}

.esm7-section-heading > div:first-child > p:last-child {
  color: var(--ink-2);
  margin-bottom: 0;
}

.esm7-local-note {
  align-items: center;
  color: var(--positive);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  white-space: nowrap;
}

.esm7-local-note span {
  font-size: 10px;
}

.esm7-upload {
  align-items: center;
  background: var(--esm7-blue-soft);
  border: 1px dashed #8da2b6;
  border-radius: var(--r-md);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 28px;
  padding: 22px;
  position: relative;
}

.esm7-upload.is-dragging {
  background: #dfeaf4;
  border-color: var(--esm7-blue);
}

.esm7-upload__icon {
  align-items: center;
  background: var(--esm7-blue);
  border-radius: var(--r-sm);
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  width: 42px;
}

.esm7-upload h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.esm7-upload p {
  color: #334b60;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.esm7-upload__status {
  bottom: 4px;
  color: #334b60;
  font-size: 11px;
  grid-column: 2 / -1;
  min-height: 16px;
}

.esm7-upload__status.is-success {
  color: var(--positive);
}

.esm7-upload__status.is-error {
  color: var(--esm7-error);
}

.esm7-workspace {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
}

.esm7-form {
  min-width: 0;
}

.esm7-form-nav {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  scrollbar-width: thin;
}

.esm7-form-nav a {
  align-items: center;
  color: var(--ink-2);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  padding: 6px 10px;
  white-space: nowrap;
}

.esm7-form-nav span {
  background: var(--shade);
  color: var(--ink-2);
  height: 24px;
  width: 24px;
}

.esm7-fieldset {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 30px 0 34px;
}

.esm7-fieldset legend {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 11px;
  margin-bottom: 22px;
  padding: 0;
  width: 100%;
}

.esm7-field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr);
  margin-bottom: 18px;
}

.esm7-field-grid:last-child {
  margin-bottom: 0;
}

.esm7-field-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esm7-field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esm7-field--wide {
  min-width: 0;
}

.esm7-field {
  display: block;
  margin-bottom: 18px;
}

.esm7-field:last-child {
  margin-bottom: 0;
}

.esm7-field > span,
.esm7-work-row__amount > span {
  color: var(--ink-2);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.esm7-field > span b {
  color: var(--esm7-error);
}

.esm7-field input,
.esm7-field textarea,
.esm7-field select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  font: 14px/1.4 var(--type-body);
  min-height: 44px;
  padding: 10px 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

.esm7-field textarea {
  min-height: 76px;
  resize: vertical;
}

.esm7-field select {
  background-image: linear-gradient(45deg, transparent 50%, #4f4f4f 50%), linear-gradient(135deg, #4f4f4f 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.esm7-field input::placeholder,
.esm7-field textarea::placeholder {
  color: #696965;
  opacity: 1;
}

.esm7-field input:focus,
.esm7-field textarea:focus,
.esm7-field select:focus,
.esm7-add-row:focus-visible,
.esm7-preview-panel button:focus-visible,
.esm7-work-row__head button:focus-visible,
.esm7-faq summary:focus-visible,
.esm7-form-nav a:focus-visible {
  border-color: var(--esm7-focus);
  box-shadow: 0 0 0 3px rgba(138, 101, 0, .18);
  outline: none;
}

.esm7-field input[aria-invalid="true"],
.esm7-field textarea[aria-invalid="true"] {
  border-color: var(--esm7-error);
}

.esm7-work-rows {
  display: grid;
  gap: 14px;
}

.esm7-work-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}

.esm7-work-row__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.esm7-work-row__head b {
  font-size: 13px;
}

.esm7-work-row__head button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--esm7-error);
  cursor: pointer;
  font: 12px var(--type-body);
  padding: 5px;
}

.esm7-work-row__numbers {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: .55fr .8fr 1.25fr 1fr;
}

.esm7-work-row__numbers .esm7-field {
  margin: 0;
}

.esm7-work-row__amount {
  min-width: 0;
  padding-bottom: 11px;
  text-align: right;
}

.esm7-work-row__amount > span {
  margin-bottom: 4px;
}

.esm7-work-row__amount b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.esm7-add-row {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--esm7-blue);
  cursor: pointer;
  display: flex;
  font: 600 13px var(--type-body);
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  padding: 11px;
  width: 100%;
}

.esm7-add-row:hover {
  background: var(--esm7-blue-soft);
  border-color: #8da2b6;
}

.esm7-add-row span {
  font-size: 18px;
  line-height: 1;
}

.esm7-tax-panel {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin-top: 24px;
}

.esm7-tax-panel .esm7-field {
  margin: 0;
}

.esm7-check {
  align-items: center;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 9px;
}

.esm7-check input {
  accent-color: var(--accent-hover);
  height: 18px;
  width: 18px;
}

.esm7-calculation {
  border-top: 1px solid var(--border);
  display: flex;
  font-size: 12px;
  gap: 12px 20px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 16px;
}

.esm7-calculation b {
  font-variant-numeric: tabular-nums;
}

.esm7-calculation strong {
  font-size: 14px;
}

.esm7-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}

.esm7-form-actions p {
  color: var(--ink-2);
  flex-basis: 100%;
  font-size: 11px;
  margin: 0;
}

.esm7-quiet-action {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--esm7-blue);
  cursor: pointer;
  font: 600 12px var(--type-body);
  padding: 7px 4px;
  text-decoration: underline;
  text-decoration-color: rgba(23, 50, 77, .35);
  text-underline-offset: 4px;
}

.esm7-quiet-action:hover {
  text-decoration-color: currentColor;
}

.esm7-quiet-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 101, 0, .18);
  outline: none;
}

.esm7-preview-panel {
  border-top: 3px solid var(--ink-1);
  min-width: 0;
  position: sticky;
  top: 18px;
}

.esm7-preview-panel__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 0 14px;
}

.esm7-preview-panel__head .esm7-kicker {
  font-size: 11px;
  margin-bottom: 2px;
}

.esm7-preview-panel__head h3 {
  font-size: 17px;
  margin: 0;
}

.esm7-preview-panel button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  cursor: pointer;
  font: 12px var(--type-body);
  padding: 8px 10px;
}

.esm7-preview-stage {
  background: #e8e8e5;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.esm7-preview-stage.is-zoomed {
  max-height: 78vh;
  overflow: auto;
}

.esm7-preview-stage.is-zoomed .esm7-print-root {
  transform: scale(.82);
}

.esm7-print-root {
  box-sizing: border-box;
  transform: scale(var(--esm7-preview-scale, .55));
  transform-origin: top left;
  width: 210mm;
}

.esm7-print-portal {
  display: none;
}

.esm7-sheet {
  background: #fff;
  color: #111;
  font: 9pt/1.18 Arial, Helvetica, sans-serif;
  min-height: 297mm;
  overflow: hidden;
  padding: 9mm 10mm 10mm;
  position: relative;
  width: 210mm;
}

.esm7-sheet__legal {
  font-size: 7.5pt;
  line-height: 1.45;
  margin-left: auto;
  text-align: right;
  width: 78mm;
}

.esm7-sheet__title {
  font-size: 11.5pt;
  font-weight: 700;
  margin: 4mm 36mm 4.5mm 32mm;
  text-align: center;
}

.esm7-sheet__title > span {
  margin-left: 4mm;
}

.esm7-sheet__title small {
  display: block;
  font-size: 10pt;
  margin-top: 2mm;
}

.esm7-sheet__codes {
  display: grid;
  font-size: 8pt;
  grid-template-columns: 31mm 29mm;
  position: absolute;
  right: 10mm;
  top: 32mm;
  width: 60mm;
}

.esm7-sheet__codes b {
  border: 1px solid #111;
  padding: .7mm 1mm;
  text-align: center;
}

.esm7-sheet__codes > span {
  align-self: center;
  padding: .7mm 1.5mm .7mm 0;
  text-align: right;
}

.esm7-sheet__codes > strong {
  align-items: center;
  border: 1px solid #111;
  display: flex;
  font-weight: 400;
  justify-content: center;
  margin-top: -1px;
  min-height: 5.5mm;
  padding: .7mm 1mm;
  text-align: center;
}

.esm7-sheet__codes > span:first-child {
  padding: 0;
}

.esm7-sheet__date-code {
  display: grid !important;
  grid-template-columns: 9mm 9mm 1fr;
  padding: 0 !important;
}

.esm7-sheet__date-code i {
  align-items: center;
  display: flex;
  font-style: normal;
  justify-content: center;
  min-height: 5.5mm;
}

.esm7-sheet__date-code i + i {
  border-left: 1px solid #111;
}

.esm7-sheet__okpo-code {
  min-height: 10mm !important;
}

.esm7-sheet__lines > div,
.esm7-sheet__machine > div {
  align-items: end;
  display: flex;
  gap: 2mm;
  margin-bottom: .5mm;
}

.esm7-sheet__lines > div > b,
.esm7-sheet__machine > div > b {
  flex: 0 0 auto;
  font-weight: 400;
}

.esm7-sheet__lines > div > span,
.esm7-sheet__machine > div > span {
  border-bottom: 1px solid #111;
  flex: 1 1 auto;
  min-height: 4.5mm;
  overflow-wrap: anywhere;
  padding: 0 1mm .6mm;
}

.esm7-sheet__lines > div > em {
  flex: 0 0 auto;
  font-style: normal;
  white-space: nowrap;
}

.esm7-sheet__lines > small,
.esm7-sheet__machine > small {
  display: block;
  font-size: 6.5pt;
  margin: -.8mm 0 1.2mm 25mm;
  text-align: center;
}

.esm7-sheet__party,
.esm7-sheet__party-caption {
  margin-right: 62mm !important;
}

.esm7-sheet__object,
.esm7-sheet__object-caption {
  margin-right: 53mm !important;
}

.esm7-sheet__machine {
  padding-right: 0;
}

.esm7-sheet__machine > div:first-child,
.esm7-sheet__machine > small {
  margin-right: 53mm;
}

.esm7-sheet__registration {
  margin-right: 53mm;
}

.esm7-sheet__machine > div:first-child > span:last-child {
  flex-grow: .48;
}

.esm7-sheet__machine > small {
  display: flex;
  justify-content: space-around;
  margin-bottom: 5mm;
}

.esm7-sheet__period {
  border-collapse: collapse;
  font-size: 7pt;
  position: absolute;
  right: 10mm;
  table-layout: fixed;
  text-align: center;
  top: 70mm;
  width: 50mm;
}

.esm7-sheet__period th,
.esm7-sheet__period td {
  border: 1px solid #111;
  font-weight: 400;
  line-height: 1.05;
  padding: .5mm .4mm;
}

.esm7-sheet__period th:first-child,
.esm7-sheet__period td:first-child {
  width: 20mm;
}

.esm7-sheet__period tbody td {
  height: 5.5mm;
}

.esm7-sheet__work-table {
  border-collapse: collapse;
  font-size: 8pt;
  margin-top: 2mm;
  table-layout: fixed;
  width: 100%;
}

.esm7-sheet__work-table th,
.esm7-sheet__work-table td {
  border: 1px solid #111;
  font-weight: 400;
  min-height: 7mm;
  overflow-wrap: anywhere;
  padding: .8mm 1mm;
  text-align: right;
  vertical-align: middle;
}

.esm7-sheet__work-name {
  width: 41%;
}

.esm7-sheet__work-code {
  width: 11%;
}

.esm7-sheet__work-hours {
  width: 17.5%;
}

.esm7-sheet__work-rate {
  width: 15.75%;
}

.esm7-sheet__work-cost {
  width: 14.75%;
}

.esm7-sheet__work-table th:first-child,
.esm7-sheet__work-table td:first-child {
  text-align: left;
}

.esm7-sheet__work-table th:nth-child(2),
.esm7-sheet__work-table td:nth-child(2) {
  text-align: center;
}

.esm7-sheet__work-table thead th {
  text-align: center;
}

.esm7-sheet__work-table .esm7-sheet__column-numbers th {
  font-size: 7pt;
  height: 4mm;
  line-height: 1;
  padding: .35mm 1mm;
}

.esm7-sheet__work-table tfoot th {
  border-bottom: 0;
  border-left: 0;
  border-top: 0;
  font-size: 8pt;
  font-weight: 400;
  padding-bottom: .5mm;
  padding-top: .5mm;
  text-align: right;
}

.esm7-sheet__work-table tfoot td {
  padding-bottom: .5mm;
  padding-top: .5mm;
}

.esm7-sheet__totals {
  display: grid;
  font-size: 8.3pt;
  grid-template-columns: 1fr 29mm;
  margin-left: auto;
  width: 78mm;
}

.esm7-sheet__totals span,
.esm7-sheet__totals strong {
  padding: .7mm 1mm;
}

.esm7-sheet__totals span {
  text-align: right;
}

.esm7-sheet__totals strong {
  border: 1px solid #111;
  font-weight: 400;
  margin-top: -1px;
  text-align: right;
}

.esm7-sheet__hours {
  display: grid;
  gap: 1mm;
  grid-template-columns: 31mm 1fr;
  margin-top: 3mm;
}

.esm7-sheet__hours b {
  font-weight: 400;
}

.esm7-sheet__hours strong {
  border-bottom: 1px solid #111;
  font-size: 8.5pt;
}

.esm7-sheet__hours small {
  font-size: 6.5pt;
  grid-column: 2;
  text-align: center;
}

.esm7-sheet__signatures {
  margin-top: 1.5mm;
}

.esm7-sheet__signatures > div {
  display: grid;
  gap: 2mm;
  grid-template-columns: 27mm 55mm 45mm 1fr;
  margin-top: 1.2mm;
}

.esm7-sheet__signatures > div > span,
.esm7-sheet__signatures > div > i {
  border-bottom: 1px solid #111;
  font-style: normal;
  min-height: 4mm;
}

.esm7-sheet__signatures > small {
  display: grid;
  font-size: 6pt;
  grid-template-columns: 27mm 55mm 45mm 1fr;
  text-align: center;
}

.esm7-sheet__signatures > small span:first-child {
  grid-column: 2;
}

.esm7-sheet__signatures p {
  margin: 2mm 0 0 10mm;
}

.esm7-preview-panel__note {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.esm7-guide {
  padding: 82px 0;
}

.esm7-guide__grid {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
}

.esm7-steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.esm7-steps li {
  display: grid;
  gap: 18px;
  grid-template-columns: 38px 1fr;
  padding: 0 0 26px;
  position: relative;
}

.esm7-steps li:not(:last-child)::after {
  background: var(--border-strong);
  content: '';
  height: calc(100% - 38px);
  left: 18px;
  position: absolute;
  top: 38px;
  width: 1px;
}

.esm7-steps li > span {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.esm7-steps h3 {
  font-size: 16px;
  margin: 3px 0 6px;
}

.esm7-steps p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.esm7-checklist {
  background: var(--esm7-blue);
  border-radius: var(--r-md);
  color: #fff;
  padding: 28px;
}

.esm7-checklist h3 {
  font-size: 19px;
  margin-bottom: 18px;
}

.esm7-checklist ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.esm7-checklist li {
  display: grid;
  font-size: 13px;
  gap: 9px;
  grid-template-columns: 16px 1fr;
  line-height: 1.45;
}

.esm7-checklist li::before {
  color: #ffd65a;
  content: '✓';
  font-weight: 700;
}

.esm7-checklist a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.esm7-fields-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 76px 0;
}

.esm7-fields-table-wrap {
  overflow-x: auto;
}

.esm7-fields-table {
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 30px;
  min-width: 760px;
  width: 100%;
}

.esm7-fields-table th,
.esm7-fields-table td {
  border-bottom: 1px solid var(--border);
  padding: 15px 14px;
  text-align: left;
  vertical-align: top;
}

.esm7-fields-table th {
  background: var(--shade);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.esm7-fields-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.esm7-legal-note {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 90ch;
}

.esm7-faq {
  padding: 80px 0 96px;
}

.esm7-faq h2 {
  margin-bottom: 30px;
}

.esm7-faq__list {
  border-top: 1px solid var(--border-strong);
  margin: 0;
  max-width: 900px;
}

.esm7-faq details {
  border-bottom: 1px solid var(--border-strong);
}

.esm7-faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
}

.esm7-faq summary::-webkit-details-marker {
  display: none;
}

.esm7-faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  position: absolute;
  right: 8px;
  top: 13px;
}

.esm7-faq details[open] summary::after {
  content: '−';
}

.esm7-faq details p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  margin: -4px 0 20px;
  max-width: 75ch;
}

@media (max-width: 1080px) {
  .esm7-hero__grid {
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .esm7-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .esm7-preview-panel {
    position: static;
  }

  .esm7-preview-stage {
    min-height: 610px;
  }
}

@media (max-width: 820px) {
  .esm7-hero {
    padding: 48px 0 58px;
  }

  .esm7-hero__grid,
  .esm7-about__grid,
  .esm7-guide__grid {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr);
  }

  .esm7-hero h1 {
    font-size: 48px;
  }

  .esm7-hero__document {
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
  }

  .esm7-upload {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .esm7-upload > label {
    grid-column: 2;
    justify-self: start;
  }

  .esm7-field-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esm7-field-grid--three .esm7-field--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .esm7-hero h1 {
    font-size: 39px;
    letter-spacing: -.03em;
  }

  .esm7-hero__lead {
    font-size: 16px;
  }

  .esm7-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .esm7-hero__actions .btn {
    width: 100%;
  }

  .esm7-hero__document {
    max-width: 340px;
  }

  .esm7-about,
  .esm7-builder-section,
  .esm7-guide,
  .esm7-fields-section,
  .esm7-faq {
    padding-bottom: 56px;
    padding-top: 56px;
  }

  .esm7-about h2,
  .esm7-guide h2,
  .esm7-fields-section h2,
  .esm7-faq h2,
  .esm7-section-heading h2 {
    font-size: 29px;
  }

  .esm7-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .esm7-upload {
    grid-template-columns: 1fr;
  }

  .esm7-upload__icon {
    display: none;
  }

  .esm7-upload > label,
  .esm7-upload__status {
    grid-column: auto;
  }

  .esm7-upload > label {
    justify-self: stretch;
  }

  .esm7-form-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .esm7-form-nav a {
    padding-left: 4px;
    padding-right: 4px;
  }

  .esm7-field-grid,
  .esm7-field-grid--compact,
  .esm7-field-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .esm7-field-grid--three .esm7-field--wide {
    grid-column: auto;
  }

  .esm7-work-row__numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esm7-work-row__amount {
    text-align: left;
  }

  .esm7-tax-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .esm7-calculation {
    align-items: flex-start;
    flex-direction: column;
  }

  .esm7-form-actions .btn {
    width: 100%;
  }

  .esm7-quiet-action {
    text-align: left;
  }

  .esm7-preview-stage {
    min-height: 450px;
  }

  .esm7-checklist {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .esm7-page *,
  .esm7-page *::before,
  .esm7-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    margin: 0;
    size: A4 portrait;
  }

  html,
  body {
    background: #fff !important;
    height: 297mm !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
  }

  body.esm7-is-printing > *:not(.esm7-print-portal) {
    display: none !important;
  }

  body.esm7-is-printing > .esm7-print-portal {
    display: block !important;
    height: 297mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 210mm !important;
  }

  .esm7-print-portal .esm7-print-root {
    height: 297mm !important;
    margin: 0 !important;
    transform: none !important;
    width: 210mm !important;
  }

  .esm7-print-portal .esm7-sheet {
    box-shadow: none !important;
    box-sizing: border-box !important;
    break-inside: avoid !important;
    height: 297mm !important;
    margin: 0 !important;
    min-height: 297mm !important;
    overflow: hidden !important;
    print-color-adjust: exact;
    width: 210mm !important;
  }
}
