/* ==========================================================================
   NEO:SHIELD (shield.neoai.com.ua) — Swiss Editorial / Architectural Grid v2.0
   Aesthetic: antidelusion.com × null88.me (High-Contrast Swiss Legal Grid)
   Layout: Single-Column Mobile-First Dossier Flow (max-width: 840px)
   ========================================================================== */

:root {
  /* Swiss Architectural Paper & Pure Surface Palette */
  --bg-page: #F6F5F0;
  --bg-card: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-dark: #111111;
  --bg-dark-elevated: #1A1A1A;

  --text-primary: #111111;
  --text-secondary: #4E4C46;
  --text-muted: #76736B;

  --border-hairline: #D8D5CE;
  --border-strong: #B8B4AA;
  --border-divider: #D4D1C8;

  /* Precision Functional Accents */
  --accent-shield: #0B6E4F;
  --accent-shield-bright: #10B981;
  --accent-shield-hover: #08563D;
  --accent-shield-soft: rgba(11, 110, 79, 0.07);
  --accent-shield-border: rgba(11, 110, 79, 0.34);

  --accent-risk: #B91C1C;
  --accent-risk-soft: rgba(185, 28, 28, 0.06);
  --accent-risk-border: rgba(185, 28, 28, 0.38);

  --accent-amber: #B45309;
  --accent-amber-soft: rgba(180, 83, 9, 0.07);
  --accent-amber-border: rgba(180, 83, 9, 0.38);

  /* Typography */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-doc: 'Times New Roman', Times, Georgia, serif;

  /* Sharp Swiss Editorial Geometry (2px - 4px max) */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --shadow-card: 0 1px 0 rgba(17, 17, 17, 0.04);
  --shadow-sheet: 0 10px 30px rgba(17, 17, 17, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

#block-1,
#block-2,
#block-3,
#block-4,
#block-5,
#calc-forms-wrapper,
#requisites-panel,
#requisites-accordion {
  scroll-margin-top: 88px;
}

.zero-trace-compact {
  display: none;
}

/* ==========================================================================
   1. STICKY SWISS EDITORIAL HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.brand-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.brand-badge-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  line-height: 1;
  white-space: nowrap;
}

.brand-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border-divider);
  flex-shrink: 0;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.zero-trace-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 36px;
  min-width: 38px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn:focus-visible,
.scenario-card:focus-visible,
.stepper-pill:focus-visible,
.modal-close-btn:focus-visible {
  outline: 2px solid var(--accent-shield);
  outline-offset: 2px;
}

.lang-btn.is-active {
  background: #111111;
  color: #FFFFFF;
}

/* ==========================================================================
   2. SINGLE-COLUMN CONTAINER, HERO & PAID SESSION VAULT BAR
   ========================================================================== */

.dossier-main {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid #111111;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-shield);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 20.5px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-desc {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
}

/* Paid Cases Session Vault Bar */
.paid-cases-bar {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  border-left: 4px solid var(--accent-shield-bright);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}

.paid-cases-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.paid-cases-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-shield-bright);
  padding: 2px 7px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-sm);
}

.paid-cases-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.paid-cases-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paid-case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 11px;
  background: #1B1B1B;
  border: 1px solid #2E2E2E;
  border-radius: var(--radius-sm);
}

.paid-case-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paid-case-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.paid-case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A3A3A3;
}

.paid-case-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.paid-case-open-btn {
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
  color: #D1FAE5;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 10px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.paid-case-open-btn:hover {
  background: var(--accent-shield-bright);
  border-color: var(--accent-shield-bright);
  color: #111111;
}

.paid-case-dl-btn {
  appearance: none;
  border: 1px solid #3F3F3F;
  background: #FFFFFF;
  color: #111111;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 10px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.paid-case-dl-btn:hover {
  background: var(--accent-shield-bright);
  border-color: var(--accent-shield-bright);
  color: #111111;
}

/* Compact Mobile-Friendly Step Navigation Indicator */
.dossier-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.dossier-stepper::-webkit-scrollbar {
  display: none;
}

.stepper-pill {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.stepper-pill:hover:not(:disabled) {
  border-color: #111111;
  color: #111111;
}

.stepper-pill.is-active {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
}

.stepper-pill.is-unlocked:not(.is-active) {
  border-color: var(--accent-shield-border);
  color: var(--accent-shield);
  background: var(--bg-surface);
}

.stepper-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stepper-arrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Dossier Step Containers */
.dossier-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  animation: blockFadeIn 0.22s ease-out;
}

