:root {
  --green-950: #0c2b24;
  --green-900: #12382f;
  --green-800: #184a3e;
  --green-100: #e8f1ed;
  --cream-100: #fffaf0;
  --cream-200: #f7efe0;
  --sand-200: #ead8bd;
  --sand-500: #b9894b;
  --copper: #d6a862;
  --copper-dark: #9b6a33;
  --ink: #25231f;
  --muted: #6f665b;
  --line: #e5d7c0;
  --white: #ffffff;
  --danger: #b94444;
  --warning: #a87418;
  --success: #2c7a58;
  --info: #356c82;
  --shadow: 0 18px 42px rgba(21, 44, 37, 0.12);
  --radius: 8px;
  --font: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.8;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.proposal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.cover {
  min-height: 92vh;
  display: grid;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(12, 43, 36, 0.95), rgba(24, 74, 62, 0.92)),
    radial-gradient(circle at 20% 25%, rgba(214, 168, 98, 0.34), transparent 34%);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(214, 168, 98, 0.34);
  pointer-events: none;
}

.cover::after {
  inset: 34px;
  border-color: rgba(255, 250, 240, 0.18);
}

.cover-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 46px;
  padding: clamp(24px, 5vw, 58px);
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.logo-box {
  min-height: 96px;
  border: 1px dashed rgba(255, 250, 240, 0.48);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: grid;
  gap: 2px;
  text-align: center;
}

.brand-lockup strong {
  color: var(--white);
  font-size: 32px;
  line-height: 1.2;
}

.brand-lockup span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
}

.brand-lockup.client strong {
  font-size: 24px;
}

.cover-main {
  display: grid;
  align-content: center;
  gap: 24px;
}

.eyebrow {
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.18;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.meta-item {
  border: 1px solid rgba(214, 168, 98, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.08);
}

.meta-item span {
  display: block;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
}

.meta-item strong {
  display: block;
  font-size: 17px;
  margin-top: 4px;
}

.section {
  margin-top: 22px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(33, 28, 22, 0.05);
  break-inside: avoid;
  page-break-inside: avoid;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--copper-dark);
  font-size: 13px;
  font-weight: 700;
}

h2 {
  color: var(--green-900);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  margin-bottom: 0;
}

h3 {
  color: var(--green-900);
  font-size: 20px;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 900px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
  break-inside: avoid;
  page-break-inside: avoid;
}

.challenge-card {
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--copper);
}

.icon-dot {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  margin-bottom: 10px;
  font-weight: 700;
}

.workflow-diagram,
.architecture-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-100);
  padding: 20px;
  break-inside: avoid;
}

.workflow-diagram {
  display: grid;
  gap: 18px;
}

.flow-lane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 28px;
}

.flow-lane span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-900);
  font-weight: 700;
  text-align: center;
}

.flow-lane span:not(:last-child)::after {
  content: "←";
  position: absolute;
  inset-inline-end: calc(100% + 7px);
  color: var(--green-900);
  font-size: 20px;
}

.architecture-map {
  display: grid;
  gap: 16px;
}

.architecture-core {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(420px, 100%);
  margin-inline: auto;
  padding: 22px;
  border-radius: 8px;
  background: var(--green-900);
  color: var(--white);
}

.architecture-core strong {
  font-size: 24px;
}

.architecture-core span {
  color: rgba(255, 250, 240, 0.76);
}

.architecture-apps,
.architecture-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.architecture-apps span,
.architecture-custom span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-900);
  font-weight: 700;
  text-align: center;
}

