/* ЕГРН.РФ — новый дизайн. Все классы с префиксом e- */
:root {
  --cream: #F4EFE7;
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --line: #E4DCCF;
  --line-2: #DCD2C3;
  --field: #D6CCBD;
  --ink: #2B2B2B;
  --text-2: #4E4841;
  --muted: #5E5850;
  --slate: #252F37;
  --coral: #ED4731;
  --coral-dark: #D63A25;
  --yellow: #FFDD82;
  --blue: #069AD0;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
.e-body [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.e-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.e-body a { color: var(--slate); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.e-body a:hover { color: var(--coral); }
.e-body :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.e-body img, .e-body svg { max-width: 100%; }

.e-wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.e-muted { color: var(--muted); }
.e-serif { font-family: var(--serif); }

/* ---------- Типографика ---------- */
.e-h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; color: var(--slate); }
.e-h1--page { font-size: clamp(32px, 4.4vw, 54px); }
.e-h2 { margin: 0 0 32px; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--slate); }
.e-h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--slate); }
.e-lead { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); }

/* ---------- Кнопки ---------- */
.e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 28px;
  background: var(--coral); color: #fff !important; text-decoration: none;
  font-family: inherit; font-size: 19px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease;
}
.e-btn:hover { background: var(--coral-dark); }
.e-btn:disabled { opacity: .6; cursor: default; }
.e-btn--ghost { background: transparent; color: var(--slate) !important; border: 1.5px solid var(--slate); font-size: 17px; font-weight: 600; }
.e-btn--ghost:hover { background: var(--slate); color: #fff !important; }
.e-btn--wide { width: 100%; }
.e-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Шапка ---------- */
.e-top { border-bottom: 1px solid var(--line); }
.e-top__in { min-height: 84px; display: flex; align-items: center; gap: 32px; }
.e-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink) !important; }
.e-logo svg { flex-shrink: 0; }
.e-logo__text { display: flex; flex-direction: column; gap: 2px; }
.e-logo__name { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .14em; line-height: 1; }
.e-logo__sub { font-size: 12px; color: var(--muted); }
.e-aux { display: flex; gap: 26px; margin-left: 16px; font-size: 15px; font-weight: 500; }
.e-aux a { color: var(--ink); text-decoration: none; }
.e-contacts { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.e-contacts__phone { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--ink) !important; }
.e-contacts__mail { font-size: 14px; color: var(--muted) !important; text-decoration: none; }
.e-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--slate); cursor: pointer; align-items: center; justify-content: center; }

.e-pills { background: var(--slate); }
.e-pills__in { min-height: 64px; display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.e-pills__in::-webkit-scrollbar { display: none; }
.e-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 20px;
  color: #fff !important; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.e-pill:hover { border-color: var(--yellow); }
.e-pill.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--slate) !important; }

/* ---------- Главная: первый экран ---------- */
.e-hero { padding: 88px 0 96px; overflow: hidden; }
.e-hero__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.e-hero__text { display: flex; flex-direction: column; gap: 28px; }
.e-hero__art { position: relative; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.e-seal { position: absolute; inset: 0; margin: auto; width: 420px; height: 420px; }
.e-contact-card {
  position: relative; width: 340px; max-width: 100%; margin-bottom: 8px;
  padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.e-contact-card__phone { font-size: 24px; font-weight: 700; text-decoration: none; }

/* ---------- Секции ---------- */
.e-section { padding: 88px 0; }
.e-section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.e-section--tight { padding: 0 0 96px; }

.e-rows { border-top: 1px solid var(--line-2); }
.e-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 180px 28px; gap: 40px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink) !important;
}
.e-row__title { font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--slate); line-height: 1.2; }
.e-row__desc { color: var(--text-2); }
.e-row__price { font-size: 18px; font-weight: 600; text-align: right; }
.e-row__arrow { transition: transform .15s ease; }
.e-row:hover .e-row__title { color: var(--coral); }
.e-row:hover .e-row__arrow { transform: translateX(4px); }

