/* HomeCheck — order flow, sign-in and the buyer's cabinet.
   Built on site.css tokens; kept apart so the design system file stays
   as the front team wrote it. */

/* Address suggestions */
.suggest { position: relative; }
.suggest__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.suggest__item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.suggest__item small { color: var(--muted); white-space: nowrap; font-size: 13px; }
.suggest__item[aria-selected="true"], .suggest__item:hover { background: var(--brand-50); }
.suggest__empty { padding: 9px 10px; font-size: 14px; color: var(--muted); }
/* Houses of the picked street: a grid of numbers, not a long column */
.suggest__list--houses:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; max-height: 216px; }
.suggest__list--houses .suggest__item { display: grid; gap: 1px; justify-content: stretch; padding: 8px 10px; border: 1px solid var(--line); }
.suggest__list--houses .suggest__item b { font-size: 15px; font-variant-numeric: tabular-nums; }
.suggest__list--houses .suggest__item small { font-size: 12px; }
.suggest__list--houses .suggest__empty { grid-column: 1 / -1; }

/* No deals in the house: the report is not sold */
.stop { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--red-50); border: 1px solid #F5C2C4; color: #7F1D22; }
.stop[hidden] { display: none; }
.stop__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); flex: none; }
.stop__icon .i { width: 22px; height: 22px; stroke-width: 2.2; }
.stop b { display: block; font: 800 18px var(--font-display); letter-spacing: -.01em; color: #7F1D22; }
.stop p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.stop .stop__sub { font-weight: 600; }

/* A check of this flat or house is already on the account: said above the plan, the order stays open */
.have { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--brand-50); border: 1px solid #CFE3FF; color: var(--ink-2); }
.have[hidden] { display: none; }
.have__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); flex: none; }
.have__icon .i { width: 22px; height: 22px; stroke-width: 2.4; }
.have b { display: block; font: 800 18px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.have p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.have .btn { margin-top: 14px; }
.have .btn--ghost { background: #fff; }

@media (max-width: 560px) {
  .stop { padding: 16px; gap: 12px; }
  .stop__icon { width: 34px; height: 34px; }
}

/* A note under a field: where the code and the report link go */
.mail-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--brand-50); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mail-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); flex: none; }
.mail-note b { color: var(--ink); font-weight: 600; word-break: break-all; }
.order-done b { color: var(--ink); word-break: break-all; }

/* Phone + WhatsApp code: the order dialog and the sign-in page */
.pin { display: grid; gap: 14px; }
.pin [data-pin-step] { display: grid; gap: 14px; }
.pin [data-pin-step][hidden] { display: none; }
.pin__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.pin__code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.pin__ok { background: var(--green-50); }
.pin__ok .i { color: var(--green); }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
@media (max-width: 420px) {
  .pin__row { grid-template-columns: 1fr; }
}

/* Required fields: a quiet brand-coloured star, not a red alarm */
.req { margin-left: 3px; color: var(--brand); font-weight: 700; }
.req-note { margin-top: -6px; text-align: center; font-size: 13px; color: var(--muted); }
.req-note .req { margin: 0 2px 0 0; }