.architecture-custom span {
  border-color: var(--green-800);
  background: var(--green-100);
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th {
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.standard {
  background: #e8f1ed;
  color: var(--green-900);
}

.badge.config {
  background: #fff1d5;
  color: #775117;
}

.badge.custom {
  background: #f4e5cd;
  color: #7a4a16;
}

.badge.danger {
  background: #fae4e2;
  color: var(--danger);
}

.badge.success {
  background: #e6f3eb;
  color: var(--success);
}

.badge.warning {
  background: #fff1d5;
  color: var(--warning);
}

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

.module-name {
  direction: ltr;
  text-align: left;
  color: var(--green-900);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mockup-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.mockup-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-100);
  padding: 12px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.mockup-frame h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.mockup-preview {
  width: 100%;
  height: 980px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: block;
  overflow: hidden;
}

.mockup-preview.mobile-shot {
  width: min(430px, 100%);
  height: 920px;
  margin-inline: auto;
}

.timeline {
  display: grid;
  gap: 12px;
  counter-reset: phase;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdf8;
  break-inside: avoid;
}

.timeline-item::before {
  counter-increment: phase;
  content: counter(phase);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-900);
  font-weight: 700;
}

.acceptance-list {
  columns: 2;
  column-gap: 34px;
  padding: 0;
  list-style: none;
}

.acceptance-list li,
.plain-list li {
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.plain-list {
  padding: 0;
  list-style: none;
}

.note {
  border-inline-start: 5px solid var(--copper);
  background: var(--cream-100);
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--muted);
}

/* Mockup pages */
.mockup-page {
  background: #eef2ef;
  min-height: 100vh;
  padding: 28px;
}

.mockup-canvas {
  width: min(1440px, 100%);
  min-height: 900px;
  margin: 0 auto;
  background: #fbfaf6;
  border: 1px solid #d9ddda;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-canvas.mobile {
  width: 390px;
  min-height: 844px;
  border-radius: 30px;
  border: 10px solid #1c1f1d;
}

.mockup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--green-900);
  color: var(--white);
}

.mockup-title {
  display: grid;
  gap: 2px;
}

.mockup-title strong {
  font-size: 22px;
}

.mockup-title span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
}

.concept-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 168, 98, 0.62);
  background: rgba(255, 250, 240, 0.12);
  color: #ffe2ac;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.mockup-body {
  padding: 22px;
}

.toolbar,
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.segmented,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented span,
.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 700;
}

.segmented .active,
.button.primary {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.button.copper {
  background: var(--copper);
  color: #24170b;
  border-color: var(--copper);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  color: var(--green-900);
  font-size: 24px;
  line-height: 1.2;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-table {
  min-width: 0;
  font-size: 13px;
}

.mini-table th {
  background: #f1eadc;
  color: var(--green-900);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status.new {
  background: #e7eff7;
  color: var(--info);
}

.status.ready {
  background: #e7f4ec;
  color: var(--success);
}

.status.progress {
  background: #fff1d5;
  color: var(--warning);
}

.status.late {
  background: #fae4e2;
  color: var(--danger);
}

.status.done {
  background: var(--green-900);
  color: var(--white);
}

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

.field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.field strong {
  display: block;
  color: var(--green-900);
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--green-900);
  font-weight: 700;
  font-size: 12px;
}

.tab.active {
  background: var(--green-900);
  color: var(--white);
}

.smart-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.smart-button {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.smart-button strong {
  display: block;
  color: var(--green-900);
  font-size: 20px;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kanban-col {
  background: #f4efe6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 660px;
}

.kanban-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.task-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.task-card .code {
  direction: ltr;
  text-align: left;
  color: var(--copper-dark);
  font-weight: 700;
}

.task-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 8px 0;
  font-size: 11px;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-row .button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  height: 190px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.bar {
  background: linear-gradient(180deg, var(--copper), var(--green-900));
  border-radius: 6px 6px 0 0;
  min-height: 24px;
}

.mobile .mockup-topbar {
  padding: 16px;
  border-radius: 18px 18px 0 0;
}

.mobile .mockup-title strong {
  font-size: 18px;
}

.mobile .mockup-body {
  padding: 14px;
}

.mobile .kpi-row,
.mobile .form-grid {
  grid-template-columns: 1fr 1fr;
}

.mobile .toolbar,
.mobile .filters {
  display: grid;
}

.mobile .panel {
  padding: 12px;
}

.mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .proposal-shell {
    width: min(100% - 20px, 760px);
  }

  .brand-row,
  .cover-meta,
  .grid.two,
  .grid.three,
  .grid.four,
  .modules,
  .mockup-gallery,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px;
  }

  .section-header {
    display: grid;
  }

  .acceptance-list {
    columns: 1;
  }

  .kpi-row,
  .form-grid,
  .kanban-grid,
  .smart-buttons {
    grid-template-columns: 1fr;
  }

  .mockup-page {
    padding: 10px;
  }

  .mockup-canvas {
    min-height: auto;
  }
}