.e-how { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.e-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.e-steps li { display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 15px; }
.e-steps strong { font-size: 19px; font-weight: 600; color: var(--ink); }
.e-steps__num { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; color: var(--coral); }
.e-box { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.e-box p { margin: 0; color: var(--text-2); }

/* ---------- Страницы услуг ---------- */
.e-page { padding: 40px 0 88px; }
.e-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; font-size: 14px; color: var(--muted); }
.e-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: start; }
.e-page__main { display: flex; flex-direction: column; gap: 32px; }
.e-page__side { position: sticky; top: 24px; }

.e-block { padding-top: 28px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 18px; }
.e-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.e-check li { position: relative; padding-left: 22px; }
.e-check li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.e-note { padding: 28px 32px; background: #FFF6DA; border: 1px solid #F2DB9A; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.e-note p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }

.e-geo { display: flex; flex-direction: column; }
.e-geo__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.e-geo__item p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.e-geo__icon { width: 56px; height: 56px; border: 1.5px solid var(--coral); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.e-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.e-fact { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.e-fact strong { font-size: 20px; font-weight: 600; color: var(--slate); }

/* ---------- Формы ---------- */
.e-card {
  padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 48px -36px rgba(37, 47, 55, .45);
}
.e-card p { margin: 0; }
.e-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.e-price__num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--slate); line-height: 1.1; }
.e-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.e-field label { font-size: 14px; font-weight: 600; }
.e-field input, .e-field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--field); border-radius: 12px; background: var(--white);
  font-family: inherit; font-size: 16px; color: var(--ink);
}
.e-field textarea { resize: vertical; line-height: 1.5; font-variant-numeric: tabular-nums; }
.e-field input:focus, .e-field textarea:focus { border-color: var(--slate); outline: none; box-shadow: 0 0 0 3px rgba(6, 154, 208, .25); }
.e-field input[aria-invalid="true"] { border-color: var(--coral); }
.e-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.e-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.e-error { font-size: 13px; color: #B3261E; }
.e-checkbox { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.e-checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--coral); }
.e-alert { padding: 16px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.e-alert--ok { background: #EAF6EE; color: #1E5A32; }
.e-alert--err { background: #FDECEA; color: #8A1C12; }
.e-alert a { font-weight: 600; }

/* ---------- Подвал ---------- */
.e-footer { background: var(--slate); color: #D9DDE0; padding: 56px 0 36px; }
.e-footer a { color: #D9DDE0 !important; text-decoration: none; }
.e-footer a:hover { color: var(--yellow) !important; }
.e-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; font-size: 14px; }
.e-footer__about { display: flex; flex-direction: column; gap: 12px; line-height: 1.6; }
.e-footer__logo { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .14em; color: #fff; }
.e-footer__col { display: flex; flex-direction: column; gap: 10px; }
.e-footer__phone { font-size: 20px; font-weight: 700; color: var(--yellow) !important; }
.e-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3A4650; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #AEB6BC; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .e-aux { gap: 18px; margin-left: 0; }
  .e-page__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .e-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px 28px; gap: 24px; }
}
@media (max-width: 900px) {
  .e-top__in { min-height: 72px; gap: 16px; flex-wrap: wrap; }
  .e-contacts { display: none; }
  .e-burger { display: inline-flex; margin-left: auto; }
  .e-aux { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .e-aux.is-open { display: flex; }
  .e-aux a { padding: 12px 0; border-top: 1px solid var(--line); }
  .e-hero { padding: 48px 0 56px; }
  .e-hero__in, .e-how, .e-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .e-hero__art { min-height: 0; justify-content: flex-start; }
  .e-seal { display: none; }
  .e-page__side { position: static; }
  .e-section { padding: 56px 0; }
  .e-section--tight { padding: 0 0 56px; }
  .e-row { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; padding: 22px 0; }
  .e-row__title { grid-column: 1; font-size: 21px; }
  .e-row__desc, .e-row__price { grid-column: 1; text-align: left; font-size: 15px; }
  .e-row__arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .e-steps, .e-facts { grid-template-columns: 1fr; gap: 20px; }
  .e-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .e-wrap { padding: 0 16px; }
  .e-logo__sub { display: none; }
  .e-card { padding: 22px 18px; }
  .e-field-row { grid-template-columns: 1fr; }
  .e-footer__grid { grid-template-columns: 1fr; }
  .e-btn { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .e-row__arrow, .e-btn { transition: none; }
}
