/* Vashe Delo — стили по макету «Борд со всеми экранами сервиса». */

:root {
  --paper: #FFFFFF;
  --paper-soft: #F7F6F2;
  --paper-warm: #FBFAF6;
  --canvas: #EDECE7;

  --ink: #1A1A1A;
  --ink-2: #3D3D38;
  --ink-3: #55534C;
  --muted: #6E6C64;
  --muted-2: #8A8880;
  --faint: #9C9A92;
  --faint-2: #A9A79F;

  --gold: #C9A961;
  --gold-deep: #B8964F;
  --gold-text: #8A6F2E;

  --line: #E2E0D9;
  --line-2: #EAE8E1;
  --line-3: #D8D6CE;
  --rule: rgba(201, 169, 97, 0.35);
  --rule-strong: rgba(201, 169, 97, 0.5);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 72px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); }
::placeholder { color: var(--faint); }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ------------------------------------------------------------------ типографика */

.eyebrow {
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--mute { color: var(--muted-2); letter-spacing: .18em; }

.serif { font-family: var(--serif); }
.lead { font-size: 19px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
.note { font-size: 13px; color: var(--faint); }
.meta { font-size: 14px; color: var(--muted); }
.rub { font-family: var(--serif); white-space: nowrap; }

/* ------------------------------------------------------------------ каркас */

.wrap { max-width: 1440px; margin: 0 auto; }
.section { padding: 88px var(--pad-x); }
.section--soft { background: var(--paper-soft); }
.section--tight { padding-top: 0; }

.site-header {
  min-height: 88px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.brand { display: flex; flex-direction: column; gap: 5px; }
.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__sub {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-nav { display: flex; align-items: center; gap: 38px; font-size: 15px; }
.site-nav a { color: var(--ink-2); }
.site-nav a.is-active { border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

.header-actions { display: flex; align-items: center; gap: 24px; font-size: 14px; }

.nav-toggle { display: none; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 44px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted-2);
}
.site-footer__links { display: flex; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: var(--muted-2); }

.breadcrumbs { font-size: 13px; color: var(--faint); padding: 40px var(--pad-x) 0; }
.breadcrumbs .sep { color: var(--gold); }

/* ------------------------------------------------------------------ кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .02em;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  text-align: center;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--gold { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--gold:hover { background: var(--paper-warm); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--quiet { border-color: var(--line); color: var(--ink-3); background: transparent; }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ формы */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > label { font-size: 14px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.search-row {
  display: flex;
  max-width: 760px;
  border: 1px solid #DEDCD4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.search-row input { border: 0; padding: 20px 22px; border-radius: 0; }
.search-row input:focus { outline: none; }
.search-row button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 38px;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
}

.checkline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.checkline input[type="checkbox"] { width: auto; accent-color: var(--gold); }

.box {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px;
  background: #fff;
}
.box--accent { border-top: 2px solid var(--gold); }

.alert {
  border: 1px solid var(--gold);
  background: var(--paper-warm);
  border-radius: 3px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--gold-text);
  margin-bottom: 20px;
}
.alert--danger { border-color: #C2564B; background: #FDF4F3; color: #8C3A32; }

/* ------------------------------------------------------------------ бейджи */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 169, 97, .6);
  background: var(--paper-warm);
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold-text);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); }
.badge--muted { border-color: var(--line); background: #fff; color: var(--muted); }

.chip {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-3);
  display: inline-block;
}
.chip.is-on { border-color: var(--gold); color: var(--ink); }

.tick {
  width: 16px; height: 16px; flex: none;
  border: 1px solid var(--line-3);
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
}
.tick.is-on { border-color: var(--gold); background: var(--gold); color: #fff; }

.star { color: var(--gold); }

/* ------------------------------------------------------------------ главная */

.hero {
  padding: 104px var(--pad-x) 72px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.hero h1 {
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero .lead { max-width: 620px; margin: 0 0 40px; }

.stats { border-top: 1px solid var(--rule); padding-top: 26px; }
.stats__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.stats__row span:first-child { font-size: 15px; color: var(--ink-3); }
.stats__row span:last-child { font-family: var(--serif); font-size: 26px; }

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.task-grid__cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  background: #fff;
  color: var(--ink);
}
.task-grid__cell:hover { background: var(--paper-warm); color: var(--ink); }
.task-grid__cell b { font-weight: 400; font-size: 17px; line-height: 1.45; }
.task-grid__cell span { font-size: 13px; color: var(--muted-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.split h2 { font-size: 42px; line-height: 1.2; margin: 0 0 24px; }

.numbered { display: flex; flex-direction: column; }
.numbered__item {
  border-top: 1px solid rgba(201, 169, 97, .4);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 20px;
}
.numbered__item:last-child { border-bottom: 1px solid rgba(201, 169, 97, .4); }
.numbered__num { font-family: var(--serif); font-size: 16px; color: var(--gold-deep); }
.numbered__title { font-size: 17px; margin-bottom: 8px; }
.numbered__text { font-size: 15px; line-height: 1.7; color: var(--muted); }

.audience { display: grid; grid-template-columns: 1fr 1fr; }
.audience__col:first-child { padding-right: 72px; }
.audience__col:last-child { padding-left: 72px; border-left: 1px solid var(--rule-strong); }
.audience h3 { font-size: 36px; line-height: 1.25; margin: 0 0 20px; }

.list-rules { display: flex; flex-direction: column; }
.list-rules > * {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  font-size: 16px;
  color: var(--ink-2);
}
.list-rules > *:last-child { border-bottom: 1px solid var(--rule); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.steps__item { border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.steps__num { font-family: var(--serif); font-size: 26px; color: var(--gold-deep); margin-bottom: 16px; }
.steps__title { font-size: 19px; margin-bottom: 12px; }
.steps__text { font-size: 15px; line-height: 1.75; color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.trust__item { border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.trust__title { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }
.trust__text { font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ------------------------------------------------------------------ каталог */

.page-head {
  padding: 44px var(--pad-x) 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 44px; margin: 0 0 10px; }

.catalog {
  padding: 24px var(--pad-x) 88px;
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: 64px;
  align-items: start;
}
.filters { display: flex; flex-direction: column; gap: 34px; position: sticky; top: 24px; }
.filters__title {
  font: 500 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.filters__body { padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.filters__count { font-size: 13px; color: var(--faint-2); }
.filters__row { display: flex; gap: 10px; padding-top: 20px; }
.filters__row input { padding: 10px 12px; font-size: 14px; }

.lawyer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.lawyer-card {
  border: 1px solid #E7E5DE;
  border-radius: 3px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
}
.lawyer-card__top { display: flex; gap: 20px; }
.lawyer-card__name { font-family: var(--serif); font-size: 23px; color: var(--ink); }
.lawyer-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.lawyer-card__foot {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.avatar {
  width: 88px; height: 88px; flex: none;
  border-radius: 4px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold-deep);
  overflow: hidden;
}
.avatar--lg { width: 168px; height: 200px; font-size: 44px; }
.avatar--sm { width: 60px; height: 60px; border-radius: 50%; font-size: 20px; }

/* ------------------------------------------------------------------ карточка юриста */

.profile {
  padding: 32px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 72px;
  align-items: start;
}
.profile__head {
  display: flex;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(201, 169, 97, .4);
}
.profile__head h1 { font-size: 48px; margin: 0 0 12px; line-height: 1.1; }
.profile__facts {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink-2);
}
.profile__facts .divider { width: 1px; height: 14px; background: rgba(201, 169, 97, .6); }

.verified {
  margin-top: 26px;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.verified__mark {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.profile__block { padding: 36px 0; border-bottom: 1px solid rgba(201, 169, 97, .4); }
.profile__block:last-child { border-bottom: 0; }
.profile__block h2 { font-size: 30px; }

.tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.case-row {
  border-top: 1px solid var(--line-2);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: start;
}
.case-row__result { text-align: right; }
.case-row__result b { font-family: var(--serif); font-size: 18px; font-weight: 400; }

.price-row {
  border-top: 1px solid rgba(201, 169, 97, .3);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr 190px 140px;
  gap: 24px;
  align-items: center;
}
.price-row__name { font-size: 17px; line-height: 1.5; }
.price-row__price { font-family: var(--serif); font-size: 20px; text-align: right; }
.price-row__action { text-align: right; }
.price-toggle {
  border-top: 1px solid rgba(201, 169, 97, .3);
  padding-top: 22px;
  font-size: 15px;
  display: inline-block;
}

.review { border-top: 1px solid var(--line-2); padding: 24px 0; }
.review__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.review__text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 760px; }

.aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.aside__price { font-family: var(--serif); font-size: 38px; margin-bottom: 6px; }
.aside__list { margin-top: 26px; display: flex; flex-direction: column; }
.aside__list > * {
  border-top: 1px solid rgba(201, 169, 97, .3);
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ------------------------------------------------------------------ подписание */

.secure-bar {
  min-height: 80px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.secure-bar__lock { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

.progress {
  padding: 32px var(--pad-x);
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.progress__step { display: flex; align-items: center; gap: 14px; padding: 0 34px; }
.progress__step:first-child { padding-left: 0; }
.progress__step:last-child { padding-right: 0; }
.progress__num {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  color: var(--faint-2);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.progress__step.is-done .progress__num { background: var(--gold); border-color: var(--gold); color: #fff; }
.progress__step.is-current .progress__num { border-color: var(--ink); color: var(--ink); }
.progress__label { font-size: 14px; color: var(--faint-2); }
.progress__step.is-done .progress__label { color: var(--muted-2); }
.progress__step.is-current .progress__label { color: var(--ink); }
.progress__line { flex: 1; height: 1px; background: var(--line-2); min-width: 24px; }
.progress__line.is-done { background: var(--rule-strong); }

.signing {
  padding: 56px var(--pad-x) 88px;
  display: grid;
  grid-template-columns: 1fr 356px;
  gap: 72px;
  align-items: start;
}
.signing h1 { font-size: 42px; margin: 0 0 16px; line-height: 1.2; }

.option {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 18px;
  align-items: start;
  cursor: pointer;
}
.option.is-on { border-color: var(--gold); background: var(--paper-warm); }
.option input[type="radio"] { width: auto; margin-top: 3px; accent-color: var(--gold); }
.option__title { font-size: 17px; margin-bottom: 8px; }
.option__text { font-size: 14px; line-height: 1.7; color: var(--muted); }
.option__when { font-size: 14px; color: var(--muted-2); white-space: nowrap; }

.contract__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.contract__lines { padding: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.contract__lines i { height: 1px; background: #F0EEE8; display: block; }
.contract__foot {
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.security-list { display: flex; flex-direction: column; }
.security-list > * {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.security-list > *:last-child { border-bottom: 1px solid var(--rule); }

/* ------------------------------------------------------------------ статус дела */

.case-head {
  padding: 44px var(--pad-x) 32px;
  border-bottom: 1px solid rgba(201, 169, 97, .4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.case-head h1 { font-size: 42px; margin: 0 0 16px; line-height: 1.2; }

.case-body {
  padding: 48px var(--pad-x) 88px;
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 72px;
  align-items: start;
}

.timeline__item { display: grid; grid-template-columns: 26px 1fr; gap: 26px; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 5px;
  border: 1px solid var(--line-3);
}
.timeline__dot.is-done { background: var(--gold); border-color: var(--gold); }
.timeline__dot.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .18);
}
.timeline__line { flex: 1; width: 1px; background: rgba(201, 169, 97, .4); margin: 8px 0; min-height: 36px; }
.timeline__body { padding-bottom: 34px; }
.timeline__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.timeline__title { font-size: 18px; }
.timeline__state { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.timeline__text { font-size: 15px; line-height: 1.75; color: var(--muted); margin-top: 10px; max-width: 600px; }

.doc-row {
  border-top: 1px solid rgba(201, 169, 97, .3);
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pay-row span:last-child { font-family: var(--serif); font-size: 22px; }

/* ------------------------------------------------------------------ утилиты */

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.grow { flex: 1; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.narrow { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.hint { font-size: 13px; color: var(--faint); line-height: 1.7; }

.auth { padding: 80px var(--pad-x) 120px; }
.auth h1 { font-size: 38px; margin-bottom: 12px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.table th {
  font: 500 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1180px) {
  :root { --pad-x: 40px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .hero h1 { font-size: 48px; }
  .profile, .signing, .case-body, .catalog { grid-template-columns: 1fr; gap: 40px; }
  .aside, .filters { position: static; }
  .split { gap: 48px; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 22px; }

  .site-header { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; min-height: 0; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px 0;
  }
  .nav-toggle i { width: 20px; height: 1px; background: var(--ink); display: block; }
  .site-nav, .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 4px;
  }
  .site-nav.is-open, .header-actions.is-open { display: flex; }

  .section { padding: 48px var(--pad-x); }
  .hero { padding: 34px var(--pad-x) 26px; }
  .hero h1 { font-size: 34px; line-height: 1.15; }
  .hero .lead { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
  .search-row { flex-direction: column; border: 0; }
  .search-row input { border: 1px solid #DEDCD4; border-radius: 3px; padding: 16px 18px; }
  .search-row button { padding: 18px; border-radius: 3px; margin-top: 12px; }

  .task-grid { grid-template-columns: 1fr; border-left: 0; border-top: 0; }
  .task-grid__cell {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 169, 97, .32);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 18px 0;
  }
  .task-grid__cell b { font-size: 16px; }

  .split, .audience { grid-template-columns: 1fr; gap: 32px; }
  .audience__col:first-child { padding-right: 0; }
  .audience__col:last-child {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
    padding-top: 32px;
  }
  .split h2, .audience h3 { font-size: 26px; line-height: 1.3; }

  .steps, .trust { grid-template-columns: 1fr; gap: 0; }
  .steps__item, .trust__item { border-top: 1px solid var(--rule); padding: 16px 0; }

  .page-head { padding: 26px var(--pad-x) 18px; }
  .page-head h1 { font-size: 30px; }
  .lawyer-grid { grid-template-columns: 1fr; }

  .profile { padding: 26px var(--pad-x) 40px; }
  .profile__head { flex-direction: row; gap: 18px; }
  .profile__head h1 { font-size: 32px; }
  /* факты встают в столбик — вертикальные разделители между ними теряют смысл */
  .profile__facts { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile__facts .divider { display: none; }
  .avatar--lg { width: 84px; height: 100px; font-size: 28px; }
  .profile__block h2 { font-size: 24px; }

  .price-row { grid-template-columns: 1fr auto; gap: 12px; }
  .price-row__price { text-align: left; grid-column: 1; font-size: 18px; }
  .price-row__action { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

  .case-row { grid-template-columns: 1fr; gap: 10px; }
  .case-row__result { text-align: left; }

  .progress { padding: 18px var(--pad-x); gap: 12px; }
  .progress__step { padding: 0; }
  .progress__line { display: none; }
  .signing { padding: 32px var(--pad-x) 48px; }
  .signing h1 { font-size: 28px; }
  .contract__foot { flex-direction: column; align-items: stretch; }
  .contract__foot .row { justify-content: stretch; }
  .contract__foot .btn { width: 100%; }

  .case-head, .case-body { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .case-head h1 { font-size: 28px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .auth { padding: 40px var(--pad-x) 64px; }
}

/* ------------------------------------------------------------------ баланс и счета */

.balance {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  padding: 30px;
  background: var(--paper-warm);
}
.balance__value { font-family: var(--serif); font-size: 44px; line-height: 1.1; margin: 8px 0 4px; }
.balance__grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }

.amount-pos { color: #3F7A4B; }
.amount-neg { color: #8C3A32; }

.invoice {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.invoice.is-paid { background: var(--paper-soft); }
.invoice__title { font-size: 17px; margin-bottom: 6px; }
.invoice__amount { font-family: var(--serif); font-size: 24px; text-align: right; }

/* ------------------------------------------------------------------ переписка */

.chat { border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.chat__log {
  max-height: 480px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat__empty { color: var(--faint); font-size: 15px; }

.msg { max-width: 78%; display: flex; flex-direction: column; gap: 6px; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg__meta { font-size: 12px; color: var(--faint); }
.msg__body {
  padding: 14px 16px;
  border-radius: 3px;
  background: var(--paper-soft);
  border: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg--mine .msg__body { background: var(--ink); border-color: var(--ink); color: #fff; }

.chat__form {
  border-top: 1px solid var(--line-2);
  padding: 18px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.chat__form textarea { min-height: 64px; }

/* ------------------------------------------------------------------ админка */

.admin-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.admin-tile { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.admin-tile__value { font-family: var(--serif); font-size: 34px; margin-bottom: 6px; }
.admin-tile__label { font-size: 14px; color: var(--muted); }

.status-ok { color: #3F7A4B; }
.status-bad { color: #8C3A32; }

.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input[type="text"] { width: 130px; padding: 10px 12px; font-size: 14px; }

@media (max-width: 1180px) {
  .admin-tiles { grid-template-columns: repeat(2, 1fr); }
  .balance__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .admin-tiles { grid-template-columns: 1fr; gap: 0; }
  .admin-tile { border-top: 1px solid var(--rule); padding: 16px 0; }
  .msg { max-width: 92%; }
  .chat__log, .chat__form { padding: 16px; }
  .chat__form { flex-direction: column; align-items: stretch; }
  .invoice { grid-template-columns: 1fr; }
  .invoice__amount { text-align: left; }
}

/* ------------------------------------------------------------------ редактор профиля */

img.avatar { object-fit: cover; }

.photo-preview { display: flex; justify-content: center; }
.photo-preview img.avatar { width: 168px; height: 200px; }

.profile-editor {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.add-block {
  border-top: 1px solid var(--rule-strong);
  padding-top: 26px;
}

.price-editor {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 16px;
  align-items: start;
  border-top: 1px solid rgba(201, 169, 97, .3);
  padding: 18px 0;
}
.price-editor.is-off { opacity: .55; }
.price-editor__main { display: flex; flex-direction: column; gap: 8px; }
.price-editor__main input:last-child { font-size: 14px; color: var(--muted); }
.price-editor__price { display: flex; flex-direction: column; gap: 6px; }
.price-editor__price input { text-align: right; font-family: var(--serif); }
.price-editor__actions { display: flex; flex-direction: column; gap: 8px; }
.price-editor__meta { grid-column: 1 / -1; }

input[type="file"] {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  width: 100%;
}
input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  border-radius: 3px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .profile-editor { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .editor-grid { grid-template-columns: 1fr; }
  .price-editor { grid-template-columns: 1fr; gap: 12px; }
  .price-editor__price input { text-align: left; }
  .price-editor__actions { flex-direction: row; }
  .photo-preview img.avatar { width: 140px; height: 168px; }
}

/* ------------------------------------------------------------------ недельная сетка */

.week-wrap { overflow-x: auto; }

.week { border-collapse: collapse; font-size: 12px; }
.week th {
  font-weight: 400;
  color: var(--faint);
  padding: 0 0 8px;
  text-align: center;
  min-width: 26px;
}
.week th.week__day {
  text-align: left;
  padding-right: 12px;
  color: var(--ink-2);
  font-size: 14px;
  min-width: 34px;
}
.week td { padding: 2px; }

.slot { display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.slot span {
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  transition: background .1s ease, border-color .1s ease;
}
.slot:hover span { border-color: var(--gold); }
.slot input:checked + span { background: var(--gold); border-color: var(--gold-deep); }
.slot input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 1px; }

.schedule-public { display: flex; flex-direction: column; gap: 8px; }
.schedule-public__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.schedule-public__row span:first-child { color: var(--muted-2); }

@media (max-width: 860px) {
  .slot span { width: 22px; height: 22px; }
  .week { font-size: 11px; }
}

/* ------------------------------------------------------------------ преимущества */

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; }

.why-card { border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.why-card__num { font-family: var(--serif); font-size: 26px; color: var(--gold-deep); margin-bottom: 14px; }
.why-card__title { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.why-card__text { font-size: 16px; line-height: 1.75; color: var(--ink-3); }
.why-card__vs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--faint);
}

.why-foot { margin-top: 56px; border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.why-foot__title {
  font: 500 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.why-foot__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 15px; }
.why-foot__flow span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 10px 16px;
  color: var(--ink-2);
}
.why-foot__flow span.is-hold { border-color: var(--gold); background: var(--paper-warm); color: var(--gold-text); }
.why-foot__flow span.is-done { border-color: #3F7A4B; color: #3F7A4B; }
.why-foot__flow i { color: var(--gold); font-style: normal; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .why-card { border-top: 1px solid var(--rule); padding: 20px 0; }
  .why-card__title { font-size: 20px; }
  .why-foot__flow { flex-direction: column; align-items: stretch; }
  .why-foot__flow i { display: none; }
}