@keyframes blockFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.block-step-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #111111;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.block-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.block-subtitle {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   3. BLOCK 1 — SCENARIO CARDS & DYNAMIC CALCULATOR MATRIX
   ========================================================================== */

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scenario-card {
  appearance: none;
  text-align: left;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.scenario-card:hover {
  border-color: #111111;
  background: var(--bg-surface);
}

.scenario-card.is-selected {
  background: var(--bg-surface);
  border: 1px solid #111111;
  border-left: 4px solid var(--accent-shield);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.05);
}

.scenario-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scenario-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.scenario-card.is-selected .scenario-code {
  color: var(--accent-shield);
}

.scenario-price-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.scenario-card.is-selected .scenario-price-tag {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

.scenario-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.scenario-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-primary);
}

.scenario-norm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dynamic-calc-panel {
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.calc-panel-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 16px; /* Prevents mobile Safari auto-zoom */
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.input-control.mono-input {
  font-family: var(--font-mono);
  font-size: 15px;
}

.textarea-control {
  min-height: 98px;
  resize: vertical;
  line-height: 1.5;
}

.input-control::placeholder,
.textarea-control::placeholder {
  color: #8E8B82;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

/* ZERO-DEFAULT Missing / Clarification Field Highlighting */
.input-control.is-missing,
.select-control.is-missing,
.textarea-control.is-missing {
  border-color: var(--accent-risk) !important;
  background-color: #FFFDFD;
  box-shadow: 0 0 0 2px var(--accent-risk-soft) !important;
}

.input-control.is-warning,
.select-control.is-warning {
  border-color: var(--accent-amber) !important;
  box-shadow: 0 0 0 2px var(--accent-amber-soft) !important;
}

/* Quick Optional Amount Chips */
.quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-chip {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 32px;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.quick-chip:hover,
.quick-chip.is-active {
  border-color: #111111;
  color: #FFFFFF;
  background: #111111;
}

/* Prominent Legal Toggle Checkboxes */
.prominent-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
}

.prominent-check-card input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #111111;
  flex-shrink: 0;
  cursor: pointer;
}

.prominent-check-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 600;
}

.prominent-check-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-shield);
  font-weight: 600;
}

/* Clarification / Error Banner */
.clarification-alert {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-risk-soft);
  border: 1px solid var(--accent-risk-border);
  border-left: 4px solid var(--accent-risk);
  color: var(--accent-risk);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
}

.clarification-alert.is-amber {
  background: var(--accent-amber-soft);
  border-color: var(--accent-amber-border);
  border-left-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* ==========================================================================
   4. BLOCK 2 — CLIENT-SIDE ANONYMIZER & DRAG-AND-DROP
   ========================================================================== */

.anonymizer-shield-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-shield);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.dropzone-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
  margin-bottom: 12px;
}

.dropzone-box:hover,
.dropzone-box.is-dragover {
  border-color: #111111;
  background: var(--bg-surface);
}

.dropzone-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-shield);
  border: 1px solid var(--accent-shield-border);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-formats {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.file-status-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--accent-shield);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-shield);
}

.file-clear-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  min-height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.file-clear-btn:hover {
  background: var(--accent-risk);
  border-color: var(--accent-risk);
  color: #FFFFFF;
}

/* Extracted Requisites Confirmation Banner (P0.2) */
.extracted-req-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--accent-shield-border);
  border-left: 4px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extracted-req-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.extracted-req-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.extracted-req-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.extracted-req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mask-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mask-stat-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

/* Primary Action Buttons */
.btn-primary,
.btn-secondary,
.btn-dev-mock,
.btn-export {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, opacity 0.14s ease;
}

.btn-primary {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-shield);
  border-color: var(--accent-shield);
}

.btn-primary:disabled,
.btn-dev-mock:disabled,
.btn-export:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.btn-secondary:hover {
  border-color: #111111;
  background: var(--bg-card);
}

.btn-dev-mock {
  background: var(--bg-surface);
  color: var(--accent-shield);
  border: 1px dashed var(--accent-shield);
  font-family: var(--font-mono);
  font-size: 13px;
}

