/* Главная страница «39.18 Монитор» (только index.html; кабинет и вход —
   на site.css, этот файл их не касается).
   Образ — схема расположения участка: красная линия образуемой границы,
   синий пунктир кадастрового квартала, характерные точки н1…н6. Красный и
   синий живут только на схеме; действия — фирменный зелёный кабинета. */
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4f6f7;
  --sheet: #ffffff;
  --ink: #1c2633;
  --ink-2: #3d4957;
  --muted: #66727f;
  --rule: #d5dce2;
  --grid: #8c97a2;
  --boundary: #c4382e;
  --quarter: #2e5b86;
  --road: color-mix(in srgb, var(--grid) 16%, transparent);
  --action: #2f6f4f;
  --action-hover: #255c40;
  --action-ink: #ffffff;
  --focus: #2f6f4f66;
  --font: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121820;
    --sheet: #18202a;
    --ink: #e6ebf0;
    --ink-2: #c1cad3;
    --muted: #93a0ad;
    --rule: #2c3743;
    --grid: #5f6d7b;
    --boundary: #ef7b70;
    --quarter: #86b1dc;
    --action: #6fbf94;
    --action-hover: #86cda6;
    --action-ink: #0d1d14;
    --focus: #6fbf9466;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--action); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ---------- шапка ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand b { color: var(--action); font-weight: 700; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top .enter { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 8px; border: 1.5px solid var(--action); background: var(--action); color: var(--action-ink);
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.quiet { background: transparent; color: var(--action); }
.btn.quiet:hover { background: color-mix(in srgb, var(--action) 8%, transparent); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.07; font-weight: 700; letter-spacing: -.028em; max-width: 13em; }
.hero .lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 31em; }
/* Откуда «39.18» в названии и текстах, хотя сервис следит за всеми торгами (по просьбе владельца, 13.10.2026). */
.origin { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--action); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* лист схемы */
.sheet { background: var(--sheet); border: 1px solid var(--rule); padding: 18px 18px 14px; position: relative; }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); pointer-events: none; }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet .caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 6px 10px; font-size: 13px; color: var(--muted); }
.sheet .caption b { color: var(--ink); font-weight: 600; }
.legend { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 12px 6px 4px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--boundary); }
.legend i.q { border-top: 2px dashed var(--quarter); }
.legend i.rd { height: 10px; border: 0; background: var(--road); vertical-align: -1px; }
.legend i.pt { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--boundary); }
.coords { width: calc(100% - 12px); margin: 12px 6px 4px; border-collapse: collapse; font-size: 13px; color: var(--ink-2); }
.coords th, .coords td { border: 1px solid var(--rule); padding: 4px 10px; text-align: right; font-weight: 400; }
.coords th { color: var(--muted); }
.coords th:first-child, .coords td:first-child { text-align: left; }

/* рисунок: линии берут цвет из токенов */
.s-grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.s-road { fill: var(--road); stroke: none; }
.s-road-lbl { fill: var(--muted); font: italic 400 11px var(--font); letter-spacing: .02em; }
.s-neigh { stroke: var(--grid); stroke-width: 1.2; fill: none; }
.s-quarter { stroke: var(--quarter); stroke-width: 2; stroke-dasharray: 10 6; fill: none; }
.s-plot { stroke: var(--boundary); stroke-width: 2.6; fill: color-mix(in srgb, var(--boundary) 7%, transparent); stroke-linejoin: round; }
.s-pt { fill: var(--boundary); }
.s-lbl { fill: var(--ink); font: 500 13px var(--font); }
.s-lbl-q { fill: var(--quarter); font: 600 13px var(--font); }
.s-muted { fill: var(--muted); font: 400 12px var(--font); }
.s-arrow { stroke: var(--ink); stroke-width: 1.5; fill: none; }

/* единственное движение на странице: контур участка прочерчивается */
@media (prefers-reduced-motion: no-preference) {
  .s-plot { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s .2s ease-out forwards; }
  .s-pt, .s-plot-lbl { opacity: 0; animation: show .4s 1.6s ease-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* ---------- разделы ---------- */
.part { padding: 80px 0; border-top: 1px solid var(--rule); }
.part h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 22em; }
.part .intro { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 40em; }

/* процедура — настоящая последовательность, поэтому точки с номерами */
.route { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; list-style: none; padding: 0; }
.route::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; border-top: 2px solid var(--boundary); }
.route li { position: relative; padding-top: 34px; }
.route li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--boundary); }
.route .n { font-size: 15px; font-weight: 600; color: var(--boundary); }
.route h3 { font-size: 21px; line-height: 1.25; margin: 6px 0 10px; letter-spacing: -.01em; }
.route p { color: var(--ink-2); font-size: 16px; max-width: 26em; }
.route .we { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--action); color: var(--ink); font-size: 15.5px; }

