:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --soft: #F1ECE2;
  --ink: #1C1B1A;
  --text: #4A4742;
  --muted: #6E6A63;
  --line: #E6E0D5;
  --accent: #E6A434;
  --accent-ink: #8A5A0E;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

.rule {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--accent);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo small { font-size: 13px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent-ink); }
.nav .nav-quiet { color: var(--muted); font-size: 14px; }

.lang {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #D8952A; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

.link-quiet {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Hero (client) */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy p.lead { margin-top: 28px; max-width: 30em; font-size: 19px; color: var(--text); }
.hero-copy .note { margin-top: 28px; font-size: 15px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 15% 80%;
  border-radius: 24px;
}

.picker {
  position: absolute;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(-40px, -3vw, -20px);
  width: min(360px, 88%);
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(40, 30, 10, 0.12);
}
.picker h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.picker-list { list-style: none; margin: 0 0 18px; padding: 0; }
.picker-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.picker-list button:hover { background: var(--soft); }
.picker-list button[aria-pressed="true"] { border-color: var(--accent); background: #FCF3E3; }
.picker-row { display: flex; gap: 10px; }
.picker-row .btn { flex: 1; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 16px; }
.card .arrow { margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-weight: 700; }
.card-soft { background: var(--soft); border-color: var(--soft); }

.icon { width: 32px; height: 32px; color: var(--accent); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  font-weight: 700;
}

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

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips span {
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
}

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* CTA band */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 24px;
  background: var(--soft);
}
.cta p { margin-top: 12px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer nav a { text-decoration: none; color: var(--text); }
.footer .pilot { width: 100%; font-size: 13px; color: var(--muted); }

/* Lawyer page */
.hero-lawyer .hero-grid { grid-template-columns: 0.9fr 1.1fr; }

.app {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(40, 30, 10, 0.08);
  font-size: 14px;
}
.app-side { padding: 22px 14px; border-right: 1px solid var(--line); }
.app-side img { height: 22px; margin: 0 8px 22px; }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.app-side li { padding: 8px 10px; border-radius: 8px; color: var(--text); }
.app-side li.on { background: #FCF3E3; color: var(--ink); font-weight: 700; }
.app-main { padding: 24px 26px; }
.app-main h3 { font-size: 17px; margin-bottom: 14px; }
.app-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ph { display: grid; gap: 6px; }
.ph i { display: block; height: 8px; border-radius: 4px; background: #ECE7DE; }
.ph i:first-child { width: 70%; }
.ph i:last-child { width: 45%; }
.topic { color: var(--ink); font-size: 13px; white-space: nowrap; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-new { background: #FCEBCB; color: #7A4E08; }
.status-contact { background: #E9F1E6; color: #2F5A2B; }

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 26px;
  font-size: 13px;
  text-align: center;
}
.stage { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.stage::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.stage:first-child::before { display: none; }
.stage.done::before, .stage.now::before { background: var(--accent); }
.dot { position: relative; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.stage.done .dot { border-color: var(--accent); background: var(--accent); }
.stage.now .dot { border-color: var(--accent); }
.stage.now { color: var(--ink); font-weight: 700; }
.next {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.next strong { color: var(--ink); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-row li { display: flex; gap: 16px; align-items: center; font-weight: 700; color: var(--ink); font-size: 18px; }

.pilot-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}
.pilot-note strong { color: var(--ink); }

.app-wide { max-width: 880px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid, .hero-lawyer .hero-grid { grid-template-columns: 1fr; }
  .picker { position: relative; z-index: 1; right: auto; bottom: auto; margin: -48px auto 0; width: calc(100% - 32px); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .steps-row { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .lang { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-row { grid-template-columns: 1fr auto; }
  .app-row .topic { grid-column: 1 / -1; order: 3; }
  .stages { font-size: 11px; }
}
