/* Shared interface scale. Keep the existing Helpa palette, fonts and composition. */
:root {
  --muted: #686868;
  --ui-muted: #686868;
  --ui-error: #bd0010;
  --ui-success: #236b49;
  --ui-control-radius: 10px;
  --ui-section-title: 29px;
}

/* Secondary content uses one readable neutral on white and canvas surfaces. */
body :is(.catalog-intro, .catalog-results, .search-shortcut, .search-support,
  .activation-description, .input-hint, .teaser-help, .activation-support,
  .activation-page-steps, .section-kicker, .step-counter, .flow-intro,
  .product-content > p, .product-description, .product-next-note,
  .cart-title-count, .cart-product-meta, .cart-remove, .cart-empty p,
  .checkout-heading p, .cart-description-notice, .cart-product-duration,
  .cart-footer-note, .receipt-email-field > span, .cart-promo p,
  .reviews-heading p, .review-author > span, .review-card-footer,
  .review-card-footer > span, .reviews-status, .help-heading > p, .support-link small,
  .document-choice-description, .document-viewer-hint, .document-pages-status,
  .cabinet-order-date, .cabinet-item-copy small, .cabinet-order-total > span,
  .cabinet-loading, .cabinet-profile-since, .auth-check, .auth-help, .auth-sent,
  .auth-lead, .auth-resend, .auth-change) { color: var(--ui-muted); }
