/* ============================================================
   Банкротство физлиц, Челябинск. Личная страница эксперта.
   Стиль по образцу tvoydom-vmoskwe.ru: спокойно, одна колонка,
   по-человечески, без рекламной мишуры.
   Mobile-first. Проверено: 390px и 1280px.
   ============================================================ */

:root{
  --ink:#20201d;        /* основной текст */
  --muted:#6f6b60;      /* вторичный текст */
  --paper:#f7f4ee;      /* тёплый фон карточек/подвала */
  --line:#e7e1d4;       /* границы */
  --accent:#14684b;     /* спокойный тёмно-зелёный, акцент скупо */
  --accent-2:#0f543b;
  --danger:#b3372b;
  --ph-bg:#fbf0d2;      /* подсветка видимых плейсхолдеров [запросить...] */
  --ph-ink:#7a6226;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font:17px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--accent-2)}

.wrap{max-width:720px;margin:0 auto;padding:0 20px}
main.page{padding:44px 0 24px}

/* ---------- Типографика ---------- */
h1{
  font-size:clamp(27px,5.6vw,39px);
  line-height:1.24;
  letter-spacing:-.015em;
  margin:0 0 8px;
  font-weight:700;
}
h2{
  font-size:clamp(22px,3.8vw,28px);
  line-height:1.32;
  margin:54px 0 16px;
  font-weight:700;
}
p{margin:0 0 16px}
ul,ol{margin:0 0 20px;padding-left:22px}
li{margin:0 0 10px}
strong,b{font-weight:600}

/* ---------- Шапка страницы 1 (hero) ---------- */
.hero{text-align:center}
.author{
  display:flex;flex-direction:column;align-items:center;
  gap:12px;margin:22px 0 6px;
}
.author-photo{margin:0;width:100%}
.author-photo img{
  width:100%;
  height:auto;
  max-width:680px;
  margin:0 auto;
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 1px 2px rgba(32,32,29,.08);
}
.author-name{margin:0;font-weight:600;font-size:18px}
.author-note{margin:0;color:var(--muted);font-size:14.5px}
.lead{font-size:18.5px;line-height:1.6;margin:20px 0 0;text-align:left}

/* ---------- Кейсы ---------- */
ul.cases{list-style:none;padding:0;margin:0 0 6px}
ul.cases li{
  border-left:3px solid var(--line);
  padding:0 0 2px 18px;
  margin:0 0 18px;
}
ul.cases b{display:block;margin-bottom:2px}

/* ---------- Тарифы ---------- */
.prices{display:grid;grid-template-columns:1fr;gap:16px;margin:24px 0 8px}
.price-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px 22px 18px;
}
.price-card h3{margin:0 0 2px;font-size:20px;line-height:1.3}
.price{font-size:31px;font-weight:700;margin:0 0 2px;letter-spacing:-.01em}
.price-sub{color:var(--muted);font-size:14px;margin:0 0 12px}
.price-card ul{margin:8px 0 2px;padding-left:20px}
.price-card li{margin:0 0 8px}

/* ---------- Плейсхолдеры [запросить у клиента] ---------- */
.ph{
  background:var(--ph-bg);
  color:var(--ph-ink);
  border-radius:5px;
  padding:1px 6px;
  font-size:.93em;
  line-height:1.5;
}
/* строчный плейсхолдер в тексте не ломает абзац */
p .ph, li .ph{white-space:normal}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:18px;
  line-height:1.3;
  padding:16px 32px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  text-align:center;
  -webkit-appearance:none;
  appearance:none;
  transition:background .15s ease;
}
.btn:hover{background:var(--accent-2);color:#fff}
.btn:focus-visible{outline:3px solid rgba(20,104,75,.35);outline-offset:2px}
.btn-full{display:block;width:100%}
@media (max-width:760px){
  .btn{display:block;width:100%;box-sizing:border-box;padding:16px 20px}
}
.cta-center{text-align:center;margin:32px 0 0}
.small-note{color:var(--muted);font-size:14.5px;text-align:center;margin:12px 0 0}
.small-note a{color:var(--muted)}

/* ---------- Sticky-CTA (только мобильные, после блока тарифов) ---------- */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);
  display:none;
}
.sticky-cta.show{display:block}
.sticky-cta .btn{box-shadow:0 6px 20px rgba(32,32,29,.18)}
@media (min-width:761px){.sticky-cta{display:none !important}}
body.sticky-on{padding-bottom:74px} /* запас, чтобы sticky-CTA не закрывала подвал */

/* ---------- Форма (страница 2) ---------- */
.form-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px 24px 24px;
  margin:24px 0 10px;
}
.field{margin:0 0 18px}
.field label{display:block;font-weight:600;margin:0 0 6px}
.opt{color:var(--muted);font-weight:400;font-size:14px}
.field input[type="text"],.field input[type="tel"]{
  width:100%;
  padding:14px 15px;
  font-size:17px;
  font-family:inherit;
  color:var(--ink);
  background:#fff;
  border:1px solid #d5cfc1;
  border-radius:10px;
  outline:none;
  transition:border-color .15s ease;
}
.field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(20,104,75,.14)}
.field input.invalid{border-color:var(--danger);background:#fdf5f4}
.field input.invalid:focus{box-shadow:0 0 0 3px rgba(179,55,43,.14)}
.err{display:none;color:var(--danger);font-size:14px;margin:6px 0 0}
.err.show{display:block}
.check{
  display:flex;gap:10px;align-items:flex-start;
  margin:0 0 18px;font-size:15px;line-height:1.45;
}
.check input[type="checkbox"]{
  width:19px;height:19px;flex:0 0 auto;margin:1px 0 0;
  accent-color:var(--accent);
  cursor:pointer;
}
.form-actions .btn{width:100%}

/* ---------- Подвал ---------- */
footer{
  background:var(--paper);
  border-top:1px solid var(--line);
  margin-top:64px;
  padding:34px 0 42px;
  font-size:14.5px;
  color:var(--muted);
}
footer p{margin:0 0 8px}
footer .legal{font-size:13px;color:#8b877a;margin-top:16px}

/* ---------- Служебные страницы (спасибо, политика) ---------- */
.center{text-align:center}
.thanks{max-width:640px;margin:0 auto}
.stub-note{
  background:var(--paper);border:1px dashed #c9c2b2;
  border-radius:12px;padding:16px 18px;
  color:var(--muted);font-size:15px;margin:22px 0 0;
}

/* ---------- Планшет/десктоп ---------- */
@media (min-width:761px){
  .prices{grid-template-columns:1fr 1fr}
  main.page{padding:60px 0 30px}
  .form-card{padding:34px 36px 30px}
}
