:root {
  --wine: #68101a;
  --wine-deep: #280609;
  --wine-soft: #8b202a;
  --gold: #c8a25f;
  --gold-soft: #ead7a8;
  --ink: #1b1a18;
  --muted: #667078;
  --line: #ded6c8;
  --surface: #fffdf8;
  --paper: #f5efe5;
  --mist: #eef1ef;
  --sage: #64745f;
  --blue: #254e63;
  --green: #2f855a;
  --amber: #a66b14;
  --red: #a9261f;
  --shadow: 0 24px 70px rgba(40, 6, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 239, 229, 0.96), rgba(238, 241, 239, 0.95) 48%, rgba(247, 244, 236, 0.98)),
    repeating-linear-gradient(90deg, rgba(104, 16, 26, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(37, 78, 99, 0.025) 0 1px, transparent 1px 72px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--wine-deep);
  color: #fff3dc;
  font-size: 13px;
}

.topbar__inner,
.header__inner,
.footer__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(222, 214, 200, 0.9);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(200, 162, 95, 0.58);
  background: white;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand--dark {
  color: white;
}

.brand--dark small {
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(104, 16, 26, 0.08);
  color: var(--wine);
}

.nav-portal {
  color: var(--wine);
  border: 1px solid var(--gold);
}

.nav-portal--dark {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}

.menu-button {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 13px;
  font-weight: 800;
}

.public-shell {
  min-height: calc(100vh - 174px);
}

.screen-view[hidden],
.portal-tab[hidden],
.erp-screen[hidden],
.client-preview[hidden],
.portal-gate[hidden],
.erp-dashboard[hidden],
.erp-gate[hidden] {
  display: none !important;
}

.screen-view {
  min-height: calc(100vh - 174px);
  padding: 84px 0;
}

.screen-view--hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(40, 6, 9, 0.97) 0%, rgba(62, 10, 15, 0.92) 42%, rgba(104, 16, 26, 0.54) 100%),
    url("hero-aekita-metropoli.png") center / cover no-repeat;
}

.screen-view--hero::after,
.screen-view--wine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 42.2% 42.8%, transparent 43%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 120px);
}

.screen-view--wine {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(40, 6, 9, 1), rgba(104, 16, 26, 0.98) 56%, rgba(37, 78, 99, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 90px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.82fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.screen-stack {
  display: grid;
  gap: 32px;
}

.screen-heading {
  max-width: 820px;
}

.screen-heading > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.eyebrow {
  color: var(--wine);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
}

.eyebrow--gold,
.screen-view--hero .eyebrow {
  color: var(--gold-soft);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

h3 {
  font-size: 20px;
}

.hero__copy > p:not(.eyebrow),
.lead {
  color: #f5ead5;
  font-size: 18px;
  line-height: 1.7;
  margin-top: 18px;
}

.lead {
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--wine-deep);
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.98);
}

.button--ghost {
  background: white;
  color: var(--wine);
}

.button--outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.metrics div,
.hero__panel,
.service-card,
.people-grid article,
.contact-form,
.login-panel,
.client-preview,
.app-panel,
.dashboard-kpis article,
.process-board article,
.trust-grid article,
.access-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 16px;
}

.metrics dt {
  color: var(--gold-soft);
  font-size: 25px;
  font-weight: 900;
}

.metrics dd {
  margin: 8px 0 0;
  color: #f5ead5;
  font-size: 13px;
  line-height: 1.4;
}

.hero__panel {
  color: var(--ink);
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.panel-line,
.bank-lines p,
.document-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.panel-line:last-of-type,
.bank-lines p:last-child,
.document-list p:last-child {
  border-bottom: 0;
}

.panel-line span,
.bank-lines span,
.document-list span {
  color: var(--muted);
}

.seal-line {
  margin-top: 10px;
  border: 1px solid rgba(104, 16, 26, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 16, 26, 0.08), rgba(200, 162, 95, 0.18));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.service-grid,
.people-grid,
.dashboard-kpis,
.process-board,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.people-grid article,
.process-board article,
.trust-grid article {
  padding: 22px;
}

.service-card span,
.people-grid span,
.trust-grid span {
  color: var(--wine);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.service-card h3,
.people-grid h3,
.process-board h3,
.trust-grid h3 {
  margin-top: 12px;
}

.service-card p,
.people-grid p,
.process-board p,
.trust-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
}

.text-action {
  min-height: 38px;
  border: 1px solid rgba(104, 16, 26, 0.2);
  border-radius: 8px;
  background: white;
  color: var(--wine);
  padding: 0 12px;
  margin-top: 18px;
  font-weight: 900;
  cursor: pointer;
}

.wide-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  border-top: 1px solid rgba(104, 16, 26, 0.24);
  border-bottom: 1px solid rgba(104, 16, 26, 0.24);
  padding: 26px 0;
}

.wide-band p {
  color: var(--muted);
  line-height: 1.7;
}

.wide-band--light {
  border-color: var(--line);
}

.process-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-board strong {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: white;
}

.case-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.case-route div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.case-route div:last-child {
  border-right: 0;
}

.case-route span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-route strong {
  display: block;
  margin-top: 8px;
}

.trust-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.trust-layout p {
  color: #f7ead3;
  line-height: 1.7;
  margin-top: 16px;
}

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

.trust-grid article {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.contact-grid,
.portal-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: start;
}

.contact-form,
.login-form {
  display: grid;
  gap: 14px;
}