body .activation-teaser > p,
body .flow-step-mark > span,
body .order-timeline li:not(.active):not(.done),
body .order-view .site-order-unit-label,
body .credentials-route .credential-market-product-intro,
body .credential-mode-switch { color: var(--ui-muted); }
body .credential-product-fields .credential-mode-switch { color: var(--ui-muted); }
.flow-page .hint,
body .credentials-help > p,
body .credentials-help .flow-support small { color: var(--ui-muted); }
body.flow-page .hint,
body.flow-page .flow-intro,
body.flow-page :is(.order-page-heading, .site-order-page-heading) .flow-intro,
body .cabinet-delete-link { color: var(--ui-muted); }
body.credentials-route :is(#credentials-form, #site-order-credentials-form) .personal-data-consent { color: var(--ui-muted); }
body :is(input, textarea)::placeholder { color: #707070; opacity: 1; }
body .search-field input::placeholder,
body .key-input input::placeholder,
body .flow-page .input-wrap input::placeholder { color: #707070; }
body .product-link.is-added { color: var(--ui-success); }
body :is(.payment-option .payment-copy small, .auth-account-copy small,
  .product-detail-category, .product-detail-facts dt, #catalog-empty > p) { color: var(--ui-muted); }
body .cabinet-order[data-tone="muted"] .cabinet-status { color: var(--ui-muted); }

/* Dark panels keep their own reversed text palette. */
body :is(.aside-guide, .hero-story, .telegram-banner) > .section-kicker { color: #b5b5b5; }
body .aside-guide li > span { color: #aaa; }
body .site-footer .footer-bottom { color: #aaa; }

/* Parallel sections share a title scale and spacing to their descriptions. */
body :is(.news-heading h2, .section-heading h2, .reviews-heading h2, .help-heading h2) {
  margin-top: 0;
  font-size: var(--ui-section-title);
  line-height: 1.25;
  letter-spacing: -.4px;
}
body :is(.catalog-intro, .reviews-heading p, .help-heading > p) {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.75;
}
body .product-content > p { font-size: 11px; line-height: 1.65; }
body .product-link { min-height: 44px; font-size: 11px; }
body .duration { font-size: 10px; line-height: 1.4; }
body .news-grid .news-card p { font-size: 12px; line-height: 1.7; }
body .faq-list details > p { font-size: 13px; line-height: 1.8; }
body :is(.news-all, .reviews-actions a) { font-size: 11px; line-height: 1.5; }
body .news-card:has(.news-card-link:focus-visible:where(html[data-keyboard-focus] *)) {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}

/* Controls keep their existing density; related actions share corner shapes. */
body :is(.document-viewer-actions a, .cabinet-order-action) { border-radius: var(--ui-control-radius); }
body .cart-quantity-button { width: 36px; height: 36px; }
body .cart-remove { min-height: 32px; }
body .cart-money { max-width: 145px; white-space: normal; overflow-wrap: anywhere; }
body .search-suggestion-price { max-width: 120px; white-space: normal; overflow-wrap: anywhere; }
body .cart-product-duration { font-size: 10px; }
html:has(.cart-dialog[open]) { overflow: hidden; }
body [data-cart-add]:disabled { cursor: not-allowed; }
body .product-link[data-cart-add]:disabled:hover { color: inherit; }
body .product-link[data-cart-add]:disabled:hover svg { transform: none; }
body .product-detail-add:disabled:hover { background: #171717; transform: none; }

/* Keyboard feedback is also visible with a keyboard on a touch device. */
html[data-keyboard-focus] body :is(.cabinet-primary, .cabinet-order-action,
  .auth-submit, .auth-secondary, .auth-close, .cart-fab):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
html[data-keyboard-focus] body .cart-quantity-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

/* Support has the same geometry in key and website purchase flows. */
body .credentials-help { padding: 22px; border-radius: 16px; }
body .credentials-help .flow-support {
  gap: 11px;
  margin-top: 12px;
  padding: 13px 12px;
  border-radius: 11px;
}
body .credentials-help .flow-support strong { font-size: 13px; line-height: 1.5; }
body .credentials-help .flow-support small { font-size: 11px; line-height: 1.65; }
body .credentials-help .flow-support-icon { width: 36px; height: 36px; flex-basis: 36px; }
body .credentials-help .flow-support > .icon { display: block; width: 15px; height: 15px; flex: 0 0 15px; }
body .credentials-guide > p + .credential-guide-section:has(h3) { margin-top: 24px; }
body .order-card:is([data-status="completed"], [data-status="needs_attention"]) .status-light {
  animation: none;
  opacity: 1;
}

/* Consistent feedback, with text and color rather than color alone. */
body .field-validation-error { margin: 8px 0 0; color: var(--ui-error); font: 400 12px/1.6 Onest,sans-serif; }
body .input-wrap:has([aria-invalid="true"]),
body .receipt-email-field:has([aria-invalid="true"]),
body .cart-promo-controls input[aria-invalid="true"] { border-color: var(--ui-error); }
body .receipt-email-field input[aria-invalid="true"] { border-color: var(--ui-error); }
body .receipt-email-error { margin: 0; color: var(--ui-error); font-size: 12px; line-height: 1.6; }
body :is(.receive-status, [data-submit-status], [data-promo-feedback])[data-state="error"] {
  color: var(--ui-error);
  border-color: #e5bfc4;
  background: #fff5f5;
}
body [data-promo-feedback][data-state="success"] { color: var(--ui-success); }
body :is(.receive-status, [data-submit-status])[data-state="loading"] { color: var(--ui-muted); }
body .cart-inline-toast:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #f5f5f5;
  color: #333;
  font-size: 12px;
  line-height: 1.6;
}
body .cart-inline-toast:empty { display: none; }
body .activate-button:disabled { opacity: .65; cursor: wait; }

/* Documents align to the same outer grid as the header and footer. */
body .documents-main { width: min(1280px,calc(100% - 96px)); max-width: none; }
body .document-text-transcript {
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: 400 14px/1.8 Onest,sans-serif;
  overflow-wrap: anywhere;
}
body .document-text-transcript summary { min-height: 32px; cursor: pointer; font-weight: 600; }
body .document-page-canvas { position: relative; width: 100%; }
body .document-text-transcript p { margin-top: 12px; white-space: pre-wrap; }
body .cabinet-confirm-sheet { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
body .cabinet-item-copy strong { white-space: normal; overflow-wrap: anywhere; }

/* Optional motion always has an explicit pause or a manual browsing mode. */
body .reviews-viewport.is-manual { overflow-x: auto; mask-image: none; }
body .reviews-viewport.is-manual .reviews-track { animation: none; }
body .reviews-viewport.is-manual .reviews-group[aria-hidden="true"],
body .reviews-viewport.is-manual .review-card[aria-hidden="true"] { display: none; }
body .carousel-pause { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #171717; color: #fff; font: 600 12px/1 Onest,sans-serif; }

@media (max-width:1240px) { body .documents-main { width: calc(100% - 64px); } }
@media (min-width:981px) { body .mobile-menu { display: none; } }
@media (max-width:980px) {
  body .credentials-layout,
  body.order-view .order-layout,
  body.order-view .site-order-layout { grid-template-columns: minmax(0,1fr); max-width: 600px; gap: 20px; }
  body.order-view .order-shell { max-width: 600px; }
  body .credentials-aside, body.order-view .site-order-aside { width: 100%; grid-column: 1; }
  body .cabinet-profile { order: 0; }
}
@media (max-width:760px) {
  :root { --ui-section-title: 26px; }
  body .documents-main { width: calc(100% - 36px); }
  body .credentials-layout, body.order-view .order-shell, body.order-view .site-order-layout { max-width: 500px; }
  body .product-content { padding: 14px 12px 0; }
  body .product-title-row { gap: 8px; align-items: flex-start; }
  body .product-title-row h3 { font-size: 14px; line-height: 1.4; }
  body .product-content > p { font-size: 11px; line-height: 1.6; }
  body .product-link { font-size: 11px; gap: 6px; min-height: 44px; }
  body .product-link .icon { width: 14px; height: 14px; }
  body .news-grid .news-card p { font-size: 12px; }
  body :is(.news-all, .reviews-actions a) { font-size: 11px; white-space: normal; }
  body .news-heading { flex-wrap: wrap; gap: 8px 16px; }
  body :is(.receipt-email-field input, .cart-promo-controls input, .rental-picker select, .auth-input input) { font-size: 16px; }
  body .credentials-help { padding: 18px; }
  body.order-view .order-status-description { font-size: 12px; line-height: 1.75; }
  body.order-view .order-timeline li { font-size: 10px; }
  body.order-view .order-product-title-row .duration { font-size: 10px; }
}
@media (max-width:389px) {
  body .documents-main { width: calc(100% - 28px); }
  body .product-grid { grid-template-columns: minmax(0,1fr); }
  body .product-art { height: 164px; }
  body .product-content { padding: 16px 16px 0; }
  body .product-link { font-size: 12px; }
  body .product-title-row h3 { font-size: 16px; }
}

/* One specification per semantic role, used across all routes and purchase flows. */
:root {
  --ui-divider-color: #e2e2e2;
  --ui-divider-dark: #353535;
  --ui-divider-width: 1px;
  --ui-divider-space: 24px;
  --ui-field-height: 56px;
  --ui-field-radius: 12px;
  --ui-field-border: #dcdcdc;
  --ui-field-background: #f7f7f7;
  --ui-field-font: 14px;
  --ui-action-font: 14px;
  --ui-action-weight: 600;
  --ui-action-radius: 12px;
  --ui-card-radius: 16px;
  --ui-page-title: 32px;
  --ui-or-height: 20px;
  --ui-or-half-space: calc((var(--ui-or-height) - var(--ui-divider-width)) / 2);
}

/* White-surface separators use the same ink and stroke, regardless of renderer. */
body :is(.cart-header, .cart-summary-total, .checkout-summary, .order-success-total,
  .cabinet-order-foot, .product-detail-facts, .product-detail-purchase,
  .product-detail.is-rental .product-detail-rental, .auth-help,
  .credential-product-heading, .credential-product-guide, .order-progress,
  .site-order-delivery-body, .review-card-footer, .news-card-bottom,
  .news-reader-toolbar, .news-reader-byline, .news-reader-sources,
  .document-viewer-hint, .faq-list details) { border-color: var(--ui-divider-color); }
body.order-view .order-progress,
body.order-view .site-order-delivery-body { border-top-color: var(--ui-divider-color); }
body .aside-guide li,
body .credentials-guide .credential-guide-section + .credential-guide-section,
body .site-footer :is(.footer-details, .footer-bottom),
body .cabinet-stats,
body .cabinet-stats div + div { border-color: var(--ui-divider-dark); }

/* Distances are measured from the 1px rule itself, including rules around "или". */
body .auth-or {
  height: var(--ui-or-height);
  line-height: var(--ui-or-height);
  margin: calc(var(--ui-divider-space) - var(--ui-or-half-space)) 0 0;
  gap: 12px;
  color: var(--ui-muted);
  font-size: 12px;
}
body .auth-or::before,
body .auth-or::after { height: var(--ui-divider-width); background: var(--ui-divider-color); }
body .auth-telegram { margin-top: calc(var(--ui-divider-space) - var(--ui-or-half-space)); }
body .auth-help {
  margin-top: var(--ui-divider-space);
  padding-top: var(--ui-divider-space);
  border-top: var(--ui-divider-width) solid var(--ui-divider-color);
}
body .cart-dialog { --cart-divider-gap: var(--ui-divider-space); }
body .checkout-summary { margin-top: var(--ui-divider-space); padding-top: var(--ui-divider-space); }
body .product-detail-facts { margin-block: var(--ui-divider-space); padding-block: var(--ui-divider-space); }
body .product-detail-purchase,
body .product-detail.is-rental .product-detail-rental,
body.order-view .order-progress,
body.order-view .site-order-delivery-body { margin-top: var(--ui-divider-space); padding-top: var(--ui-divider-space); }
body .product-detail.is-rental .product-detail-purchase { margin-top: var(--ui-divider-space); padding-top: 0; }
body .cabinet-order-foot { padding-top: 16px; }
body.order-view :is(.order-page-heading, .site-order-page-heading) { margin-bottom: var(--ui-divider-space); }
body .credentials-guide .credential-guide-section + .credential-guide-section { margin-top: var(--ui-divider-space); padding-top: var(--ui-divider-space); }

/* The same editable fields have the same height, type, border, radius and inset. */
body :is(.auth-input, .key-input),
body.flow-page .input-wrap:not(.site-order-delivery-input-wrap),
body :is(.receipt-email-field input, .cart-promo-controls input, .rental-picker select) {
  height: var(--ui-field-height);
  min-height: var(--ui-field-height);
  border: 1px solid var(--ui-field-border);
  border-radius: var(--ui-field-radius);
  background-color: var(--ui-field-background);
}
body :is(.auth-input, .key-input),
body.flow-page .input-wrap:not(.site-order-delivery-input-wrap) { padding-inline: 14px; gap: 12px; }
body :is(.auth-input input, .key-input input),
body.flow-page .input-wrap:not(.site-order-delivery-input-wrap) input {
  height: calc(var(--ui-field-height) - 2px);
  font-size: var(--ui-field-font);
  font-weight: 400;
  line-height: 20px;
  color: var(--ink);
}
body :is(.auth-input input, .key-input input, .receipt-email-field input, .cart-promo-controls input)::placeholder,
body.flow-page .input-wrap input::placeholder {
  font-size: var(--ui-field-font);
  font-weight: 400;
  line-height: 20px;
}
body :is(.receipt-email-field input, .cart-promo-controls input, .rental-picker select) {
  padding-block: 12px;
  padding-left: 14px;
  font: 400 var(--ui-field-font)/20px Onest,sans-serif;
  color: var(--ink);
}
body .cart-promo-controls button { min-height: var(--ui-field-height); border-radius: var(--ui-field-radius); font-size: var(--ui-action-font); }
body .auth-input:has([aria-invalid="true"]),
body .key-input:has([aria-invalid="true"]),
body.flow-page .input-wrap:has([aria-invalid="true"]),
body .receipt-email-field input[aria-invalid="true"],
body .cart-promo-controls input[aria-invalid="true"] { border-color: var(--ui-error); }
body.flow-page .field-icon { width: 20px; height: 20px; flex-basis: 20px; }
body .key-input .key-icon { width: 20px; height: 20px; flex-basis: 20px; }
body :is(.form-field > label, .auth-field > span:first-child, .cart-promo label, .rental-picker > span) {
  margin-bottom: 8px;
  color: var(--ink);
  font: 600 12px/18px Onest,sans-serif;
}
body .auth-field,
body .rental-picker { gap: 8px; }
body .auth-field > span:first-child,
body .rental-picker > span { margin-bottom: 0; }
body .receipt-email-field { color: var(--ink); font: 600 12px/18px Onest,sans-serif; }
body :is(.auth-error, .form-error, .field-validation-error, .checkout-feedback, .receipt-email-error) {
  margin-top: 8px;
  color: var(--ui-error);
  font: 400 12px/1.6 Onest,sans-serif;
  text-align: left;
}

/* Main and compact actions each have a deliberate, shared scale. */
body :is(.activate-button, .primary-button, .cart-primary, .auth-submit,
  .auth-secondary, .auth-telegram, .cabinet-primary, .cabinet-danger,
  .product-detail-add, .site-order-payment-button) {
  min-height: var(--ui-field-height);
  border-radius: var(--ui-action-radius);
  font-family: Onest,sans-serif;
  font-size: var(--ui-action-font);
  font-weight: var(--ui-action-weight);
  line-height: 20px;
  padding-block: 12px;
}
body.flow-page .primary-button,
body .activation-teaser .activate-button,
body.site-order-route .site-order-payment-button {
  min-height: var(--ui-field-height);
  border-radius: var(--ui-action-radius);
  font: var(--ui-action-weight) var(--ui-action-font)/20px Onest,sans-serif;
  padding-block: 12px;
}
body .activation-teaser .activate-button > .icon { width: 20px; height: 20px; }
body .checkout-submit .checkout-submit-label { font-size: var(--ui-action-font); font-weight: var(--ui-action-weight); }
body :is(.activate-button, .primary-button, .cart-primary, .auth-submit, .cabinet-primary, .cabinet-danger, .product-detail-add):disabled,
body.credentials-route .primary-button:disabled {
  background: #888;
  color: #fff;
  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
body :is(.activate-button, .primary-button, .cart-primary, .auth-submit, .cabinet-primary, .cabinet-danger, .product-detail-add)[aria-busy="true"]:disabled { cursor: wait; }
body :is(.cabinet-order-action, .document-viewer-actions a, .site-order-delivery-action) {
  min-height: 44px;
  border-radius: 10px;
  font: 600 12px/18px Onest,sans-serif;
  padding-block: 10px;
}
body.site-order-route .site-order-delivery-action {
  min-height: 44px;
  border-radius: 10px;
  font: 600 12px/18px Onest,sans-serif;
}
body :is(.auth-secondary, .auth-telegram, .document-viewer-actions a:not(.document-download), .site-order-delivery-action:not(.site-order-delivery-open)) {
  border-color: var(--ui-field-border);
  background-color: #fff;
}
body :is(.auth-submit, .cart-primary, .product-detail-add) { background-color: var(--ink); }
body :is(.auth-submit, .cart-primary, .product-detail-add):hover:not(:disabled) { background-color: var(--red); }

/* Repeated product terms have the same badge in catalog, cart and order views. */
body :is(.duration, .cart-product-duration, .market-purchase-duration),
body.flow-page .product-screen .duration,
body.order-view .order-product-title-row .duration {
  padding: 4px 8px;
  border: 1px solid var(--ui-divider-color);
  border-radius: 6px;
  background: #f1f1f1;
  color: #555;
  font: 500 10px/14px Onest,sans-serif;
}
body :is(.product-card, .credential-product-card, .cabinet-order, .order-card, .document-viewer) {
  border-color: var(--ui-divider-color);
  border-radius: var(--ui-card-radius);
}
body.order-view .order-card { border-color: var(--ui-divider-color); border-radius: var(--ui-card-radius); }

/* Page headings and navigation mean the same thing on every service page. */
body :is(.activation-panel h1, .flow-main h1, .cabinet-heading h1, .documents-heading h1),
body.order-view .order-page-title-row h1,
body.flow-page .credentials-content h1,
body.site-order-route .site-order-panel h1 {
  font-family: "Russo One",sans-serif;
  font-weight: 400;
  font-size: var(--ui-page-title);
  line-height: 1.2;
  letter-spacing: -.4px;
}
body :is(.activation-back, .cart-back) {
  gap: 8px;
  min-height: 44px;
  color: var(--ui-muted);
  font: 500 12px/18px Onest,sans-serif;
}
body :is(.auth-sheet, .cabinet-confirm-sheet) { border-radius: 24px; }
body .auth-close,
body .cart-close,
body .product-detail-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ui-divider-color);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
body :is(.auth-close, .cart-close, .product-detail-close) svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

/* Both versions of personal-data consent share the same text scale and spacing. */
body .auth-check,
body.credentials-route :is(#credentials-form, #site-order-credentials-form) .personal-data-consent {
  grid-template-columns: 16px minmax(0,1fr);
  gap: 8px;
  margin-top: 24px;
  color: var(--ui-muted);
  font: 400 11px/1.6 Onest,sans-serif;
}
body .auth-check input,
body .auth-check-box { width: 16px; height: 16px; }
body .auth-check-box { border-width: 1px; border-radius: 4px; }
body .auth-check-box svg { width: 12px; height: 12px; }
body .auth-check-box { margin-top: 1px; border-color: #8a8a8a; }
body.credentials-route :is(#credentials-form, #site-order-credentials-form) .personal-data-consent input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
body.credentials-route :is(#credentials-form, #site-order-credentials-form) .personal-data-consent input:checked {
  border-color: var(--red);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}
html[data-keyboard-focus] body .auth-check input:focus-visible + .auth-check-box,
html[data-keyboard-focus] body.credentials-route .personal-data-consent input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  box-shadow: none;
}

body .credentials-help,
body .credentials-help .flow-support { border-color: var(--ui-divider-color); }
body .credentials-help .flow-support { border-radius: var(--ui-action-radius); }
body :is(.activation-description, .flow-intro, .documents-heading > p),
body.flow-page .credentials-content .flow-intro,
body.order-view :is(.order-page-heading, .site-order-page-heading) .flow-intro {
  font: 400 13px/1.75 Onest,sans-serif;
  color: var(--ui-muted);
  margin-top: 16px;
}
body .activation-description,
body.flow-page .credentials-content .flow-intro { margin-bottom: var(--ui-divider-space); }
body :is(.activation-panel, .flow-panel-top, .cabinet-heading, .documents-heading) .section-kicker,
body .documents-eyebrow,
body .cart-kicker,
body .aside-guide > .section-kicker {
  font: 600 10px/16px Onest,sans-serif;
  letter-spacing: 1.4px;
}
body :is(.activation-panel, .flow-panel-top, .cabinet-heading, .documents-heading) .section-kicker,
body .documents-eyebrow,
body .cart-kicker { color: var(--ui-muted); }
body .documents-eyebrow,
body .cabinet-heading > .section-kicker { display: block; }
body :is(.activation-panel, .flow-single) h1,
body.flow-page .credentials-content h1,
body .cabinet-heading h1,
body .documents-heading h1 { margin-top: 16px; }
body.order-view .order-page-title-row h1 { margin-top: 0; }
body .aside-guide > h2,
body.credentials-route .credentials-guide > h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.4px;
}
body :is(.auth-head h2, .cart-header h2, .product-detail h2, .cabinet-confirm h2, .cabinet-guest h2) {
  font-family: "Russo One",sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.4px;
}

/* A status uses the same palette in cabinet badges, item badges and order cards. */
body :is(.order-card, .cabinet-order, .market-product-status) {
  --status-color: #876825;
  --status-light: #aa863a;
  --status-bg: #faf8f2;
  --status-border: #ece5d5;
}
body.order-view .order-card:is([data-status="awaiting_credentials"], [data-status="paid"]),
body .cabinet-order:is([data-ui-status="awaiting_credentials"], [data-ui-status="paid"]),
body .market-product-status[data-status="awaiting_credentials"] {
  --status-color: #84633d; --status-light: #b79563; --status-bg: #faf6f0; --status-border: #eae1d4;
}
body.order-view .order-card[data-status="accepted"],
body .cabinet-order[data-ui-status="accepted"],
body .market-product-status[data-status="accepted"] {
  --status-color: #556579; --status-light: #73859a; --status-bg: #f5f7f9; --status-border: #e2e7ec;
}
body.order-view .order-card[data-status="completed"],
body .cabinet-order[data-ui-status="completed"],
body .market-product-status[data-status="completed"] {
  --status-color: #28734f; --status-light: #45996c; --status-bg: #f3f8f4; --status-border: #dfece3;
}
body.order-view .order-card[data-status="needs_attention"],
body .cabinet-order[data-ui-status="needs_attention"],
body .market-product-status[data-status="needs_attention"] {
  --status-color: #bd0010; --status-light: #e1010d; --status-bg: #fff5f5; --status-border: #f2dddd;
}
body .cabinet-order[data-ui-status] .cabinet-status,
body .market-product-status[data-status] {
  color: var(--status-color);
  background-color: var(--status-bg);
  box-shadow: inset 0 0 0 1px var(--status-border);
}
body .cabinet-order[data-ui-status] .cabinet-status i,
body .market-product-status[data-status]::before {
  width: 8px; height: 8px; background: var(--status-light);
}
body.order-view .order-status-heading,
body.order-view .site-order-tracking-item .order-status-heading { color: var(--status-color); }

@media (max-width:760px) {
  :root { --ui-divider-space: 20px; --ui-field-font: 16px; --ui-page-title: 28px; }
  body :is(.auth-sheet, .cabinet-confirm-sheet) { padding-inline: 20px; }
  body .product-detail-info { padding-inline: 20px; }
  body .aside-guide > h2,
  body.credentials-route .credentials-guide > h2 { font-size: 24px; }
  body :is(.auth-head h2, .cart-header h2, .product-detail h2, .cabinet-confirm h2, .cabinet-guest h2) { font-size: 25px; }
}
@media (max-width:560px) {
  body .auth-sheet { border-radius: 24px 24px 0 0; }
}