.btn-dev-mock:hover:not(:disabled) {
  background: var(--accent-shield-soft);
}

.analyze-cta-wrap {
  margin-top: 18px;
}

.quota-footnote {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. BLOCK 3 — «ПРАВОВИЙ РЕНТГЕН» (DARK VERDICT + 3-COL TELEMETRY + CHIPS)
   ========================================================================== */

.xray-verdict-card {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  border-left: 4px solid #10B981;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.xray-verdict-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.xray-verdict-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.xray-verdict-case {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9CA3AF;
}

.xray-summary-box {
  font-size: 14.5px;
  line-height: 1.62;
  color: #F9FAFB;
}

.xray-findings-list {
  margin: 12px 0 0;
  padding: 10px 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xray-findings-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.48;
  color: #D1FAE5;
}

/* Equal-Height 3-Column Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .telemetry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid #111111;
  border-radius: var(--radius-sm);
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 122px;
}

.telemetry-card.status-positive {
  border-top-color: #10B981;
}

.telemetry-card.status-danger {
  border-top-color: var(--accent-risk);
}

.telemetry-card.status-warning {
  border-top-color: var(--accent-amber);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.telemetry-card.status-positive .telemetry-value {
  color: var(--accent-shield);
}

.telemetry-card.status-danger .telemetry-value {
  color: var(--accent-risk);
}

.telemetry-card.status-warning .telemetry-value {
  color: var(--accent-amber);
}

.telemetry-sublabel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.38;
  border-top: 1px solid var(--bg-page);
  padding-top: 6px;
}

/* Compact 2–3 per Row Monospace LAW // & CASE // Chips */
.grounds-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.grounds-chips-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 560px) {
  .grounds-chips-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 780px) {
  .grounds-chips-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ground-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-primary);
}

.ground-badge.is-case {
  background: var(--bg-surface);
  border-left: 3px solid #111111;
}

.ground-badge.is-law {
  border-left: 3px solid var(--accent-shield);
}

.ground-badge-prefix {
  font-weight: 700;
  color: var(--accent-shield);
  white-space: nowrap;
  flex-shrink: 0;
}

.ground-badge.is-case .ground-badge-prefix {
  color: #111111;
}

/* ==========================================================================
   6. BLOCK 4 — ISOLATED REQUISITES + ДСТУ 4163:2020 SHEET + PAYWALL
   ========================================================================== */

.requisites-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.requisites-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.requisites-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-shield);
  margin: 0;
  padding: 0;
  border: 0;
}

.btn-clear-pii {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.btn-clear-pii:hover {
  border-color: #111111;
  color: #111111;
  background: #F4F3EE;
}

.inline-refusal-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.38;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.inline-refusal-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #111111;
  flex-shrink: 0;
  cursor: pointer;
}

/* Stale Calculation Guard Banner (P1.1) */
.stale-calc-banner {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  border-left: 4px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.stale-calc-text {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #78350F;
  flex: 1 1 280px;
}

.stale-recalc-btn {
  appearance: none;
  border: 1px solid #B45309;
  background: #B45309;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.stale-recalc-btn:hover {
  background: #92400E;
  border-color: #92400E;
}

/* ДСТУ 4163:2020 Paper Sheet Preview */
.dstu-sheet-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  position: relative;
}

.dstu-sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #111111;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dstu-paper-body {
  padding: 24px 20px 28px 26px;
  font-family: var(--font-doc);
  font-size: 15px;
  line-height: 1.38;
  color: #000000;
}

@media (min-width: 640px) {
  .dstu-paper-body {
    padding: 34px 30px 36px 52px; /* Left margin wider per ДСТУ 4163:2020 (30mm : 10mm) */
    font-size: 16px;
  }
}

.dstu-addressee-block {
  margin-left: 30%;
  margin-bottom: 20px;
  font-size: 0.95em;
  line-height: 1.35;
}

@media (min-width: 600px) {
  .dstu-addressee-block {
    margin-left: 44%;
  }
}

.doc-header-line {
  margin-bottom: 4px;
  word-break: break-word;
}

.dstu-live-token {
  transition: background-color 0.18s ease, color 0.18s ease;
  padding: 0 2px;
  border-radius: 2px;
}

.dstu-live-token.is-placeholder {
  background: rgba(180, 83, 9, 0.12);
  color: #78350F;
}

