:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --paper-deep: #eee8de;
  --ink: #152b39;
  --muted: #52616a;
  --line: #d6d4cc;
  --white: #fff;
  --orange: #ff6b35;
  --orange-dark: #db3f1f;
  --green: #2d6f5b;
  --red: #a53b33;
  --shadow: 0 14px 38px rgb(21 43 57 / 9%);
  font-family:
    Manrope,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgb(245 240 231 / 94%);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  display: grid;
  grid-template-columns: 28px auto;
  text-decoration: none;
  font-weight: 850;
  line-height: 1;
}
.brand img {
  grid-row: 1 / 3;
  align-self: center;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.header-action {
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  font-weight: 750;
  padding: 8px 0;
}

main {
  min-height: calc(100vh - 220px);
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.narrow {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}
.page-title {
  font-size: clamp(38px, 7vw, 68px);
}
.admin-title {
  font-size: clamp(38px, 6vw, 68px);
  margin: 0;
}
.detail-title {
  font-size: clamp(36px, 5vw, 62px);
  margin: 0;
}
.mt-14 {
  margin-top: 14px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-24 {
  margin-top: 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  padding: clamp(56px, 10vw, 128px) 0 72px;
}
.eyebrow {
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 850;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  max-width: 820px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 680px;
}
.hero-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero-note strong {
  display: block;
  font-size: 54px;
  letter-spacing: -0.05em;
}
.hero-note span {
  color: var(--muted);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.button,
button.button {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 21px;
  font-weight: 800;
}
.button:hover {
  transform: translateY(-1px);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.button.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #1e1e1e;
}
.button.danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.section {
  padding: 72px 0;
}
.section.tint {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head p {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 5px;
}
.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.machine-card {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.machine-card img {
  height: 170px;
  width: 100%;
  object-fit: contain;
  margin: 6px 0 16px;
}
.machine-card p {
  color: var(--muted);
}
.price-grid,
.steps,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card,
.step,
.metric {
  border-top: 2px solid var(--ink);
  padding: 24px 4px;
}
.price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.step-number {
  color: var(--orange-dark);
  font-weight: 900;
  margin-bottom: 28px;
}

.page-head {
  padding: 56px 0 28px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0 36px;
}
.progress span {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
}
.progress span.active {
  background: var(--orange);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card.flat {
  box-shadow: none;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.choice {
  min-height: 92px;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}
.choice:hover,
.choice.selected {
  border: 2px solid var(--orange);
  padding: 17px;
  background: #fffaf6;
}
.choice small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 5px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label,
.field > span {
  font-weight: 780;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #b7bab8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgb(255 94 58 / 22%);
  border-color: var(--orange);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}
.upload {
  border: 1px dashed #9b9f9d;
  border-radius: 12px;
  background: var(--paper);
  padding: 20px;
}
.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.thumb {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.thumb-wrap {
  position: relative;
  display: inline-flex;
}
.thumb-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
}
.photo-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.file-thumb {
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
  background: var(--paper-deep);
  color: var(--ink);
}
.file-thumb strong {
  font-size: 15px;
}
.file-thumb small {
  font-size: 10px;
  color: var(--muted);
}

.customer-case-list {
  display: grid;
  gap: 16px;
}
.customer-case-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.customer-case-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.customer-case-card h2 {
  margin-bottom: 14px;
}
.customer-case-card.unavailable {
  opacity: 0.68;
  box-shadow: none;
}
.case-machine-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.case-card-meta {
  display: grid;
  justify-items: end;
  gap: 12px;
  text-align: right;
}
.customer-machine-list {
  display: grid;
  gap: 14px;
}
.customer-machine {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.customer-machine h3 {
  margin-bottom: 18px;
}
.machine-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.machine-section-head p:last-child {
  max-width: 330px;
  color: var(--muted);
}
.machine-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.machine-details div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.machine-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.machine-details dd {
  margin: 4px 0 0;
  font-weight: 750;
}

@media (max-width: 720px) {
  .customer-case-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .case-card-meta {
    justify-items: start;
    text-align: left;
  }
  .machine-section-head {
    display: block;
  }
  .machine-details {
    grid-template-columns: 1fr;
  }
}
.summary-list {
  display: grid;
  gap: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.summary-row span:first-child {
  color: var(--muted);
}
.error {
  border-left: 4px solid var(--red);
  background: #fff2ef;
  color: #71231d;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.notice {
  border-left: 4px solid var(--orange);
  background: #fff8f1;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.success {
  border-left-color: var(--green);
  background: #f0faf6;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.next-action.needs-action {
  border-color: var(--orange);
  box-shadow: 5px 5px 0 var(--orange);
}
.next-action.waiting {
  background: #f3f5f5;
  border-color: #809095;
  box-shadow: 5px 5px 0 #809095;
}
.next-action h2 {
  margin: 8px 0 4px;
}
.next-action p {
  margin-bottom: 0;
}
.task-owner {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.has-task {
  border-color: var(--orange) !important;
  box-shadow: 3px 3px 0 var(--orange);
}
.has-task .task-owner,
.next-action.needs-action .task-owner {
  background: var(--orange);
}
.case-row-task {
  display: grid;
  gap: 6px;
}
.decision-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mobile-task-bar {
  display: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--paper-deep);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
}
.pill.test {
  background: #e9e3ff;
  color: #49368a;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.side {
  position: sticky;
  top: 100px;
}
.message-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.message {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 12px 12px 12px 3px;
  background: var(--paper-deep);
}
.message.gergo {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: #e6edf1;
}
.message small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.money-box {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.money-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 24px;
  font-weight: 900;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.timeline li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}
.timeline li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--line);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.45em;
}
.timeline li.current {
  color: var(--ink);
  font-weight: 750;
}
.timeline li.current::before {
  background: var(--orange);
}

.admin-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 20px;
}
.metric strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.04em;
}
.metric span {
  color: var(--muted);
}
.case-list {
  display: grid;
  gap: 10px;
}
.case-row {
  display: grid;
  grid-template-columns: 130px 1.5fr 1fr 170px 120px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
}
.case-row:hover {
  border-color: var(--ink);
}
.case-row small {
  color: var(--muted);
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}
.admin-actions {
  display: grid;
  gap: 18px;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
summary {
  cursor: pointer;
  font-weight: 850;
  padding: 16px 18px;
}
details > form,
details > div {
  padding: 0 18px 18px;
}
.current-admin-action > details {
  border: 2px solid var(--orange);
  box-shadow: 4px 4px 0 rgb(255 107 53 / 16%);
}
.current-admin-action > details > summary {
  font-size: 18px;
}
.action-body {
  display: grid;
  gap: 18px;
}
.action-body > form {
  display: grid;
}
.action-body > form > .button,
.action-body > form > .button-row {
  margin-top: 6px;
}
.admin-more {
  border: 0;
  background: transparent;
}
.admin-more > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
}
.admin-more > summary span {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
  text-align: center;
}
.admin-more[open] > summary {
  color: var(--ink);
}
.admin-more-list {
  display: grid;
  gap: 10px;
  padding: 12px 0 0 !important;
}
.admin-more-list > details {
  box-shadow: none;
}
.notification-list {
  display: grid;
  gap: 8px;
}
.notification {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.notification.failed {
  color: var(--red);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 30px;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .hero,
  .case-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero-note {
    transform: none;
  }
  .machine-grid,
  .price-grid,
  .steps,
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .machine-card {
    min-height: 250px;
  }
  .side {
    position: static;
  }
  .case-row {
    grid-template-columns: 100px 1fr;
  }
  .case-row > :nth-child(n + 3) {
    grid-column: 2;
  }
  .admin-actions {
    order: -1;
  }
}
@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }
  .header-action {
    font-size: 14px;
  }
  .hero {
    padding-top: 44px;
  }
  .customer-sheet,
  .admin-shell {
    padding-top: 20px;
  }
  .status-line {
    margin-bottom: 14px;
  }
  .status-line .page-title,
  .admin-head .detail-title {
    font-size: 34px;
    line-height: 1;
  }
  .next-action {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px 18px;
    margin-bottom: 18px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .next-action.needs-action {
    box-shadow: 3px 3px 0 var(--orange);
  }
  .next-action h2 {
    font-size: 24px;
  }
  .next-action .button {
    width: 100%;
  }
  .mobile-task-bar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 18;
    width: calc(100% - 24px);
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    color: var(--white);
    padding: 15px 18px;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 8px 30px rgba(30, 32, 32, 0.28);
  }
  h1 {
    font-size: 48px;
  }
  .choice-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .button-row .button {
    width: 100%;
  }
  .section-head,
  .admin-head {
    display: block;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer a {
    grid-row: auto;
    grid-column: auto;
    margin-top: 12px;
  }
}

/* DR-001 implementation layer */
.site-header {
  position: relative;
  padding: 24px 48px;
  border-bottom: 0;
  backdrop-filter: none;
}
.brand {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img {
  grid-row: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 650;
}
.site-nav a {
  text-decoration: none;
}
.case-return {
  border-bottom: 2px solid var(--orange);
}
.hero {
  width: min(1328px, calc(100% - 80px));
  grid-template-columns: minmax(0, 670px) minmax(400px, 520px);
  justify-content: space-between;
  align-items: start;
  padding: 56px 0 80px;
  gap: 64px;
}
.hero-copy h1 {
  max-width: 670px;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}
.hero-copy .lead {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.62;
  margin-bottom: 18px;
}
.hero-copy > .button {
  width: 330px;
}
.price-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
}
.price-note strong {
  color: var(--ink);
}
.resume-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}
.hero-visual {
  padding-top: 0;
}
.machine-illustrations {
  display: grid;
  grid-template-columns: 1fr 1fr 0.88fr;
  gap: 8px;
  align-items: end;
  height: 185px;
  margin-bottom: 20px;
}
.machine-illustrations img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}
.hero-note {
  transform: none;
  border: 0;
  box-shadow: none;
  background: var(--paper-deep);
  padding: 24px;
}
.hero-note h2 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 8px;
}
.hero-note p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
#hogyan {
  background: var(--white);
  border: 0;
}
#hogyan .wrap {
  width: min(1280px, calc(100% - 80px));
}
#hogyan .section-head h2 {
  font-size: 28px;
}
.steps {
  gap: 16px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.category-line {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 650;
}
.fee-line {
  margin-top: 24px;
  color: var(--muted);
}
.flow-page {
  width: min(680px, calc(100% - 40px));
  padding-top: 36px;
  padding-bottom: 80px;
}
.flow-page .page-title {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.flow-page > form,
.flow-page > .review-card,
.flow-page > .choice,
.flow-page > .zero-card {
  margin-bottom: 24px;
}
.test-banner {
  border: 1px solid #8d79cc;
  background: #eee9ff;
  color: #49368a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
}
.choice-grid.single {
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
.choice {
  position: relative;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 58px;
}
.choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice.selected {
  border-color: var(--ink);
  background: var(--paper-deep);
}
.choice:has(input:checked) {
  border: 2px solid var(--ink);
  padding: 17px 57px 17px 17px;
  background: var(--paper-deep);
  box-shadow: 0 0 0 3px rgb(21 43 57 / 12%);
}
.choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}
.choice:has(input:focus-visible) {
  outline: 3px solid rgb(255 94 58 / 35%);
  outline-offset: 3px;
}
.choice > span {
  font-weight: 650;
}
.field {
  margin-bottom: 24px;
}
.field input,
.field select {
  min-height: 58px;
}
.field small {
  color: var(--muted);
  font-size: 12px;
}
.contact-title {
  font-size: 22px;
  margin-top: 36px;
}
.machine-summary {
  color: var(--muted);
  margin: -10px 0 22px;
}
.photo-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.photo-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.photo-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.nameplate-card > p:not(.state-tag) {
  font-size: 14px;
  line-height: 1.55;
}
.photo-library {
  display: block;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  margin: 14px auto 0;
}
.full {
  width: 100%;
}
.review-card {
  box-shadow: none;
}
.consent-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.consent-check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}
.consent-check span {
  display: grid;
  gap: 5px;
}
.consent-check strong {
  line-height: 1.4;
}
.consent-check small {
  color: var(--muted);
  line-height: 1.45;
}
.consent-check:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgb(21 43 57 / 10%);
}
.consent-check:has(input:focus-visible) {
  outline: 3px solid rgb(255 107 53 / 35%);
  outline-offset: 3px;
}
.review-machine {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.review-machine p {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}
.zero-card > strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}
.zero-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.submitted-hero {
  width: min(520px, 100%);
  margin: 0 auto 64px;
}
.submitted-hero h1 {
  font-size: clamp(48px, 8vw, 68px);
  line-height: 1.06;
  margin: 24px 0;
}
.submitted-hero .card {
  margin: 28px 0 20px;
}
.customer-sheet > .eyebrow {
  margin-top: 24px;
}
.site-footer .footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  grid-row: 1 / 3;
  grid-column: 2;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding: 24px 20px;
  }
  .site-nav a:not(.case-return) {
    display: none;
  }
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
  .brand {
    font-size: 18px;
  }
  .hero {
    width: min(100% - 40px, 390px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 40px;
  }
  .hero-copy .eyebrow {
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    line-height: 18px;
  }
  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 32px 0 18px;
  }
  .hero-copy .lead {
    font-size: 16px;
    line-height: 1.62;
  }
  .hero-copy > .button {
    width: 100%;
  }
  .machine-illustrations {
    order: 2;
    height: 120px;
    margin-top: 18px;
  }
  .machine-illustrations img {
    height: 112px;
  }
  .hero-note {
    margin-top: 18px;
  }
  #hogyan {
    background: transparent;
    padding: 0 0 24px;
  }
  #hogyan .wrap {
    width: min(100% - 40px, 390px);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step {
    border: 0;
    border-radius: 0;
    padding: 4px 0;
  }
  .step p {
    display: none;
  }
  .category-line,
  .fee-line {
    font-size: 12px;
    line-height: 18px;
  }
  .flow-page {
    width: min(100% - 40px, 390px);
    padding-top: 16px;
  }
  .flow-page .page-title {
    font-size: 40px;
    line-height: 1.2;
  }
  .button-row {
    flex-direction: column-reverse;
  }
  .button-row .button {
    width: 100%;
  }
  .customer-sheet {
    width: min(100% - 40px, 390px);
  }
  .customer-sheet .page-title {
    font-size: 40px;
  }
  .site-footer {
    display: block;
  }
  .site-footer .footer-links {
    display: grid;
    margin-top: 16px;
  }
}