/* что делает сервис: определения, а не карточки */
.does { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.does div { padding: 22px 0; border-top: 1px solid var(--rule); }
.does h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.does p { margin-top: 6px; color: var(--ink-2); font-size: 16px; max-width: 30em; }

/* цена */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.price .sum { font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.price .sum small { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.price .terms { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.price ul { list-style: none; margin: 0 0 28px; padding: 0; }
.price li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16.5px; }
.price li:last-child { border-bottom: 1px solid var(--rule); }

/* вопросы */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* подвал */
.foot { border-top: 1px solid var(--rule); padding: 36px 0 52px; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 56px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .route::before { left: 7px; right: auto; top: 7px; bottom: 7px; border-top: 0; border-left: 2px solid var(--boundary); }
  .route li { padding: 0 0 0 36px; }
  .does, .price { grid-template-columns: minmax(0, 1fr); column-gap: 0; gap: 28px; }
  .part { padding: 56px 0; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  body { font-size: 16px; }
  .hero .lead { font-size: 17.5px; }
  .coords { font-size: 12px; }
  .coords th, .coords td { padding: 3px 6px; }
}

/* ================= страница входа (login.html) ================= */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 72px; align-items: start; padding-block: 64px 88px; }
.login h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.login .lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 32em; }
/* как проходит вход — настоящая последовательность, та же линия с точками, что на главной */
.route.v { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.route.v::before { left: 7px; right: auto; top: 7px; bottom: 7px; border-top: 0; border-left: 2px solid var(--boundary); }
.route.v li { padding: 0 0 0 36px; }
.route.v li p { color: var(--ink); font-size: 16.5px; max-width: 32em; }
.login .go { margin-top: 32px; width: 100%; max-width: 420px; min-height: 54px; font-size: 17px; gap: 10px; }
.login .go svg { width: 20px; height: 20px; flex: none; }
.waiting { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; max-width: 420px; padding: 14px 16px; border-left: 3px solid var(--action); background: color-mix(in srgb, var(--action) 8%, transparent); font-size: 15.5px; }
.err { margin-top: 14px; color: var(--boundary); font-size: 15px; }
.alt { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 420px; }
.alt p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.login .fine { margin-top: 32px; font-size: 14.5px; color: var(--muted); max-width: 36em; }
.qr-sheet { text-align: center; }
.qr-sheet .caption { justify-content: center; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.qr-sheet .caption b { font-size: 16px; }
.qr { width: 232px; height: 232px; margin: 0 auto; padding: 8px; background: #ffffff; display: flex; align-items: center; justify-content: center; }
.qr svg { width: 100%; height: 100%; }
.qr-note { margin: 14px 6px 6px; font-size: 13.5px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--rule); border-top-color: var(--action); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 56px; }
  .qr-sheet { max-width: 360px; }
}
/* на телефоне QR бесполезен: свой же экран камерой не отсканировать — там только кнопка */
@media (max-width: 600px) { .qr-sheet { display: none; } }

/* ================= «Как начать» на главной и справка (help.html) ================= */
:root { --amber: #95580f; }
@media (prefers-color-scheme: dark) { :root { --amber: #e0a458; } }
.start4 { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.start4 .n { width: 34px; height: 34px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.start4 h3 { font-size: 19px; margin: 16px 0 8px; letter-spacing: -.01em; }
.start4 p { color: var(--ink-2); font-size: 16px; }
.start-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.help { padding-block: 48px 72px; }
.help-head h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.help-head .lead { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); max-width: 40em; }
.help-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 44px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); }
.toc a:hover { color: var(--ink); border-left-color: var(--action); }
.help-body section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.help-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin-bottom: 14px; }
.help-body h3 { font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.help-body h3:first-child { margin-top: 0; }
.help-body section > p { color: var(--ink-2); max-width: 46em; font-size: 16.5px; }
.help-body section > p + p { margin-top: 10px; }
.help-body .help-pair p { color: var(--ink-2); font-size: 16px; }
.help-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; margin-top: 24px; align-items: start; }
.steps { counter-reset: st; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: st; position: relative; padding: 0 0 14px 40px; font-size: 16px; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--action); color: var(--action-ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.help-note { margin-top: 28px; padding: 18px 22px; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--action); max-width: 52em; }
.help-note ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.help-note li { margin-top: 6px; }
.help-body .help-tip { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.stages { list-style: none; margin: 0; padding: 0; }
.stages li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15.5px; }
.stages li:first-child { border-top: 0; padding-top: 0; }
.hb { display: inline-block; margin: 0 8px 4px 0; padding: 2px 10px; border-radius: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.hb.reg { color: var(--quarter); background: color-mix(in srgb, var(--quarter) 14%, transparent); }
.hb.notice { color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); }
.hb.auction { color: var(--action); background: color-mix(in srgb, var(--action) 14%, transparent); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cards3 > div { background: var(--sheet); border: 1px solid var(--rule); padding: 18px 20px; }
.cards3 h3 { margin: 0 0 8px; font-size: 17px; }
.cards3 p { color: var(--ink-2); font-size: 15px; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; max-width: 50em; }
.facts li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.facts li:first-child { border-top: 0; }
.facts li b { color: var(--ink); }
.doc-links { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 14px; }
.help-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* макет чата Telegram — только для иллюстрации, не настоящий интерфейс */
.tg { margin: 0; background: var(--sheet); border: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.tg-head small { display: block; color: var(--muted); font-size: 12.5px; }
.tg-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-body { padding: 14px; background: color-mix(in srgb, var(--action) 6%, var(--paper)); display: flex; flex-direction: column; gap: 8px; }
.tg-msg { background: var(--sheet); padding: 9px 12px; border-radius: 12px 12px 12px 4px; max-width: 94%; color: var(--ink); box-shadow: 0 1px 0 var(--rule); overflow-wrap: anywhere; }
.tg-msg.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: color-mix(in srgb, var(--action) 18%, var(--sheet)); }
.tg-kb { display: grid; gap: 5px; max-width: 94%; }
.tg-kb.two { grid-template-columns: 1fr 1fr; }
.tg-kb span { display: block; text-align: center; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 9%, var(--paper)); color: var(--ink); font-size: 13.5px; font-weight: 500; }
@media (max-width: 900px) {
  .start4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .help { padding-block: 32px 56px; }
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .toc { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .toc b { grid-column: 1 / -1; }
  .help-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .start4 { grid-template-columns: minmax(0, 1fr); }
  .toc { grid-template-columns: minmax(0, 1fr); }
}