.dstu-live-token.is-filled {
  background: rgba(11, 110, 79, 0.11);
  color: #000000;
  font-weight: 600;
}

.dstu-heading {
  text-align: center;
  font-family: var(--font-doc);
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 18px 0 6px;
  text-transform: uppercase;
}

.dstu-subtitle {
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.98em;
}

.doc-p {
  margin: 0 0 10px;
  text-align: justify;
  text-indent: 1.25cm;
}

.dstu-table-caption {
  font-weight: 700;
  font-size: 0.92em;
  margin: 14px 0 6px;
}

.dstu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 0.88em;
}

.dstu-table th,
.dstu-table td {
  border: 1px solid #222222;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.dstu-table th {
  background: #F4F3EF;
  font-weight: 700;
}

.dstu-claims-heading,
.dstu-attachments-heading {
  margin: 14px 0 6px;
}

.dstu-claims-list,
.dstu-attachments-list {
  margin: 0 0 14px;
  padding-left: 22px;
}

.dstu-claims-list li,
.dstu-attachments-list li {
  margin-bottom: 6px;
  text-align: justify;
}

.dstu-signature-row {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Paywall 65% Blur Curtain */
.paywall-curtain-zone {
  position: relative;
  margin-top: 6px;
}

.paywall-blurred-content {
  transition: filter 0.3s ease;
}

.paywall-curtain-zone.is-locked .paywall-blurred-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  min-height: 240px;
  max-height: 360px;
  overflow: hidden;
}

.paywall-curtain-zone.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.88) 50%,
    #FFFFFF 100%
  );
  pointer-events: none;
}

.paywall-overlay-card {
  position: relative;
  z-index: 5;
  margin-top: -84px;
  background: var(--bg-card);
  border: 1px solid #111111;
  border-top: 3px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
}

.paywall-curtain-zone.is-unlocked .paywall-overlay-card {
  display: none;
}

.paywall-badge-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.paywall-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.offer-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.offer-consent-row.is-missing {
  border-color: var(--accent-risk);
  background: var(--accent-risk-soft);
}

.offer-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #111111;
  flex-shrink: 0;
  cursor: pointer;
}

.offer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-shield);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.payment-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paywall-reassurance-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-shield-soft);
  border: 1px solid var(--accent-shield-border);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--accent-shield);
  font-weight: 600;
}

.payment-status-msg {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-shield);
  text-align: center;
}

/* ==========================================================================
   7. BLOCK 5 — SYMMETRIC EXPORT BUTTONS & INTERACTIVE FILING PROTOCOL
   ========================================================================== */

.unlocked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: #111111;
  border-left: 4px solid #10B981;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.export-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 520px) {
  .export-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.btn-export {
  height: auto;
  min-height: 58px;
  padding: 8px 14px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-radius: var(--radius-sm);
}

.btn-export-main {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-export-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.9;
  line-height: 1.25;
}

.btn-export.docx {
  background: var(--accent-shield);
  color: #FFFFFF;
  border: 1px solid var(--accent-shield);
}

.btn-export.docx:hover:not(:disabled) {
  background: var(--accent-shield-hover);
}

.btn-export.pdf {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
}

.btn-export.pdf:hover:not(:disabled) {
  background: #262626;
}

/* Interactive Filing Protocol */
.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.protocol-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.protocol-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.protocol-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid #111111;
  border-radius: var(--radius-sm);
}

.checklist-item.is-done {
  border-left-color: #10B981;
  background: #FAFAF8;
}

.checklist-item input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent-shield);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-content {
  flex: 1;
  min-width: 0;
}

.checklist-item.is-done .checklist-step-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.checklist-step-details {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.step-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.step-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  min-height: 36px;
  background: var(--bg-card);
  color: #111111;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.step-action-btn.is-primary-mini {
  background: var(--accent-shield);
  border-color: var(--accent-shield);
  color: #FFFFFF;
}

.step-action-btn:hover {
  background: #111111;
  color: #FFFFFF;
}

.step-action-btn.is-copied {
  background: var(--accent-shield);
  border-color: var(--accent-shield);
  color: #FFFFFF;
}

.high-stakes-escalation {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-risk-soft);
  border: 1px solid var(--accent-risk-border);
  border-left: 4px solid var(--accent-risk);
  color: var(--accent-risk);
  font-size: 13px;
  line-height: 1.5;
}