/* DR-008 / DR-009 implementation layer: shared mobile service states */
.case-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 80px;
}
.case-page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.case-page-head h1 {
  font-size: clamp(38px, 6vw, 54px);
  line-height: 1;
  margin: 0 0 10px;
}
.case-page-head p:not(.eyebrow),
.admin-lead {
  color: var(--muted);
  margin: 0;
}
.case-deck {
  display: grid;
  gap: 12px;
}
.case-list-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
}
.case-list-card:hover {
  border-color: var(--ink);
}
.case-list-card.unavailable {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.case-list-card.unavailable p {
  flex: 1 1 100%;
}

/* WEB-001 · publikus kezdőlap */
.site-header {
  min-height: 100px;
  padding: 24px max(70px, calc((100vw - 1300px) / 2));
  background: var(--paper);
}
.site-nav.desktop-nav {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 32px);
}
.site-nav .header-cta {
  width: 280px;
  margin-left: 12px;
  color: var(--white);
}
.mobile-menu {
  display: none;
}
.landing {
  background: var(--paper);
  color: var(--ink);
}
.landing-inner {
  width: min(1300px, calc(100% - 80px));
  margin: 0 auto;
}
.landing h1,
.landing h2,
.landing h3,
.landing p {
  margin-bottom: 0;
}
.landing h2 {
  max-width: 1100px;
  margin-top: 18px;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 0;
}
.landing h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
}
.landing-kicker {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.landing-hero {
  padding: 80px 0;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 630px 560px;
  gap: 60px;
  align-items: start;
}
.landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.landing-hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: 0;
}
.landing-hero h1 strong {
  font-weight: 800;
}
.landing-lead {
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
.landing-cta {
  width: 280px;
}
.landing-price-note {
  max-width: 590px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.landing-hero-visual {
  width: 560px;
}
.landing .machine-illustrations {
  width: 520px;
  height: 181px;
  margin: 0 0 24px;
}
.landing .machine-illustrations img {
  height: 170px;
}
.landing-promise {
  width: 520px;
  padding: 24px;
  background: var(--paper-deep);
}
.landing-promise h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}
.landing-promise p {
  color: var(--muted);
  line-height: 26px;
}
.landing-section {
  padding: 80px 0;
}
.landing-white {
  background: var(--white);
}
.landing-tint {
  background: var(--paper-deep);
}
.landing-paper {
  background: var(--paper);
}
.landing-card-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.landing-trust-grid,
.landing-category-grid,
.landing-price-grid {
  grid-template-columns: repeat(3, 1fr);
}
.landing-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.landing-card-label {
  margin-bottom: 12px !important;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.landing-card h3,
.landing-category h3,
.landing-price-card h3 {
  margin-bottom: 12px;
}
.landing-card > p:last-child,
.landing-category p,
.landing-price-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
.landing-trust-grid .landing-card {
  min-height: 332px;
}
.landing-category-grid {
  gap: 18px;
  margin-top: 32px;
}
.landing-category {
  min-height: 114px;
  padding: 24px;
  background: var(--white);
}
.landing-section-note {
  max-width: 1100px;
  margin-top: 32px !important;
  font-size: 16px;
  line-height: 26px;
}
.landing-process-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin-top: 32px;
}
.landing-process-grid .landing-card {
  min-height: 226px;
}
.landing-process-grid .landing-card:nth-child(-n + 2) {
  min-height: 254px;
}
.landing-subtitle {
  margin-top: 18px !important;
  font-size: 16px;
  line-height: 26px;
}
.landing-price-grid {
  gap: 20px;
  margin-top: 50px;
}
.landing-price-card {
  min-height: 226px;
  padding: 26px;
  background: var(--white);
}
.landing-price-card > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 32px;
  line-height: 40px;
}
.landing-decision-copy {
  max-width: 1100px;
  margin: 50px 0;
}
.landing-decision-copy h3 {
  margin-bottom: 36px;
  font-size: 28px;
  line-height: 36px;
}
.landing-decision-copy p {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 26px;
}
.landing-about-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 790px);
  gap: 48px;
  align-items: center;
}
.landing-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.landing-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.landing-portrait figcaption {
  display: grid;
  gap: 4px;
  padding: 18px 24px 22px;
  color: var(--white);
}
.landing-portrait figcaption strong {
  font-size: 28px;
  line-height: 36px;
}
.landing-portrait figcaption span {
  font-size: 16px;
  line-height: 26px;
}
.landing-about-copy h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 36px;
}
.landing-about-copy p {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}
.landing-about-copy p:last-child {
  margin-bottom: 0;
}
.landing-contact {
  background: var(--ink);
  color: var(--white);
}
.landing-contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.landing-contact h2 {
  margin: 0;
  color: var(--white);
}
.landing-contact-copy > p:not(.landing-kicker) {
  max-width: 690px;
  font-size: 16px;
  line-height: 26px;
}
.landing-contact .landing-contact-note {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.site-footer {
  grid-template-columns: minmax(280px, 1fr) 330px 300px;
  align-items: start;
  gap: 30px;
  padding: 36px max(70px, calc((100vw - 1300px) / 2));
  border: 0;
  background: var(--paper-deep);
  color: var(--ink);
}
.site-footer > p strong {
  font-size: 20px;
  line-height: 28px;
}
.site-footer .footer-links {
  display: grid;
  grid-row: auto;
  grid-column: auto;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.site-footer .footer-legal span {
  color: var(--muted);
  font-weight: 400;
}
.site-footer a {
  grid-row: auto;
  grid-column: auto;
  align-self: auto;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-header {
    padding-inline: 40px;
  }
  .site-nav.desktop-nav > a:not(.header-cta, .case-return) {
    display: none;
  }
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 40px;
  }
  .landing-hero-copy,
  .landing-hero-visual,
  .landing .machine-illustrations,
  .landing-promise {
    width: 100%;
  }
  .landing-trust-grid,
  .landing-category-grid,
  .landing-price-grid {
    grid-template-columns: 1fr;
  }
  .landing-trust-grid .landing-card,
  .landing-price-card {
    min-height: 0;
  }
  .site-footer {
    padding-inline: 40px;
  }
}

@media (max-width: 760px) {
  .landing {
    overflow-x: clip;
  }
  .site-header {
    min-height: 68px;
    padding: 24px;
  }
  .brand {
    font-size: 14px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 600;
  }
  .mobile-menu summary {
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 30;
    display: grid;
    width: min(300px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .mobile-menu nav a {
    padding: 12px;
    text-decoration: none;
  }
  .landing-inner {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-inline: 24px;
  }
  .landing-hero {
    padding: 24px 0;
  }
  .landing-hero-grid {
    display: block;
  }
  .landing-hero-copy,
  .landing-hero-visual,
  .landing .machine-illustrations,
  .landing-promise,
  .landing-card-grid,
  .landing-about-grid,
  .landing-contact-copy {
    min-width: 0;
    max-width: 100%;
  }
  .landing-hero-copy {
    gap: 18px;
  }
  .landing-kicker {
    font-size: 12px;
    line-height: 18px;
  }
  .landing-hero h1 {
    margin: 0;
    font-size: 40px;
    line-height: 48px;
  }
  .landing-lead {
    font-size: 16px;
    line-height: 26px;
  }
  .landing-cta {
    width: 100%;
  }
  .landing-price-note {
    font-size: 14px;
    line-height: 20px;
  }
  .landing-hero-visual {
    margin-top: 24px;
  }
  .landing .machine-illustrations {
    height: 125px;
    margin-bottom: 18px;
  }
  .landing .machine-illustrations img {
    height: 118px;
  }
  .landing-promise {
    padding: 18px;
  }
  .landing-section {
    padding: 32px 0;
  }
  .landing h2 {
    margin-top: 18px;
    font-size: 28px;
    line-height: 36px;
  }
  .landing-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-trust-grid .landing-card,
  .landing-process-grid .landing-card,
  .landing-process-grid .landing-card:nth-child(-n + 2) {
    min-height: 0;
  }
  .landing-card,
  .landing-category,
  .landing-price-card {
    padding: 18px;
  }
  .landing-category-grid,
  .landing-process-grid,
  .landing-price-grid {
    margin-top: 18px;
  }
  .landing-category {
    min-height: 0;
  }
  .landing-section-note {
    margin-top: 18px !important;
  }
  .landing-price-grid {
    gap: 10px;
  }
  .landing-price-card {
    min-height: 0;
  }
  .landing-decision-copy {
    margin: 32px 0;
  }
  .landing-decision-copy h3 {
    margin-bottom: 18px;
  }
  .landing-about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .landing-portrait {
    width: 100%;
  }
  .landing-about-copy h2 {
    margin-top: 0;
  }
  .landing-contact-copy {
    gap: 18px;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  .site-footer .footer-links {
    margin: 0;
  }
}
.case-list-card.tone-action {
  border: 2px solid var(--orange);
  box-shadow: 4px 4px 0 rgb(255 107 53 / 18%);
}
.case-list-card.tone-waiting {
  background: var(--paper-deep);
}
.case-list-card.tone-settled {
  border-color: var(--green);
}
.case-list-card > img,
.case-row > img {
  width: 64px;
  height: 68px;
  object-fit: contain;
}
.case-list-card h2 {
  font-size: 22px;
  margin: 2px 0 6px;
}
.case-list-card p {
  margin: 0 0 5px;
}
.case-list-card small,
.case-code {
  color: var(--muted);
  font-size: 12px;
}
.case-code {
  margin-bottom: 2px !important;
  font-weight: 700;
}
.case-list-state {
  display: grid;
  justify-items: end;
  gap: 12px;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}
.tone-action .case-list-state > span,
.case-row.tone-action .case-row-state {
  color: var(--orange-dark);
  font-weight: 850;
}
.case-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
.case-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.case-identity > img {
  width: 64px;
  height: 68px;
  object-fit: contain;
}
.case-identity h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}
.case-identity p,
.case-identity small {
  display: block;
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}
.case-status {
  max-width: 120px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}
.state-card,
.task-panel {
  margin: 0 0 20px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
}
.state-card h2,
.task-panel h2 {
  font-size: clamp(24px, 6vw, 31px);
  line-height: 1.1;
  margin: 7px 0 10px;
}
.state-tag {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
}
.state-detail {
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.state-facts {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.state-facts span,
.state-amount span,
.state-amount small,
.state-meta,
.task-panel > p:not(.state-tag):not(.appointment-value) {
  color: var(--muted);
}
.state-amount {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
.state-amount strong {
  font-size: 42px;
  letter-spacing: -0.055em;
  line-height: 1;
}
.state-amount small {
  font-size: 12px;
  line-height: 1.45;
}
.state-meta {
  font-size: 12px;
  margin: 16px 0 0;
}
.state-action-link {
  width: 100%;
  margin-top: 18px;
  justify-content: space-between;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  border-radius: 8px;
  box-shadow: none;
  text-decoration: none;
  font-weight: 800;
}
.state-action-link:focus-visible,
.button:focus-visible,
.photo-library:focus-visible {
  outline: 3px solid rgb(255 107 53 / 35%);
  outline-offset: 3px;
}
.state-action-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.state-action-link:hover::after {
  transform: translateX(2px);
}
.state-card.state-action {
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgb(255 107 53 / 22%);
}
.state-card.state-action .state-detail,
.state-card.state-action .state-facts span,
.state-card.state-action .state-amount span,
.state-card.state-action .state-amount small,
.state-card.state-action .state-meta {
  color: var(--muted);
}
.state-budget strong {
  font-size: clamp(28px, 5vw, 38px);
}
.state-card.state-action .state-tag {
  color: var(--orange-dark);
}
.state-card.state-waiting,
.waiting-panel {
  border-color: #8b979a;
  background: var(--paper-deep);
}
.state-card.state-agreement {
  border-color: var(--ink);
  background: var(--white);
}
.state-card.state-money {
  border-color: var(--orange);
}
.state-card.state-money .state-tag,
.state-card.state-money .state-amount strong {
  color: var(--orange-dark);
}
.state-card.state-settled,
.settled-section {
  border-color: var(--green);
}
.state-card.state-settled .state-tag,
.settled-section h2 {
  color: var(--green);
}
.state-card.state-error {
  border-color: var(--red);
}
.state-card.state-error .state-tag {
  color: var(--red);
}
.task-panel {
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgb(255 107 53 / 16%);
}
.appointment-value {
  padding: 14px 0;
  margin: 14px 0 12px;
  border-block: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 22px;
  font-weight: 800;
}
.counter-form {
  display: grid;
  gap: 0;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.counter-form .field {
  margin-bottom: 14px;
}
.repair-offer-card > h2 {
  max-width: 16ch;
}
.price-scenarios {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.price-scenario {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.price-scenario.primary {
  border: 2px solid var(--ink);
  background: var(--white);
}
.price-scenario.alternative {
  color: var(--muted);
}
.scenario-label {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.price-scenario .summary-row {
  padding: 9px 0;
}
.scenario-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.scenario-total strong {
  font-size: 24px;
  white-space: nowrap;
}
.result-actions {
  display: grid;
  gap: 10px;
  padding: 0;
}
.failure-form {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: #fff7f5;
}
.failure-form[hidden] {
  display: none;
}
.button.danger {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.case-section,
.message-section,
.secondary-section {
  box-shadow: none;
}
.secondary-section {
  background: var(--paper-deep);
}
.message-section h2,
.case-section h2,
.secondary-section h2 {
  font-size: 22px;
}
.photo-card {
  border-color: var(--orange);
  box-shadow: none;
}
.photo-card #case-photo-status {
  color: var(--ink);
  font-weight: 750;
}
.thumb-wrap .thumb {
  width: 118px;
  height: 118px;
}
.mechanic-page .admin-head,
.mechanic-detail .admin-head {
  border-bottom: 0;
}
.mechanic-page .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mechanic-page .metric {
  box-shadow: none;
}
.mechanic-page .case-list {
  gap: 12px;
}
.mechanic-page .case-row {
  grid-template-columns:
    64px minmax(130px, 0.75fr) minmax(180px, 1.6fr)
    auto 130px;
  min-height: 94px;
  border-radius: 14px;
  padding: 13px 16px;
}
.mechanic-page .case-row.tone-action {
  border: 2px solid var(--orange);
}
.mechanic-page .case-row.tone-waiting {
  background: var(--paper-deep);
}
.mechanic-page .case-row-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.mechanic-page .case-row-task {
  gap: 5px;
}
.mechanic-page .case-row-task > span {
  font-weight: 800;
}
.mechanic-page .case-row-task small,
.mechanic-page .case-row > small {
  color: var(--muted);
}

.legal-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}
.legal-page > h1 {
  max-width: 12ch;
  margin: 18px 0 28px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.legal-page .legal-lead {
  max-width: 760px;
  margin: 0 0 58px;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
}
.legal-page > section {
  max-width: 960px;
  margin: 0 0 48px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.legal-page h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}
.legal-page h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.legal-page p,
.legal-page li {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.legal-page li + li {
  margin-top: 10px;
}
.legal-page a:not(.button) {
  color: inherit;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-facts {
  margin: 0;
}
.legal-facts > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.legal-facts dt {
  color: var(--muted);
}
.legal-facts dd {
  margin: 0;
  font-weight: 750;
}
.legal-table {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.legal-row {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 1.1fr;
}
.legal-row + .legal-row {
  border-top: 1px solid var(--line);
}
.legal-row > * {
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.legal-row > * + * {
  border-left: 1px solid var(--line);
}
.legal-row-head {
  background: var(--ink);
  color: var(--white);
}
.legal-provider {
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.legal-provider p {
  margin: 0 0 10px;
  font-size: 15px;
}
.legal-short {
  max-width: 900px;
}

@media (max-width: 760px) {
  .legal-page {
    width: min(100% - 32px, 560px);
    padding: 42px 0 72px;
  }
  .legal-page > h1 {
    font-size: 48px;
  }
  .legal-page .legal-lead {
    margin-bottom: 42px;
    font-size: 19px;
  }
  .legal-page > section {
    margin-bottom: 38px;
  }
  .legal-page p,
  .legal-page li {
    font-size: 16px;
  }
  .legal-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .legal-row,
  .legal-row-head {
    grid-template-columns: 1fr;
  }
  .legal-row-head {
    display: none;
  }
  .legal-row > * {
    padding: 12px 16px;
  }
  .legal-row > * + * {
    border-left: 0;
  }
  .legal-row > span:first-child {
    padding-top: 18px;
    font-weight: 850;
  }
  .legal-row > span:last-child {
    padding-bottom: 18px;
    color: var(--muted);
  }
  .case-page {
    width: min(100% - 40px, 390px);
    padding-top: 20px;
    padding-bottom: 52px;
  }
  .case-page-head {
    display: grid;
    gap: 18px;
    align-items: start;
  }
  .case-page-head .button {
    width: 100%;
  }
  .case-list-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .case-list-card > img {
    width: 54px;
    height: 58px;
  }
  .case-list-state {
    grid-column: 2;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    text-align: left;
    gap: 8px;
  }
  .case-list-state small {
    text-align: right;
  }
  .case-top {
    margin-bottom: 14px;
  }
  .case-identity h1 {
    font-size: 25px;
  }
  .case-identity > img {
    width: 58px;
    height: 62px;
  }
  .case-status {
    font-size: 10px;
  }
  .state-card,
  .task-panel {
    padding: 16px;
    border-radius: 13px;
  }
  .state-card h2,
  .task-panel h2 {
    font-size: 25px;
  }
  .state-amount strong {
    font-size: 40px;
  }
  .mechanic-page .metric-grid {
    grid-template-columns: 1fr;
  }
  .mechanic-page .case-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
  }
  .mechanic-page .case-row > :nth-child(n + 3) {
    grid-column: 2;
  }
  .mechanic-page .case-row > img {
    width: 54px;
    height: 58px;
  }
}