/* Address: street, then house, then the confirmation */
.addr { display: grid; gap: 8px; }
/* The houses grid hangs under the whole row, not under the narrow house field */
.addr__row { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.addr__row .suggest:has(.suggest__list--houses) { position: static; }
.addr__row[hidden] { display: none; }
.addr-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--green-50); border: 1px solid #BFE8D3; }
.addr-card[hidden] { display: none; }
.addr-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--green); flex: none; }
.addr-card__icon .i { width: 18px; height: 18px; stroke-width: 2.4; }
.addr-card__text { flex: 1; min-width: 0; }
.addr-card__text b { display: block; font-size: 16px; color: #0B5E3C; }
.addr-card__text span { display: block; margin-top: 1px; font-size: 13px; color: #2E7A57; }
.addr-card__edit { flex: none; border: 0; background: none; padding: 6px 4px; font-size: 14px; font-weight: 600; color: var(--brand-600); cursor: pointer; }
.addr-card__edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.addr-card--warn { align-items: flex-start; background: var(--amber-50); border-color: #FBE0B0; }
.addr-card--warn .addr-card__icon { color: var(--amber); }
.addr-card--warn .addr-card__text b { color: #7A4A00; }
.addr-card--warn .addr-card__text span { color: #8F6420; }

/* The order page: the dialog's card on the soft background of the site's pages */
.order-page { padding: 48px 0 96px; background: radial-gradient(700px 360px at 90% 0%, rgba(45,140,255,.10), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.order-page__panel { position: relative; max-width: 640px; margin-inline: auto; padding: 36px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.order__head h1 { font-size: 28px; }
.order[hidden] { display: none; }

/* The listing on top: pasted, it fills the form below */
.listing { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--brand-50); border: 1px solid #D5E6FF; }
.listing__row { position: relative; display: block; }
.listing__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--brand-600); pointer-events: none; }
.listing__input { padding-left: 42px; }
.listing__status { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.listing__status .spinner { width: 16px; height: 16px; border-width: 2px; margin-top: 1px; }
.listing__status .i { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.listing__status.is-done { color: #0B5E3C; }
.listing__status.is-done .i { color: var(--green); }
.listing__status.is-warn { color: #8F6420; }
.listing__status.is-warn .i { color: var(--amber); }
.field__input.is-filled { border-color: #9ED8BB; background: #F3FBF7; }

.or-line { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: lowercase; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The flat's number, area and price: under the address */
.order__flat { display: grid; gap: 8px; }

/* Optional details: in sight, with why they help */
.optional { display: grid; gap: 12px; margin: 0; padding: 14px 16px 16px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.optional__head b { display: block; font-size: 15px; color: var(--ink); }
.optional__head small { display: block; margin-top: 1px; font-size: 13px; font-weight: 600; color: var(--green); }

/* Step 2: back to the flat */
.back-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: -6px; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--brand-600); cursor: pointer; }
.back-link .i { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .order-page { padding: 20px 0 56px; }
  .order-page__panel { padding: 26px 18px 22px; border-radius: var(--r); }
  .order__head h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .addr__row { grid-template-columns: 1fr; }
  .suggest__list--houses:not([hidden]) { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

/* Step 2, the preview: wider than step 1 — the cards sit side by side */
.order-page__panel.is-wide { max-width: 1120px; }
.pv { display: grid; gap: 16px; }
.pv:empty { display: none; }
.pv-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.pv-head__main { min-width: 0; }
.pv-head__city { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pv-head__addr { margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.pv-head__sub { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.pv-head__side { flex: none; min-width: 240px; padding-left: 24px; border-left: 1px solid var(--line); }
.pv-head__label { font-size: 14px; color: var(--muted); }
.pv-head__price { margin-top: 6px; font: 800 32px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.pv-head__side > .pv-head__unit:not(:first-child) { margin-top: 12px; }
.pv-compare { display: grid; gap: 8px; }
.pv-compare__row { display: flex; gap: 8px; }
.pv-compare__row .field__input { min-width: 0; }

.pv-cards { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.pv-cards--1 { --cols: 1; }
.pv-cards--2 { --cols: 2; }
.pv-card { display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.pv-card__open { padding: 18px 20px; }
.pv-card__head { display: flex; gap: 12px; align-items: center; }
.pv-card__head .i { width: 28px; height: 28px; flex: none; color: var(--ink); }
.pv-card__head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pv-card__value { margin-top: 14px; font: 700 20px/1.25 var(--font-display); color: var(--ink); }
.pv-card__note { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.pv-card__value + .pv-card__note { margin-top: 4px; }
.pv-card__locked { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.pv-card__locked > .i { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--ink); }
.pv-card__locked b { display: block; font-size: 15px; color: var(--ink); }
.pv-card__locked ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); }
/* One card — the house alone: what is open on the left, what the report adds on the right */
.pv-cards--1 .pv-card { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
.pv-cards--1 .pv-card__locked { margin: 12px; border: 0; border-radius: 12px; }

.pv-buy { display: grid; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
.pv-buy[hidden] { display: none; }
.pv-buy__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pv-buy__list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.pv-buy__list li { display: flex; gap: 12px; align-items: flex-start; }
.pv-buy__list .i { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--ink); }
.pv-buy__list b { display: block; font-size: 15px; color: var(--ink); }
.pv-buy__list span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pv-buy__act { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
/* Plans in one row of tiles: name and per-object price on top, the price below */
.pv-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-plans legend { grid-column: 1 / -1; }
.pv-plans .plan-pick__opt { flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; background: #fff; }
.pv-plans .plan-pick__opt input { margin-top: 2px; }
.pv-plans .plan-pick__opt strong { flex-basis: 100%; padding-left: 28px; }
.pv-buy__checkout { display: grid; gap: 18px; width: 100%; max-width: 520px; justify-self: center; }
.pv-buy__who, .pv-buy__go { display: grid; gap: 12px; align-content: end; }
.pv-buy__access { font-size: 13px; text-align: center; color: var(--muted); }
.pv-note { font-size: 13px; color: var(--muted); }
.pv-note[hidden] { display: none; }

@media (max-width: 900px) {
  .pv-cards { --cols: 1; }
  .pv-cards--1 .pv-card { grid-template-columns: none; }
  .pv-buy__list, .pv-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pv-head { flex-direction: column; gap: 14px; }
  .pv-head__side { min-width: 0; width: 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .pv-head__addr { font-size: 24px; }
  .pv-head__sub { font-size: 16px; }
  .pv-head__price { font-size: 26px; }
  .pv-buy { padding: 18px 16px; }
  .pv-buy__list, .pv-plans { grid-template-columns: 1fr; }
  .pv-plans .plan-pick__opt { flex-wrap: nowrap; align-items: center; }
  .pv-plans .plan-pick__opt strong { flex-basis: auto; padding-left: 0; }
}

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.field__input.is-invalid { border-color: var(--red); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer: city pages */
.site-footer__cities { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #7488A6; }
.site-footer__cities a:hover { color: #fff; }

/* Sign-in pages */
.page-hero--auth { padding: 56px 0 88px; }
.auth { display: grid; place-items: center; }
.auth__panel { width: 100%; max-width: 520px; box-shadow: var(--shadow); }
.auth__panel h1 { margin: 8px 0 6px; }
.auth__panel .order { margin-top: 24px; }
.auth__alt { text-align: center; font-size: 15px; }
.auth__resend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Cabinet */
.cabinet-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.flash { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--green-50); border: 1px solid #BFE8D3; color: #0B5E3C; font-size: 15px; }
.orders { display: grid; gap: 14px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, transform .2s; }
.order-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.order-row__addr { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.015em; }
.order-row__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.order-row__side { display: flex; align-items: center; gap: 14px; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #fff; }
.empty h2 { font-size: 22px; }
.empty p { margin: 8px auto 20px; max-width: 460px; color: var(--muted); }

.progress { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.progress li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 15px; }

/* Report */
.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.report > * { min-width: 0; }
.report-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; }
.report-block > h2 { font-size: 22px; letter-spacing: -.02em; }
.report-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.report-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kv > div { padding: 16px 18px; border-radius: var(--r); background: var(--bg-soft); }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.kv dd small { display: block; font-family: var(--font); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }

@media (max-width: 760px) {
  .order-row { grid-template-columns: 1fr; }
  .report-block { padding: 22px 18px; }
}

/* Home page, the wide «Итог» card: site.css gives `.svc--wide > div { flex: 1 }`
   to the text column, and the icon is a div too — it stretched into a wide
   blue bar. The icon keeps its size. */
.svc--wide .svc__icon { flex: none; }

/* «Как выглядит отчёт»: the thumbnails are real sheets of the sample report */
.page-thumb__img--shot { padding: 0; display: block; }
.page-thumb__img--shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Language switch (header) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang-switch__item { padding: 6px 9px; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink-2); }
.lang-switch__item:hover { color: var(--ink); background: var(--bg-soft); }
.lang-switch__item.is-active { color: var(--ink); background: var(--bg-soft); }
@media (max-width: 900px) {
  .lang-switch { align-self: flex-start; margin: 8px 0 0 12px; }
  .lang-switch__item { padding: 9px 14px; font-size: 15px; }
}

/* ---------- Footer: requisites from «Настройки сайта» ---------- */
.site-footer__requisites { margin-top: 6px; font-size: 13px; opacity: .75; }

/* ---------- Blog from /content: uploaded covers and pictures in the text ---------- */
.post-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r); margin: 8px 0 32px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; }
.prose figure { margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 12px 12px 0; }

/* ---------- Home hero from /content: the rich editor writes <strong> and <em> ---------- */
.hero__sub strong { color: var(--ink); font-weight: 600; }

/* ---------- Cabinet: checks on the balance, purchase, payments (Billing) ---------- */
.wallet { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 24px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.wallet__count { display: grid; gap: 2px; min-width: 150px; }
.wallet__label { font-size: 13px; color: var(--muted); }
.wallet__num { font: 800 44px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.wallet__text p { font-size: 15px; line-height: 1.5; }
.wallet__text p + p { margin-top: 4px; font-size: 14px; }
.wallet__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tariff.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50), var(--shadow); }
.tariff form { margin-top: auto; }
.flash--warn { background: var(--amber-50); border-color: #F2D29B; color: #7A4B00; }
.payments__waiting { margin-bottom: 14px; }
.checkout .spinner { width: 34px; height: 34px; margin: 0 auto 16px; display: block; }
.checkout form { margin-top: 4px; }
@media (max-width: 760px) {
  .wallet { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .wallet__actions { justify-content: flex-start; }
}

/* Floor, floors and rooms are short numbers: a row of three on a phone too */
@media (max-width: 640px) {
  .optional .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* Sign-in / registration switch on /login/; a second panel (the WhatsApp sign-in, when on) stands below. */
.auth__tabs { margin: 14px 0 6px; }
.auth__tabs .seg__btn { text-decoration: none; }
.auth { gap: 20px; }
.pv-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pv-promo__text { display: grid; gap: 6px; justify-items: start; }
.pv-promo__text b { font-size: 16px; color: var(--ink); }
.pv-promo__badge { padding: 3px 9px; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: 12.5px; font-weight: 700; }
.pv-promo__price { display: grid; justify-items: end; line-height: 1.1; }
.pv-promo__price s { font-size: 14px; color: var(--muted); }
.pv-promo__price strong { margin-top: 3px; font: 800 24px/1.1 var(--font-display); color: var(--ink); white-space: nowrap; }

.pv-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 14px; }
.pv-top .back-link { margin: 0; }
.pv-top__addr { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.pv-head--simple .pv-head__sub { margin-top: 0; font-size: 15px; }
.pv-head--simple { flex-direction: column; gap: 12px; }
.pv-head--simple .pv-head__side { min-width: 0; width: 100%; padding: 0; border: 0; }
.pv-seller { display: grid; gap: 10px; }
.pv-seller[hidden] { display: none; }
.pv-seller__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
.pv-head--simple .pv-head__main:empty { display: none; }

.pv-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pv-line { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--ink-2); }
.pv-line > .i { width: 20px; height: 20px; margin-top: 1px; color: var(--ink); }
.pv-line__text b { display: block; font-weight: 700; color: var(--ink); }

@media (max-width: 640px) {
  .pv-top__addr { font-size: 18px; }
  .pv-line { padding: 10px 12px; font-size: 14px; }
}

/* ---------- The compact order flow: the home page's first screen and /order/ (site.partials.order-form) ---------- */

/* Step 1: the street and the house — each over the whole width, big enough to type on a phone */
.qf-form { gap: 12px; }
.qf-form .field { gap: 5px; }
.qf-form .field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.qf-form .field__label small { font-size: 13px; font-weight: 400; color: var(--muted); }
.qf-form .field__input { font-size: 16px; }
.qf-form__addr { display: grid; gap: 12px; }
/* The order city: a toggle over the hidden city_pick, the picked one dark */
.city-toggle { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.city-toggle.is-invalid { border-color: var(--amber); }
.city-toggle__option { position: relative; display: block; cursor: pointer; }
.city-toggle__option input { position: absolute; opacity: 0; pointer-events: none; }
.city-toggle__option span { display: grid; place-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
.city-toggle__option:hover span { background: var(--bg-soft); }
.city-toggle__option input:checked + span { background: var(--brand); color: #fff; }
.city-toggle__option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.qf-form__search { position: relative; display: block; }
/* A street the suggestions do not know: a cross inside the field, a tip under it */
.qf-form__search .field__input.is-unmatched { padding-right: 42px; border-color: var(--amber); }
.qf-form__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); cursor: pointer; }
.qf-form__clear:hover { background: var(--line); }
.qf-form__clear .i { width: 16px; height: 16px; stroke-width: 2.4; }
.qf-form__tip { position: absolute; z-index: 21; pointer-events: none; left: 0; right: 0; top: calc(100% + 8px); padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow); }
.qf-form__tip::before { content: ""; position: absolute; right: 16px; top: -5px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.qf-form__tip[hidden], .qf-form__clear[hidden] { display: none; }
.qf-form__search:not(:focus-within) .qf-form__tip { display: none; }
.qf-form .suggest__item b { font-weight: 600; }
.qf-form__go { font-size: 17px; }
.qf-form__note { margin-top: -4px; text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Step 3: the address, the house and the flat, the promo price, the consent and the button.
   The report's parts, the e-mail note, «* обязательные поля», the access line and the disclaimer are the
   full preview's: site.js still fills them, they are only not shown here. */
.qf.is-wide { max-width: 640px; }
.qf .order--preview { gap: 14px; }
.qf .order--preview > [data-back-top],
.qf .pv-buy__parts,
.qf [data-guest] > .mail-note,
.qf .pv-buy__who > .req-note,
.qf .pv-buy__access,
.qf .pv-note { display: none; }
.qf .pv-buy { padding: 0; border: 0; border-radius: 0; background: none; gap: 14px; }
.qf .pv-buy__act { gap: 14px; padding-top: 0; border-top: 0; }
.qf .pv-buy__checkout { max-width: none; gap: 14px; }
/* The first tariff at its promo price instead of the tariffs; a pack picked by its button brings them back */
.qf:not([data-plans="open"]) .pv-plans { display: none; }
.qf[data-plans="open"] .pv-promo,
.qf .pv-buy__act:has(.pv-plans[hidden]) .pv-promo { display: none; }
.qf [data-guest] .check { align-items: center; font-size: 13px; }

.pv-top__sub { margin-top: -6px; font-size: 14px; color: var(--muted); }

.pv-house { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pv-house__label { font-size: 13px; color: var(--muted); }
.pv-house__deals { margin-top: 2px; font: 800 26px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.pv-house__since { font-size: 14px; color: var(--muted); }
.pv-house__sale { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pv-house__sale b { color: var(--ink); white-space: nowrap; }
.pv-house__lock { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.pv-house__lock .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ink); }
.pv-house__lock b { color: var(--ink); }
/* The line of meaning: a signal by the methodology reads as a warning, the counts stay ink */
.pv-house__signal { display: flex; gap: 10px; align-items: flex-start; font-size: 22px; line-height: 1.2; color: var(--red); }
.pv-house__signal .i { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* Step 2 (site.partials.order-details): the house's block, then the flat's fields under one title */
.od { gap: 14px; }
.od__fields { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.od__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.od__fields .field__input.is-invalid { border-color: var(--red); }

/* Step 2's complex or house (site.partials.order-place): a complex page's boxes (complexes.css) in the
   form's card — here, not there: /order/ does not load complexes.css */
.op { display: grid; gap: 12px; }
.op__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.op__name { min-width: 0; }
.op__kicker { font-size: 13px; color: var(--muted); }
.op__title { margin: 2px 0 4px; font: 800 28px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.op__address { font-size: 14px; color: var(--muted); }
.op__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.op__chips:empty { display: none; }
.op__chip { padding: 5px 10px; border-radius: 8px; background: var(--bg-tint); font-size: 13px; font-weight: 700; color: var(--ink); }
.op__next { flex: none; gap: 8px; }
.op-box { padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.op-box h3 { margin-bottom: 8px; font: 800 19px/1.25 var(--font-display); color: var(--ink); }
.op-box p + p { margin-top: 6px; }
.op-box b { color: var(--ink); }
.op-box__strong { font-weight: 700; color: var(--ink); }
.op-box__note { font-size: 13px; color: var(--muted); }
.op-box__caption { margin-top: 12px; }
.op-big { font: 800 32px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.op-trend--up { color: var(--green); }
.op-trend--down { color: #B4442A; }
.op-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.op-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg-tint); }
.op-tile b { font-size: 21px; }
.op-tile span { font-size: 13px; color: var(--muted); }
.op-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 15px; }
.op-table th { padding: 8px 0; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); }
.op-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.op-table th:last-child, .op-table td:last-child { text-align: right; }
.op-more summary { margin-top: 10px; color: var(--brand-600); font-weight: 700; cursor: pointer; }
.op-lock { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-tint); color: var(--brand-600); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.op-sales { margin-bottom: 10px; }
.op-sales li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.op-sales li div { display: flex; flex-direction: column; }
.op-sales li span { font-size: 13px; color: var(--muted); }
.op-sales__lock { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-tint); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.op-lock:hover, .op-sales__lock:hover { border-color: var(--brand-300); }
.op-houses li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.op-houses small { flex: none; font-size: 13px; color: var(--muted); }
.op-source { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .op__title { font-size: 24px; }
  .op__next { padding-inline: 14px; }
  .op-big { font-size: 28px; }
}

/* «Как работает проверка»: the link to the video and its dialog */
.vlink { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); }
.vlink:hover { border-color: var(--navy-700); }
.vlink__play { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.vlink__play svg { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; }
.vlink__len { font-weight: 500; color: var(--muted); }
.vpop { width: min(92vw, calc((100dvh - 48px) * 9 / 16)); max-width: 420px; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.vpop::backdrop { background: rgba(6, 14, 28, .78); }
.vpop__video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 48px); aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }
.vpop__close { position: absolute; z-index: 1; top: -14px; right: -14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.vpop__close .i { width: 18px; height: 18px; stroke-width: 2.4; }
@media (max-width: 640px) {
  .vpop__close { top: 8px; right: 8px; }
}

/* ---------- The home page's first screen: the promise and the price, the form beside or under it ---------- */
.hero--flow { overflow: visible; padding: 14px 0 32px; background: radial-gradient(520px 300px at 100% 0%, rgba(45,140,255,.10), transparent 65%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.hf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hf__kicker { display: none; }
.hf__title { font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.hf__sub { margin-top: 8px; font-size: 15px; line-height: 1.42; color: var(--ink-2); }
.hf__video { margin-top: 12px; }
.hf__sub b { color: var(--ink); font-weight: 600; }
.hf__price { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hf .hero-price__cell { padding: 2px 10px 6px 0; }
.hf .hero-price__cell--deals { margin-left: 10px; padding: 6px 12px 8px; border-radius: 12px; }
.hf .hero-price__label { font-size: 13px; }
.hf .hero-price__value { margin-top: 2px; font-size: 24px; }
.hf__bargain { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.hf__bang { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--amber-50); color: var(--amber); font-weight: 800; font-size: 16px; line-height: 1; }
.hf__bargain b { font-size: 16px; line-height: 1.3; color: var(--ink); }
.hf .hero-price__sample { margin: 10px 0 0; font-size: 14px; }
.hf .qf { width: 100%; max-width: 640px; margin: 0; padding: 16px 14px 14px; }
/* The figures under the hero do not ride up over the form, as they do over the old hero's tall bottom */
.hero--flow + .facts { margin-top: 24px; }

/* Steps 2 and 3 in place: the promise and the rest of the page step aside */
.hero--flow:has([data-stage="details"], [data-stage="teaser"]) :is(.hf__copy, .hf__ex) { display: none; }
.hero--flow:has([data-stage="details"], [data-stage="teaser"]) ~ * { display: none; }
.hero--flow:has([data-stage="details"], [data-stage="teaser"]) .hf .qf { margin-inline: auto; padding: 22px 16px 20px; }

@media (min-width: 641px) {
  .hero--flow { padding: 36px 0 56px; }
  .hf { gap: 24px; justify-items: center; }
  .hf__copy, .hf__ex { width: 100%; max-width: 640px; }
  .hf__kicker { display: inline-flex; }
  .hf__title { font-size: 38px; }
  .hf__sub { margin-top: 14px; font-size: 18px; line-height: 1.5; }
  .hf__price { padding: 20px; }
  .hf .hero-price__value { font-size: 30px; }
  .hf .qf { padding: 24px; }
  .hero--flow:has([data-stage="details"], [data-stage="teaser"]) .hf .qf { padding: 32px; }
}
/* Wide: the promise and the price left, the form right */
@media (min-width: 1000px) {
  .hero--flow { padding: 64px 0 88px; }
  /* The example over the form in the right column; the promise spans both rows on the left */
  .hf { grid-template-columns: minmax(0, 1fr) 460px; grid-template-areas: "copy ex" "copy form" "copy ."; grid-template-rows: auto auto 1fr; gap: 0 64px; align-items: start; justify-items: stretch; }
  .hf__copy { grid-area: copy; }
  .hf__ex { grid-area: ex; max-width: none; margin-bottom: 16px; }
  .hf > .qf { grid-area: form; }
  .hf__copy { max-width: none; padding-top: 8px; }
  .hf__title { font-size: 46px; }
  .hf__sub { font-size: 19px; max-width: 560px; }
  .hf__price { margin-top: 32px; max-width: 560px; padding: 24px; }
  .hf .hero-price__value { font-size: 34px; }
  .hf__bargain b { font-size: 18px; }
  .hero--flow:has([data-stage="details"], [data-stage="teaser"]) .hf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form"; grid-template-rows: auto; }
}
@media (max-width: 360px) {
  .hf__title { font-size: 23px; }
  .hf .hero-price__value { font-size: 21px; }
}
/* The picked complex before its address in the street field (site.js showComplex): a label over the input */
.street-complex { position: absolute; top: 50%; transform: translateY(-50%); max-width: 55%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); pointer-events: none; }
.street-complex b { font-weight: 700; }
.street-complex[hidden] { display: none; }

/* A house in a complex: the way to the complex's page under the kicker */
.op__complex { margin: 2px 0 0; font-size: 14px; }
.op__complex a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.op-houses a { color: var(--brand-600); text-decoration: none; }

/* A part of the page for one city of the site (data-site-city): only the picked city's is shown, and the
   wrapper is not a box of its own — the card inside keeps its place in the hero's grid. */
.site-city:not([hidden]) { display: contents; }

/* Step 3: what the report adds, short lines under the button */
.pv-buy__short { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pv-buy__short p { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.pv-buy__short ul { margin: 0; padding-left: 18px; }
.pv-buy__short li + li { margin-top: 2px; }
/* The full preview lists the report's parts as cards already */
.order--preview:not(.qf *):not(.pc *) .pv-buy__short { display: none; }

/* The purchase button's copy at the bottom while the real one is below the screen (site.js) */
.pv-sticky { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 18px rgba(16, 24, 40, .08); }
.pv-sticky[hidden] { display: none; }
.pv-sticky .btn { max-width: 640px; margin: 0 auto; }
/* Over the phone's bottom menu, not under it */
@media (max-width: 900px) { body:has(.tabbar) .pv-sticky { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; } }

/* «Пример отчёта» beside the search: small, under the address, not competing with «Далее» */
.qf-form__sample { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 14px; font-weight: 600; color: var(--brand-600); text-decoration: none; }
.qf-form__sample:hover { text-decoration: underline; }