.high-stakes-escalation strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-bottom: 4px;
}

/* ==========================================================================
   8. LEGAL OFFER MODAL & FOOTER
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 17, 17, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  background: var(--bg-surface);
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #111111;
  color: #FFFFFF;
}

.modal-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.modal-close-btn {
  appearance: none;
  border: 1px solid #404040;
  background: #1F1F1F;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: #333333;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-primary);
}

.modal-body h4 {
  margin: 14px 0 6px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--accent-shield);
}

.modal-body p {
  margin: 0 0 10px;
  color: var(--text-secondary);
}

.site-footer {
  max-width: 840px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  color: #5A5852;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px 12px;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  color: #5A5852;
}

.footer-sep {
  color: #8A8780;
}

.site-footer .offer-link-btn,
.footer-mail-link {
  color: #5A5852;
  font-weight: 400;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.14s ease;
}

.site-footer .offer-link-btn:hover,
.footer-mail-link:hover {
  color: #111111;
}

/* ==========================================================================
   9. SEO KNOWLEDGE HUB, INTERNAL PROTOCOL LINKS & LEGAL FAQ ACCORDION
   ========================================================================== */

.brand-home-link {
  text-decoration: none;
  color: inherit;
}

.brand-home-link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
  border-radius: 3px;
}

.seo-knowledge-section {
  margin-top: 24px;
}

.seo-protocol-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .seo-protocol-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-protocol-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid #111111;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.12s ease;
}

.seo-protocol-link:hover {
  border-color: #111111;
  border-left-color: var(--accent-risk);
  background: #FFFFFF;
}

.seo-link-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.seo-protocol-link strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #111111;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #111111;
  background: #FFFFFF;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 13px 40px 13px 15px;
  position: relative;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
  color: #111111;
  user-select: none;
}

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

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: #111111;
}

.faq-answer {
  padding: 0 15px 14px 15px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 11px;
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .dossier-block {
    padding: 16px 14px;
  }
  .dynamic-calc-panel {
    padding: 14px 12px;
  }
  .zero-trace-badge {
    font-size: 11.5px;
    padding: 5px 8px;
    white-space: normal;
  }
  .brand-divider {
    display: none;
  }
  .telemetry-value {
    font-size: 21px;
  }
}

/* ==========================================================================
   10. CRO, READ-ONLY SAMPLE MODAL, STATE-LANG BANNER & VIP ESCALATION (v2.5)
   ========================================================================== */

.block-header-with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.btn-sample-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 13px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.btn-sample-trigger:hover {
  background: #111111;
  color: #FFFFFF;
}

.btn-sample-trigger:focus-visible {
  outline: 2px solid var(--accent-shield);
  outline-offset: 2px;
}

.step1-quick-cta-bar {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.btn-quick-analyze {
  width: 100%;
  min-height: 48px;
}

.btn-scroll-step2 {
  appearance: none;
  align-self: center;
  background: transparent;
  border: none;
  padding: 6px 10px;
  min-height: 36px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.14s ease;
}

.btn-scroll-step2:hover {
  color: var(--text-primary);
}

.btn-scroll-step2:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.dstu-state-lang-banner {
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 12px 15px;
  background: var(--accent-shield-soft);
  border: 1px solid var(--accent-shield-border);
  border-left: 4px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dstu-state-lang-uk {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text-primary);
}

.dstu-state-lang-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.vip-escalation-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
}

.btn-vip-escalation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 15px;
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn-vip-escalation:hover {
  background: var(--accent-risk);
  border-color: var(--accent-risk);
  color: #FFFFFF;
}

.btn-vip-escalation:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.modal-dialog-wide {
  max-width: 780px;
}

.modal-header .block-step-pill {
  color: #A7F3D0;
  margin-bottom: 3px;
}

.sample-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
}

.sample-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sample-tab-btn {
  appearance: none;
  min-height: 38px;
  padding: 7px 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.sample-tab-btn:hover {
  border-color: #111111;
  color: #111111;
}

.sample-tab-btn.is-active {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
}

.sample-readonly-note {
  padding: 9px 12px;
  background: var(--accent-shield-soft);
  border: 1px solid var(--accent-shield-border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-primary);
}

.sample-dstu-sheet {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sheet);
  font-family: var(--font-doc);
  font-size: 14.5px;
  line-height: 1.55;
  color: #111111;
  user-select: none;
}

