/* Спокойная, сдержанная подача: посетитель этого сайта, как правило, в беде.
   Никаких кричащих акцентов, анимаций и «продающих» приёмов — только читаемость
   и быстрый доступ к телефону. Системные шрифты, чтобы страница открывалась
   мгновенно на плохой мобильной связи. */

:root {
  --ink: #16181c;
  --ink-soft: #4a5058;
  --ink-faint: #767d87;
  --line: #e2e5ea;
  --paper: #fff;
  --paper-warm: #f7f6f3;
  --accent: #1e3a5f;      /* глубокий синий: сдержанно, без «юридического золота» */
  --accent-soft: #eef2f7;
  --alarm: #8c2f24;       /* приглушённый, не тревожный красный */
  --alarm-bg: #fdf4f2;
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 0 0 22px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* ── шапка ─────────────────────────────────────────────── */
.top {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; line-height: 1.3; }
.brand b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.brand span { font-size: 13px; color: var(--ink-faint); }
.tel {
  font-weight: 600; font-size: 16px; white-space: nowrap;
  text-decoration: none; padding: 9px 16px;
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.tel:hover { background: var(--accent); color: #fff; }

/* ── первый экран ──────────────────────────────────────── */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 26px; }

.creds { display: grid; gap: 10px; margin: 0 0 28px; padding: 18px 20px;
         background: var(--paper-warm); border-radius: var(--radius); }
.creds div { display: flex; gap: 10px; flex-wrap: wrap; }
.creds dt { font-size: 14px; color: var(--ink-faint); min-width: 168px; margin: 0; }
.creds dd { margin: 0; font-size: 15px; font-weight: 500; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent);
}
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #16293f; }

.portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.portrait.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-warm); border: 1px dashed var(--line);
  color: var(--ink-faint); font-size: 14px;
}

/* ── блок про задержание ───────────────────────────────── */
.urgent { padding: 48px 0; background: var(--alarm-bg); border-bottom: 1px solid var(--line); }
.urgent h2 { color: var(--alarm); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--alarm); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
}
.steps h3 { margin-bottom: 3px; }
.steps p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.urgent-cta { margin: 26px 0 0; font-size: 16px; }
.urgent-cta a { font-weight: 600; white-space: nowrap; }

/* ── об адвокате ───────────────────────────────────────── */
.about { padding: 48px 0; }
.about p { max-width: 62ch; }

/* ── направления ───────────────────────────────────────── */
.practice { padding: 48px 0; background: var(--paper-warm); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; display: block; }

/* ── порядок работы ────────────────────────────────────── */
.order { padding: 48px 0; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.order-list li { display: flex; gap: 16px; align-items: flex-start; }
.num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
}
.order-list p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ── вопросы ───────────────────────────────────────────── */
.faq { padding: 48px 0; background: var(--paper-warm); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 2px; color: var(--ink-soft); font-size: 15.5px; max-width: 64ch; }

/* ── контакты ──────────────────────────────────────────── */
.contacts { padding: 48px 0; }
.contact-list { display: grid; gap: 12px; margin: 0 0 26px; }
.contact-list div { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-list dt { font-size: 14px; color: var(--ink-faint); min-width: 168px; margin: 0; }
.contact-list dd { margin: 0; font-weight: 500; }
.note { font-size: 14.5px; color: var(--ink-soft); background: var(--paper-warm);
        padding: 16px 18px; border-radius: var(--radius); margin: 0; }

/* ── подвал ────────────────────────────────────────────── */
.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--ink-faint); }
.foot p { font-size: 14px; margin: 0 0 10px; }
.foot .small { font-size: 13px; line-height: 1.55; }

.todo { background: #fff2c2; color: #7a5c00; padding: 1px 6px; border-radius: 4px; font-size: .92em; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 200px; }
  .creds dt, .contact-list dt { min-width: 100%; margin-bottom: -6px; }
  .top-in { padding: 12px 20px; }
  .brand span { display: none; }
  .tel { padding: 8px 13px; font-size: 15px; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
}

@media print {
  .top, .cta, .skip { display: none; }
  body { font-size: 12pt; }
}
