/* ЭкспертНедвижимость — оценка и экспертиза недвижимости
   Единая таблица стилей. Только локальные ресурсы, системные шрифты. */

:root {
  --navy: #1b2d47;
  --navy-700: #233a5a;
  --navy-600: #2f4c73;
  --ink: #1d2733;
  --slate: #4a5868;
  --muted: #6b7788;
  --line: #d8dee7;
  --line-soft: #e7ebf1;
  --bg: #f4f6f9;
  --bg-alt: #eef1f6;
  --card: #ffffff;
  --accent: #a8752e;
  --accent-soft: #f3ebdd;
  --accent-ink: #7c531c;
  --ok: #2c6e49;
  --ok-soft: #e4efe8;
  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(27, 45, 71, .06), 0 6px 20px rgba(27, 45, 71, .05);
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: .1px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 860px; }

/* ---------- Верхняя строка ---------- */
.topbar {
  background: var(--navy);
  color: #cdd6e3;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a { color: #e7edf5; }
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar .ti { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ti svg { opacity: .7; flex: none; }
.topbar .spacer { margin-left: auto; }

/* ---------- Шапка ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand .logo { flex: none; }
.brand b {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
  line-height: 1.05;
  display: block;
  letter-spacing: .2px;
}
.brand span {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.masthead .cta {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.masthead .cta .ph {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.masthead .cta .ph a { color: inherit; }
.masthead .cta small { color: var(--muted); font-size: .78rem; }

/* ---------- Навигация ---------- */
.nav { background: var(--navy-700); position: sticky; top: 0; z-index: 20; }
.nav .container { display: flex; flex-wrap: wrap; align-items: stretch; }
.nav a {
  color: #d7dfea;
  padding: 13px 18px;
  font-size: .93rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,.05);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(27,45,71,.0), rgba(27,45,71,.0)),
    var(--navy);
  color: #eef2f8;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(105deg, #000 35%, transparent 78%);
  -webkit-mask-image: linear-gradient(105deg, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 54px; }
.hero .eyebrow {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(168,117,46,.45);
  border-radius: 40px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.3rem; max-width: 760px; }
.hero p.lead { color: #c7d2e1; font-size: 1.12rem; max-width: 680px; margin-bottom: 26px; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ---------- Секции ---------- */
.section { padding: 54px 0; }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); color: #dfe6f0; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head .kicker {
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.section.navy .section-head .kicker { color: var(--accent); }
.section-head p { color: var(--slate); margin-bottom: 0; }
.section.navy .section-head p { color: #b9c5d6; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Карточки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card.pad-lg { padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); margin-bottom: 0; }
.card .ic {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card .tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 40px;
  padding: 3px 11px;
  margin-bottom: 12px;
  font-weight: 700;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 600; font-size: .9rem;
}

/* Карточка-услуга со счётчиком */
.svc { position: relative; }
.svc .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--line);
  line-height: 1;
  position: absolute;
  top: 18px; right: 20px;
}

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 560px;
}
table.data caption {
  text-align: left;
  font-size: .8rem;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  background: var(--navy);
  color: #eaf0f8;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: none;
}
table.data tbody tr:nth-child(even) { background: var(--bg); }
table.data tbody tr:hover { background: var(--accent-soft); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-size: .82rem; color: var(--muted); background: #fff; }
table.data .obj { font-weight: 600; color: var(--navy); }

/* ---------- Список-чек ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--slate);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 15px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist.tight li { padding-top: 5px; padding-bottom: 5px; }

/* Нумерованный список документов */
ul.docs { list-style: none; margin: 0; padding: 0; }
ul.docs li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--slate);
}
ul.docs li::before {
  content: "—";
  position: absolute; left: 4px; color: var(--accent); font-weight: 700;
}
ul.docs li:last-child { border-bottom: none; }

/* ---------- Шаги порядка работы ---------- */
.steps { counter-reset: st; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 22px;
  align-items: start;
}
.step + .step { border-top: none; }
.step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.step .st-num {
  counter-increment: st;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background: var(--navy-600);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.step .st-num::before { content: counter(st); }
.step h4 { margin: 4px 0 5px; color: var(--navy); }
.step p { margin: 0; color: var(--slate); font-size: .95rem; }
.step .st-meta { font-size: .82rem; color: var(--accent-ink); font-weight: 600; margin-top: 7px; }

/* ---------- Полоса показателей ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stats .st { padding: 22px 24px; border-right: 1px solid var(--line-soft); }
.stats .st:last-child { border-right: none; }
.stats .st b { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); display: block; line-height: 1; }
.stats .st span { font-size: .86rem; color: var(--muted); display: block; margin-top: 8px; }

/* ---------- Два столбца контента ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }

/* Боковая панель-факты */
.factbox {
  background: var(--navy);
  color: #d7dfea;
  border-radius: var(--radius);
  padding: 24px;
}
.factbox h4 { color: #fff; margin-bottom: 14px; }
.factbox dl { margin: 0; }
.factbox dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }
.factbox dt:first-child { margin-top: 0; }
.factbox dd { margin: 3px 0 0; color: #eaf0f8; font-size: .95rem; }

/* Выноска */
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-ink);
  font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

/* Хлебные крошки */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .84rem; }
.crumbs .container { padding-top: 11px; padding-bottom: 11px; color: var(--muted); }
.crumbs a { color: var(--slate); }
.crumbs span { color: var(--muted); }
.crumbs i { font-style: normal; margin: 0 7px; color: var(--line); }

/* Заголовок страницы */
.page-head { background: var(--navy); color: #eef2f8; padding: 40px 0 42px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #c3cfde; max-width: 720px; margin-bottom: 0; }

/* ---------- Внутренние блоки текста ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; color: var(--slate); }
.prose li { margin-bottom: 6px; }
.prose table.data { margin: 20px 0; }

.pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 40px;
  padding: 3px 12px;
}

/* Аккордеон на чистом CSS (details) */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--slate); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Форма заявки ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(47,76,115,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #aab7c8; font-size: .9rem; padding: 46px 0 26px; }
.footer a { color: #d2dbe7; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer .fbrand b { font-family: var(--serif); color: #fff; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.footer .fbrand p { color: #93a2b6; margin-bottom: 0; }
.footer .legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: #7d8ca1; font-size: .82rem;
}

/* ---------- Утилиты ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--slate); }
.cols-list { columns: 2; column-gap: 34px; }
.cols-list li { break-inside: avoid; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .st:nth-child(2) { border-right: none; }
  .stats .st:nth-child(1), .stats .st:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .split, .split.even { grid-template-columns: 1fr; gap: 28px; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.85rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats .st { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .stats .st:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .cols-list { columns: 1; }
  .masthead .cta { margin-left: 0; text-align: left; width: 100%; }
  .masthead .container { gap: 14px; padding-top: 16px; padding-bottom: 16px; min-height: 0; }
  .brand b { font-size: 1.12rem; }
  .brand .logo { width: 40px; height: 40px; }
  .brand span span { font-size: .66rem; letter-spacing: .1em; }
  .nav .container { flex-direction: column; }
  .nav a { border-bottom: 1px solid rgba(255,255,255,.08); border-left: 3px solid transparent; padding: 11px 4px; }
  .nav a.active { border-bottom-color: rgba(255,255,255,.08); border-left-color: var(--accent); }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .topbar .spacer { margin-left: 0; }
}