.contact-form,
.login-panel,
.access-rules,
.client-preview {
  padding: 24px;
  box-shadow: 0 18px 50px rgba(40, 6, 9, 0.08);
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

input,
select,
textarea,
.app-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
  margin-top: 22px;
}

.contact-notes {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  background: var(--wine-deep);
  color: #f7ead3;
  font-size: 13px;
}

.footer--light {
  border-top: 1px solid var(--line);
}

.footer--app {
  grid-column: 2;
  padding: 0 26px;
}

.footer__inner {
  line-height: 1.5;
}

.portal-page {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(238, 241, 239, 0.97)),
    repeating-linear-gradient(90deg, rgba(104, 16, 26, 0.03) 0 1px, transparent 1px 88px);
}

.portal-layout {
  min-height: calc(100vh - 120px);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.login-panel h1,
.client-header h1 {
  color: var(--wine-deep);
  font-size: clamp(36px, 5vw, 60px);
}

.login-panel p,
.client-header p,
.rule-list p {
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 24px;
}

.access-rules h2 {
  color: var(--wine-deep);
}

.rule-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.rule-list p {
  margin: 0;
}

.client-preview {
  display: block;
}

.client-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.tabbar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.tabbar button.is-active {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}

.client-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.client-kpis div,
.case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf2;
}

.client-kpis span,
.case-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-kpis strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.case-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.case-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

.timeline {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.document-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 4px 16px;
}

.system-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    linear-gradient(135deg, rgba(245, 239, 229, 0.94), rgba(238, 241, 239, 0.98)),
    repeating-linear-gradient(90deg, rgba(37, 78, 99, 0.035) 0 1px, transparent 1px 86px);
}

.app-sidebar {
  background:
    linear-gradient(180deg, rgba(40, 6, 9, 0.98), rgba(104, 16, 26, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 84px);
  color: white;
  padding: 22px;
}

.app-nav {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}

.erp-page .app-nav {
  display: none;
}

.erp-page.is-unlocked .app-nav {
  display: grid;
}

.app-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 750;
}

.app-nav a.active,
.app-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.app-main {
  min-width: 0;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  padding: 16px 26px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
}

.app-search {
  max-width: 560px;
  color: var(--muted);
}

.app-status {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
}

.dashboard,
.erp-screen {
  display: grid;
  gap: 18px;
}

.dashboard {
  padding: 26px;
}

.erp-gate {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.secure-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 14px;
  display: grid;
  gap: 6px;
  margin: 20px 0;
}

.secure-note strong {
  color: var(--wine);
}

.secure-note span,
.secure-note small {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.dashboard h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
}

.dashboard-kpis {
  grid-template-columns: repeat(4, 1fr);
}

.dashboard-kpis article {
  padding: 18px;
}

.dashboard-kpis span,
.fund-grid span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.dashboard-kpis strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpis small {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.app-panel {
  overflow: hidden;
}

.app-panel header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.app-panel h2 {
  font-size: 19px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 18px;
}

.erp-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.erp-form h3,
.flow-board h3 {
  color: var(--wine-deep);
}

.inline-client {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  display: grid;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.flow-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  min-height: 220px;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  line-height: 1.5;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.flow-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf2;
}

.flow-item header {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.flow-item p {
  color: var(--muted);
  line-height: 1.5;
}

.flow-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--wine);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.finance-rule {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.finance-rule p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.rule-calculator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.validation-message {
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  font-weight: 850;
}

.validation-message.is-ok {
  background: #e8f5ee;
  color: var(--green);
}

.validation-message.is-error {
  background: #fdecec;
  color: var(--red);
}

.money-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.money-line:last-child {
  border-bottom: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th {
  color: var(--muted);
  background: #fcfbf8;
  font-size: 11px;
  text-transform: uppercase;
}

.status-pill,
.status-ok,
.status-warn,
.status-risk,
.status-info {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill {
  background: var(--paper);
  color: var(--wine);
  border: 1px solid var(--line);
}

.status-ok {
  background: #e8f5ee;
  color: var(--green);
}

.status-warn {
  background: #fff5dd;
  color: var(--amber);
}

.status-risk {
  background: #fdecec;
  color: var(--red);
}

.status-info {
  background: #e8f1f6;
  color: var(--blue);
}

.activity-list,
.bank-lines {
  padding: 18px;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-list p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .hero__grid,
  .trust-layout,
  .contact-grid,
  .portal-gate,
  .erp-gate,
  .workflow-grid,
  .finance-rule,
  .dashboard-grid,
  .wide-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .people-grid,
  .dashboard-kpis,
  .process-board,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-route div:nth-child(2) {
    border-right: 0;
  }

  .case-route div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .system-page {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .footer--app {
    grid-column: 1;
  }

  .app-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar__inner,
  .footer__inner,
  .header__inner,
  .dashboard-title,
  .app-top,
  .client-header,
  .case-card {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-button {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .nav-links.is-open,
  .nav-links--static {
    display: flex;
  }

  .header__inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .hero__grid {
    min-height: auto;
    padding: 70px 0;
  }

  .screen-view {
    min-height: auto;
    padding: 64px 0;
  }

  .metrics,
  .service-grid,
  .people-grid,
  .client-kpis,
  .dashboard-kpis,
  .process-board,
  .trust-grid,
  .rule-calculator,
  .app-nav,
  .case-route {
    grid-template-columns: 1fr;
  }

  .case-route div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-route div:last-child {
    border-bottom: 0;
  }

  .panel-line,
  .seal-line,
  .money-line,
  .document-list p {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
  }
}