.sample-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.065);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.sample-doc-inner {
  position: relative;
  z-index: 2;
}

.sample-doc-inner p {
  margin: 0 0 10px;
  color: #111111;
  text-align: justify;
}

.sample-doc-inner .dstu-addressee p {
  margin: 0 0 4px;
  text-align: left;
  font-size: 13.5px;
}

.sample-doc-heading {
  margin: 16px 0 12px !important;
  text-align: center;
  font-family: var(--font-doc) !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.38;
  color: #111111 !important;
}

.sample-doc-sign {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13.5px;
  color: #111111;
}

.sample-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.sample-modal-cta {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 600px) {
  .btn-sample-trigger {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .sample-scenario-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .sample-dstu-sheet {
    padding: 16px 14px;
    font-size: 13.5px;
  }
  .sample-watermark {
    font-size: 17px;
  }
  .btn-vip-escalation {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   11. UNIFIED LEGAL PRECISION & MOBILE CRO RELEASE v2.6
   ========================================================================== */

/* Stepper Toolbar + Right Gradient Mask + 3px Status Stripes */
.stepper-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}

.dossier-stepper-wrap {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
}

.dossier-stepper-wrap::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 34px;
  pointer-events: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 88%);
}

.dossier-stepper {
  padding-right: 28px;
}

.stepper-pill {
  border-left: 3px solid var(--border-strong);
}

.stepper-pill.is-active {
  border-left: 3px solid var(--accent-shield-bright);
}

.stepper-pill.is-unlocked:not(.is-active) {
  border-left: 3px solid var(--accent-shield);
}

.stepper-pill:disabled {
  border-left: 3px solid #D8D5CE;
}

.btn-restore-order-top {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.btn-restore-order-top:hover {
  background: #111111;
  border-color: #111111;
  border-left-color: var(--accent-shield-bright);
  color: #FFFFFF;
}

/* Paired Submode & Stage Switchers */
.submode-toggle-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .submode-toggle-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.submode-btn {
  appearance: none;
  text-align: left;
  min-height: 48px;
  padding: 10px 13px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.36;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.submode-btn:hover {
  border-color: #111111;
  color: var(--text-primary);
}

.submode-btn.is-active {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  border-left: 4px solid var(--accent-shield-bright);
}

.field-micro-hint {
  margin-top: 4px;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-shield);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Compact Step 02 Accordion & DevTools F12 Verification Guide */
.dossier-block-compact {
  padding: 18px 20px;
}

.privacy-bar-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.privacy-bar-stack .anonymizer-shield-bar {
  margin-bottom: 0;
}

.privacy-devtools-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.privacy-devtools-summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 34px 9px 12px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-shield);
  user-select: none;
}

.privacy-devtools-summary::-webkit-details-marker {
  display: none;
}

.privacy-devtools-summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
}

.privacy-devtools-guide[open] .privacy-devtools-summary::after {
  content: "−";
}

.privacy-devtools-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  font-size: 12.5px;
  line-height: 1.52;
  color: var(--text-secondary);
}

.step2-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid #111111;
  border-radius: var(--radius-sm);
}

.step2-accordion[open] {
  background: var(--bg-surface);
  border-color: #111111;
  border-left: 3px solid var(--accent-shield);
}

.step2-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 38px 12px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}

.step2-accordion-summary::-webkit-details-marker {
  display: none;
}

.step2-accordion-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.step2-accordion[open] .step2-accordion-summary::after {
  content: "−";
}

.step2-accordion-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-shield);
  text-transform: uppercase;
}

.step2-accordion-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.step2-accordion-body {
  padding: 14px;
  border-top: 1px solid var(--border-hairline);
}

.step2-inline-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Interactive Short Case ID Badge + Critical Deadline Banner + Legal Passport */
button.xray-verdict-case {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  min-height: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #D1D5DB;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

button.xray-verdict-case:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #FFFFFF;
}

.critical-deadline-banner {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-risk-soft);
  border: 1px solid var(--accent-risk-border);
  border-left: 4px solid var(--accent-risk);
  color: var(--accent-risk);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.critical-deadline-banner.is-compact {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.legal-passport-card {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid #111111;
  border-radius: var(--radius-sm);
}

.legal-passport-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-passport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .legal-passport-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-passport-item {
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.legal-passport-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-shield);
  margin-bottom: 4px;
}

