* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

[lang="en"] body, html[lang="en"] body { line-height: 1.6; }

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding: 8px 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.wordmark { font-weight: 800; font-size: 20px; }
.navlinks { display: none; gap: 18px; margin-inline-start: auto; }
.navlinks a { text-decoration: none; color: var(--ink-2); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-link { text-decoration: none; color: var(--muted); font-size: 15px; }
.menu { margin-inline-start: auto; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: grid; }
.menu-list {
  display: none;
  position: absolute;
  inset-inline-end: 16px;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  gap: 4px;
  min-width: 180px;
  z-index: 5;
}
.menu-list a { padding: 8px 12px; text-decoration: none; color: var(--ink); }

@media (min-width: 720px) {
  .menu { display: none; }
  .navlinks { display: flex; }
}

/* hero */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.eyebrow { color: var(--brass); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
[lang="en"] .eyebrow { letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 18px; max-width: 62ch; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ledger-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--line) 39px, var(--line) 40px);
  background-repeat: no-repeat;
  background-position: 0 56px;
}
.ledger-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0 10px;
  margin: 0 0 12px;
  font-weight: 700;
}
.ledger-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-muted { background: var(--muted); }

.hero-text { min-width: 0; }

/* cards */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-label { color: var(--brass); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.card-question { font-size: 21px; line-height: 1.5; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.step { display: flex; gap: 16px; padding: 0 0 24px 0; position: relative; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-inline-start: -19px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; }

/* case, points, prices */
.case { border: 1px solid var(--line); border-inline-start: 4px solid var(--brass); border-radius: var(--radius); padding: 24px; background: var(--card); }
.note { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.split { display: grid; gap: 32px; }
.points { padding-inline-start: 1.2em; margin: 0; }
.points li { margin-bottom: 8px; }
.prices { margin: 0; display: grid; gap: 14px; }
.prices dt { font-weight: 800; color: var(--ink); }
.prices dd { margin: 0; }

/* mock ledger on the landing (design sample) */
.mock-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-name { font-weight: 700; margin: 0 0 6px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mock { background-image: none; }

.about p:last-child { margin-bottom: 0; }

/* request form */
.request-grid { display: grid; gap: 28px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .form legend { font-weight: 700; color: var(--ink); }
input[type="text"], input[type="date"], input[type="password"], input[type="file"], select, textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: 3px solid var(--brass-soft); outline-offset: 0; }
.segmented { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.seg { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.seg input:checked + span { border-color: var(--brass); background: var(--brass-soft); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.thanks { background: var(--ok-soft); border: 1px solid var(--ok); border-radius: var(--radius); padding: 22px; }
.thanks h3 { color: var(--ok); }

.about, .section.wrap:not(.hero) { min-width: 0; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 72px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .request-grid { grid-template-columns: 1fr 1.4fr; }
  .form .field-grid { grid-template-columns: 1fr 1fr; }
}
