:root {
  --ink: #132019;
  --muted: #5a645e;
  --line: #d9d1c3;
  --bg: #f3eee6;
  --card: #fffdf8;
  --acc: #1a4a36;
  --acc2: #b4531c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.55 Georgia, "Times New Roman", serif;
}
a { color: var(--acc); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.topbar {
  background: var(--acc);
  color: #f4efe6;
  font: 13px/1.4 system-ui, sans-serif;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.topbar a { color: #f4efe6; }
nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font: 14px/1.3 system-ui, sans-serif;
}
nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.logo { font-weight: 700; color: var(--acc); text-decoration: none; }
nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav ul a { text-decoration: none; color: var(--ink); }
h1 { font-size: clamp(1.55rem, 3.5vw, 2.05rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.hero { padding: 30px 0 8px; }
.lead { font-size: 1.1rem; }
.meta, .crumbs { font: 14px/1.45 system-ui, sans-serif; color: var(--muted); }
.box, .card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin: 1rem 0;
}
.warn { border-left: 4px solid var(--acc2); }
.ok { border-left: 4px solid var(--acc); }
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font: 14px/1 system-ui, sans-serif;
  margin: 8px 8px 0 0;
}
.btn.ghost {
  background: transparent;
  color: var(--acc);
  border: 1px solid var(--acc);
}
table { width: 100%; border-collapse: collapse; font: 15px/1.45 system-ui, sans-serif; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; vertical-align: top; }
footer {
  margin-top: 36px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font: 13px/1.5 system-ui, sans-serif;
  color: var(--muted);
}
form label { display: block; font: 14px/1.3 system-ui, sans-serif; margin: 10px 0 4px; }
form input, form select, form textarea {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font: 16px/1.4 system-ui, sans-serif;
}
.flash { background: #e7f0ea; border: 1px solid #b7cfc2; padding: 10px 12px; }
.citylist { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; list-style: none; }
/* --- Профиль юриста: фото рядом с именем --- */
.profile-photo {
  float: right;
  width: 200px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--card);
  margin: 0 0 12px 24px;
}
.profile-clear {
  clear: both;
}
.profile-box {
  max-width: 560px;
}

@media (max-width: 900px) {
  .profile-intro {
    display: flex;
    flex-direction: column;
  }
  .profile-intro h1 {
    order: 1;
  }
  .profile-intro .lead {
    order: 2;
  }
  .profile-photo {
    float: none;
    order: 3;
    width: 160px;
    margin: 16px auto 20px;
    align-self: center;
  }
}
/* --- Чекбокс согласия --- */
form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
}
form label.consent input[type="checkbox"] {
  width: auto;
  max-width: none;
  margin-top: 3px;
  flex: 0 0 auto;
}
form label.consent span {
  font: 14px/1.4 system-ui, sans-serif;
}
/* --- Карточки адвокатов на странице города --- */
@media (min-width: 720px) {
  .lawyers-grid { grid-template-columns: 1fr 1fr; }
}
.lawyer-card h3 {
  margin: 0 0 4px;
}
.lawyer-card .lawyer-status {
  margin: 0 0 12px;
}
.lawyer-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
  font: 14px/1.45 system-ui, sans-serif;
}
.lawyer-details dt {
  color: var(--muted);
  white-space: nowrap;
}
.lawyer-details dd {
  margin: 0;
}
.lawyer-card p:last-child {
  margin-bottom: 0;
}

/* --- Инлайн-CTA над списком адвокатов --- */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-inline p {
  margin: 4px 0 0;
}
.cta-inline .btn {
  margin: 0;
  flex: 0 0 auto;
}