.legal-passport-val {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
}

/* Paywall Trust Bar, Restore Link & Collapsible Requisites Drawer */
.paywall-trust-bar {
  margin-top: 10px;
  padding: 7px 10px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.paywall-restore-row {
  margin-top: 10px;
  text-align: center;
}

.btn-paywall-restore-link {
  appearance: none;
  background: transparent;
  border: none;
  padding: 5px 8px;
  min-height: 34px;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-paywall-restore-link:hover {
  color: #111111;
}

.requisites-accordion {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent-shield);
  border-radius: var(--radius-sm);
}

.requisites-accordion[open] {
  border-color: #111111;
  background: var(--bg-surface);
}

.requisites-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 40px 13px 15px;
  position: relative;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  user-select: none;
}

.requisites-accordion-summary::-webkit-details-marker {
  display: none;
}

.requisites-accordion-summary::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-shield);
}

.requisites-accordion[open] .requisites-accordion-summary::after {
  content: "−";
  color: #111111;
}

.requisites-accordion .requisites-panel {
  margin-bottom: 0;
  border: none;
  border-top: 1px solid var(--border-hairline);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Live RNOKPP Checksum Indicator */
.rnokpp-live-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 2px;
}

.rnokpp-live-hint.is-valid {
  color: var(--accent-shield);
}

.rnokpp-live-hint.is-warn {
  color: var(--accent-amber);
}

/* Touch-Friendly Custom Searchable Combobox (iOS Safari Safe) */
.smart-combo-host {
  position: relative;
}

.smart-combo-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 95;
  max-height: 224px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.16);
}

.smart-combo-option {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  min-height: 42px;
  padding: 9px 12px;
  background: #FFFFFF;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid var(--bg-page);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.35;
  cursor: pointer;
}

.smart-combo-option:last-child {
  border-bottom: none;
}

.smart-combo-option:hover,
.smart-combo-option.is-highlighted {
  background: var(--accent-shield-soft);
  color: #111111;
  font-weight: 600;
}

/* Restore Modal Controls */
.restore-modal-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-secondary);
}

.restore-modal-actions {
  margin-top: 14px;
}

/* Indexable SSR `/oferta` Page Styles */
.oferta-page-container {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oferta-back-nav {
  display: flex;
}

.btn-secondary-inline {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.btn-secondary-inline:hover {
  border-color: #111111;
  background: #111111;
  color: #FFFFFF;
}

.hero-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid #111111;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.hero-top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.meta-pill-dark {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
}

.hero-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.oferta-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.section-heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.oferta-legal-section {
  margin-bottom: 14px;
}

.oferta-sub-heading {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-shield);
}

.oferta-paragraph {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.oferta-devtools-box {
  margin-top: 18px;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent-shield-border);
  border-left: 4px solid var(--accent-shield);
  border-radius: var(--radius-sm);
}

.oferta-verify-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-primary);
}

.oferta-verify-list li {
  margin-bottom: 6px;
}

.footer-inner {
  max-width: 840px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-link-btn,
.footer-inline-mail {
  color: var(--accent-shield);
  font-weight: 600;
  text-decoration: underline;
}

/* Strict Single-Line 56px Header & Synchronized Scroll Offset on Mobile (< 600px) */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 68px;
  }

  #block-1,
  #block-2,
  #block-3,
  #block-4,
  #block-5,
  #calc-forms-wrapper,
  #requisites-panel,
  #requisites-accordion {
    scroll-margin-top: 68px;
  }

  .site-header {
    height: 56px;
    display: flex;
    align-items: center;
  }

  .header-inner {
    width: 100%;
    height: 56px;
    padding: 0 12px;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .brand-group {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .brand-divider,
  .brand-subtitle,
  .zero-trace-full {
    display: none !important;
  }

  .zero-trace-compact {
    display: inline;
  }

  .header-controls {
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
  }

  .zero-trace-badge {
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .lang-btn {
    min-height: 32px;
    min-width: 31px;
    padding: 4px 7px;
    font-size: 11.5px;
  }

  .btn-restore-order-top {
    width: 100%;
    font-size: 11px;
  }

  .paywall-overlay-card {
    margin-top: -64px;
    padding: 15px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
