:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --brand: #0047d9;
  --qna: #8f2440;
  --accent: #18bde5;
  --shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #edf1f6;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: "Noto Kufi Arabic", Tahoma, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.proposal {
  width: min(1120px, calc(100% - 24px));
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.proposal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 26px clamp(22px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.logo-pair {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo-pair span {
  width: 1px;
  height: 54px;
  background: var(--line);
}

.brq-logo {
  width: 160px;
  display: block;
}

.qna-logo {
  width: 220px;
  display: block;
}

.language-toggle {
  position: absolute;
  inset-inline-end: clamp(22px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cover {
  padding: clamp(48px, 8vw, 88px) clamp(22px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(0, 71, 217, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lead {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.section {
  padding: clamp(38px, 6vw, 62px) clamp(22px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.summary,
.schedule {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.summary > p,
.schedule-copy p,
.cards p,
.timeline p,
.form-note {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.cards article,
.timeline article,
.schedule-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.cards article,
.timeline article {
  padding: 22px;
}

.cards span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--qna);
  font-weight: 800;
}

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

.timeline strong {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--brand);
}

.schedule {
  background: var(--soft);
}

.schedule-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.form-note {
  min-height: 28px;
  margin: 0;
  font-size: 0.95rem;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer img {
  width: 88px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer a {
  color: var(--brand);
  font-weight: 800;
}

body[dir="rtl"] .proposal,
body[dir="rtl"] input,
body[dir="rtl"] select {
  direction: rtl;
}

body[dir="rtl"] .logo-pair {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .summary,
  .schedule {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .proposal {
    width: min(100% - 16px, 1120px);
    margin: 8px auto;
  }

  .proposal-header,
  .logo-pair {
    align-items: center;
  }

  .proposal-header {
    padding-top: 70px;
  }

  .qna-logo {
    width: 150px;
  }

  .brq-logo {
    width: 112px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .button,
  .cover-actions {
    width: 100%;
  }
}
