/* РемонтБот, главная 2026-10: CRM для сервисного центра.
   Поверх sv2026.css. Каркас каждого блока свой (DESIGN.md §3, п. 19). */

.rb-h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.rb-dark .rb-h2 { color: #fff; }
.rb-p { font-size: 16.5px; line-height: 1.62; color: var(--body); max-width: 36em; }
.rb-p + .rb-p { margin-top: 12px; }
.rb-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--orange-ink); }
.rb-more svg { width: 18px; height: 10px; }
.rb-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rb-cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* оправа снимка: тонкая линия со смещением, оранжевая скоба, мягкая тень */
.rb-shot { position: relative; }
.rb-shot__in { position: relative; background: #fff; box-shadow: var(--shadow-lift); overflow: hidden; }
.rb-shot__in img { width: 100%; }
.rb-shot::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid var(--line); z-index: -1; }
.rb-shot::after { content: ""; position: absolute; left: -7px; top: -7px; width: 26px; height: 26px;
  border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); }
.rb-dark .rb-shot::before { border-color: var(--dark-line); }

/* --- шапка ------------------------------------------------ */
.rb-nav-dd { position: relative; }
.rb-nav-dd summary { list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.rb-nav-dd summary::-webkit-details-marker { display: none; }
.rb-nav-dd summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.rb-nav-dd[open] summary, .rb-nav-dd summary:hover { color: var(--orange-ink); }
.rb-nav-dd__list { position: absolute; left: -18px; top: calc(100% + 16px); z-index: 80; width: 300px; padding: 8px 0;
  background: #fff; box-shadow: var(--shadow-lift); border-top: 2px solid var(--orange); }
.rb-nav-dd__list a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: normal; }
.rb-nav-dd__list a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.rb-nav-dd__list a:hover { background: var(--paper); color: var(--orange-ink); }

/* --- первый экран ----------------------------------------- */
.rb-hero { padding-block: 28px 0; }
.rb-hero__grid { display: grid; gap: 28px; }
.rb-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
.rb-hero h1 mark { background: none; color: var(--orange); }
.rb-hero .sv-lede { margin-top: 16px; max-width: 32em; }
.rb-hero .co-trial { font-size: 14.5px; color: var(--body); }
.rb-hero__shot .rb-shot__in img { aspect-ratio: auto; }

/* сигнатура: реестр разделов, как строки списка заказов */
.rb-reg { margin-top: 34px; position: relative; z-index: 2; background: #fff; box-shadow: var(--shadow-lift); }
.rb-reg__head { display: none; }
.rb-reg ol { list-style: none; margin: 0; padding: 0; counter-reset: reg; }
.rb-reg li { border-top: 1px solid var(--line-soft); }
.rb-reg li:first-child { border-top: 0; }
.rb-reg a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 4px 12px; align-items: center; padding: 14px 16px; color: var(--body); }
.rb-reg a:hover { background: var(--paper); }
.rb-reg__n { grid-row: span 2; font-weight: 800; font-size: 13px; color: var(--orange-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rb-reg__t { font-weight: 800; font-size: 16px; color: var(--ink); }
.rb-reg__d { grid-column: 2; font-size: 14px; line-height: 1.45; }
.rb-reg__go { grid-column: 3; grid-row: 1 / span 2; width: 20px; height: 10px; color: var(--orange); }

/* --- SC-01 заказы ----------------------------------------- */
.rb-orders__grid { display: grid; gap: 34px; }
.rb-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; position: relative; max-width: 460px; }
.rb-steps::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--orange); }
.rb-steps li { position: relative; padding-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rb-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--orange); }
.rb-steps li:last-child::before { background: var(--orange); }
.rb-orders .rb-wait { margin-top: 22px; padding: 14px 16px; background: #fff; border-left: 3px solid var(--orange); font-size: 15px; line-height: 1.5; color: var(--body); max-width: 34em; }
.rb-orders .rb-wait b { color: var(--ink); }

/* --- SC-02 деньги ----------------------------------------- */
.rb-money { background: var(--paper-2); }
.rb-money::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px),
              repeating-linear-gradient(90deg, #C9C5BC 0 1px, transparent 1px 60px);
  background-size: auto 7px, auto 14px; background-repeat: repeat-x; opacity: .9; }
.rb-money__top { display: grid; gap: 14px; }
.rb-money .rb-shot { margin-top: 30px; }
.rb-notes { display: grid; gap: 22px; margin-top: 34px; counter-reset: note; }
.rb-note { position: relative; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; }
.rb-note__n { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--orange-ink); }
.rb-note h3 { margin-top: 6px; font-size: 19px; line-height: 1.25; }
.rb-note p { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.rb-note .rb-more { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* --- SC-03 люди: единственный тёмный блок ----------------- */
.rb-dark { background: var(--dark); color: var(--dark-text); }
.rb-dark .rb-p { color: var(--dark-text); }
.rb-dark .rb-cap { color: var(--dark-muted); }
.rb-dark::before { content: ""; position: absolute; right: 0; top: 0; width: 260px; height: 220px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.4px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%); mask-image: linear-gradient(225deg, #000, transparent 70%); }
.rb-people__grid { display: grid; gap: 34px; }
.rb-ledger { margin-top: 26px; border-top: 1px solid var(--dark-line); }
.rb-ledger div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.rb-ledger dt { font-weight: 800; color: #fff; font-size: 15.5px; }
.rb-ledger dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--dark-muted); }
.rb-dark .rb-more { color: var(--orange-hot); }
.rb-dark .rb-shot__in { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* --- SC-04 бот -------------------------------------------- */
.rb-bot { background: #fff; }
.rb-bot__grid { display: grid; gap: 34px; align-items: center; }
.rb-phone { justify-self: center; width: min(300px, 78vw); padding: 26px; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.rb-phone img { border-radius: 22px; box-shadow: 0 0 0 6px #15181B, var(--shadow-lift); }
.rb-chans { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.rb-chans figure { display: grid; justify-items: center; gap: 6px; width: 64px; }
.rb-chans img { width: 56px; height: 56px; }
.rb-chans figcaption { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; }
.rb-price-line { margin-top: 22px; font-size: 16px; color: var(--ink); }
.rb-price-line b { font-size: 22px; }
.rb-bot__links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 28px; }
.rb-bot__links .rb-more { flex: none; }

/* --- SC-05 переезд ---------------------------------------- */
.rb-move { background: var(--paper-2); overflow: hidden; }
.rb-move::after { content: ""; position: absolute; left: -40px; bottom: -30px; width: 420px; height: 260px; pointer-events: none;
  background: url("/images/field-hero-m.webp") left bottom / cover no-repeat; opacity: .35;
  -webkit-mask-image: linear-gradient(45deg, #000, transparent 70%); mask-image: linear-gradient(45deg, #000, transparent 70%); }
.rb-move__grid { display: grid; gap: 28px; }
.rb-move__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rb-num { padding-top: 12px; border-top: 2px solid var(--orange); }
.rb-num b { display: block; font-size: clamp(34px, 5vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rb-num span { display: block; margin-top: 8px; font-size: 14px; color: var(--body); }
.rb-move__from { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rb-move__from span { padding: 6px 12px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rb-move__note { margin-top: 14px; font-size: 14.5px; color: var(--body); }

/* --- SC-06 тарифы ----------------------------------------- */
.rb-plans { display: grid; gap: 16px; margin-top: 30px; }
.rb-plan { display: flex; flex-direction: column; padding: 24px 22px 24px; }
.rb-plan h3 { font-size: 20px; }

.rb-plan__tag { position: absolute; right: 22px; top: 24px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
/* цена размерной линией: число, приглушённый рубль, черта с засечками */
.rb-dim { position: relative; display: inline-flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-bottom: 12px; }
.rb-dim b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rb-dim span { font-size: 15px; color: var(--muted); }
.rb-dim::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--orange); }
.rb-dim::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-left: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.rb-plan dl { margin: 18px 0 0; }
.rb-plan dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.rb-plan dt { color: var(--body); }
.rb-plan dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.rb-plan__extra { margin: 14px 0 18px; font-size: 15px; line-height: 1.5; color: var(--body); }
.rb-plan .sv-btn { margin-top: auto; align-self: stretch; justify-content: center; }
.rb-botplan { margin-top: 16px; display: grid; gap: 14px; padding: 24px 22px; align-items: center; }
.rb-botplan h3 { font-size: 20px; }
.rb-botplan .rb-dim { margin-top: 0; }
.rb-botplan p { font-size: 15px; line-height: 1.55; }
.rb-trial { margin-top: 22px; font-size: 15px; line-height: 1.55; color: var(--body); max-width: 52em; }

@media (min-width: 700px) {
  .rb-reg ol { display: grid; grid-template-columns: repeat(5, 1fr); }
  .rb-reg li { border-top: 0; border-left: 1px solid var(--line-soft); }
  .rb-reg li:first-child { border-left: 0; }
  .rb-reg a { grid-template-columns: 1fr 22px; height: 100%; align-content: start; padding: 16px 16px 18px; }
  .rb-reg__n { display: none; }
  .rb-reg__go { grid-row: 1; grid-column: 2; }
  .rb-reg__t { grid-column: 1; grid-row: 1; }
  .rb-reg__d { grid-column: 1 / -1; }
  .rb-reg__head { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .rb-reg__head span { padding: 9px 16px; border-left: 1px solid rgba(255,255,255,.12); }
  .rb-reg__head span:first-child { border-left: 0; }
  .rb-notes { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .rb-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .rb-botplan { grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px; }
  .rb-ledger div { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
}

@media (min-width: 1000px) {
  .rb-hero { padding-block: 52px 0; }
  /* снимок шире текстовой колонки и выходит к краю окна с запасом 28 px (DESIGN.md §3) */
  .rb-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px 48px; align-items: center; }
  /* чертёжное поле под текстом пестрит: плотная бумажная подложка без blur */
  .rb-hero__side { padding: 22px 24px; background: rgba(243,241,235,.9); }
  .rb-hero h1 { font-size: clamp(44px, 4.4vw, 60px); }
  .rb-hero__side .sv-lede { margin-top: 0; }
  .rb-hero__side .sv-hero__acts { margin-top: 22px; }
  .rb-hero__shot { grid-column: 1 / -1; margin-top: 6px; }
  .rb-orders__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
  .rb-orders__shot { margin-right: calc(28px - var(--gut) - max(0px, (100vw - 17px - var(--wrap)) / 2)); }
  .rb-money__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .rb-money figure { max-width: 1040px; }
  /* ведомость — широкая таблица: в половине колонки текст снимка нечитаем, поэтому снимок под текстом на всю ширину */
  .rb-people__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 56px; align-items: start; }
  .rb-people__grid > figure { grid-column: 1 / -1; margin-top: 24px; }
  .rb-people__grid > figure img { max-height: 520px; object-fit: cover; object-position: top; }
  .rb-ledger { margin-top: 6px; }
  .rb-bot__grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 72px; }
  .rb-move__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}

@media (max-width: 999px) {
  .rb-hero__shot { order: 2; }
  .rb-hero__grid { gap: 18px; }
  /* в блоке сначала текст, кадр под ним (DESIGN.md §3, п. 14) */
  .rb-phone { order: 2; width: min(270px, 74vw); padding: 18px; }
  .rb-botplan .rb-more { justify-self: start; }
}

/* подвал: в узкой колонке «ИИ-администратор» ломался по дефису */
.sv-foot__menu[aria-label="Разделы сайта"] a { white-space: nowrap; }

/* правки по разбору критика 26.10 */
.sv-nav { background: var(--paper); }
.rb-hero__side { background: var(--paper); }
.rb-move__from span { padding: 0; background: none; font-size: 15px; }
.rb-move__from span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
@media (max-width: 699px) {
  .rb-reg { display: none; }
  .rb-chans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .rb-chans figure { width: auto; }
  .rb-chans img { width: 44px; height: 44px; }
  .rb-chans figcaption { font-size: 11px; }
}
/* hero: размытый растровый чертёж спорил с текстом (владелец 26.10) — ровная бумага и чёткая точечная сетка по правому краю */
.rb-hero .sv-hero__bg { background-image: none !important; }
.rb-hero .sv-hero__bg::after { display: none; }
.rb-hero .sv-hero__bg::before { top: 0; bottom: auto; height: 560px; color: rgba(21,24,27,.13);
  -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 55%, #000 100%); }
@media (min-width: 1000px) { .rb-hero__side { background: none; padding: 0; } }
/* SC-05 «Ещё в ChatOffice»: опись в три колонки на разлинованной бумаге */
.rb-more-sect { background: var(--paper) repeating-linear-gradient(180deg, transparent 0 31px, rgba(21,24,27,.055) 31px 32px); }
.rb-inv { display: grid; gap: 22px; margin-top: 30px; }
.rb-inv__col { background: #fff; box-shadow: var(--shadow-lift); }
.rb-inv__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rb-inv__head b { color: #E85708; font-variant-numeric: tabular-nums; }
.rb-inv ol { list-style: none; margin: 0; padding: 0; counter-reset: inv; }
.rb-inv li { counter-increment: inv; position: relative; padding: 16px 18px 18px 54px; border-top: 1px solid var(--line-soft); }
.rb-inv li:first-child { border-top: 0; }
.rb-inv li::before { content: counter(inv, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-size: 13px; font-weight: 800; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.rb-inv h4 { margin: 0; font-size: 17px; line-height: 1.3; color: var(--ink); }
.rb-inv h4 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.rb-inv h4 a svg { width: 18px; height: 10px; color: var(--orange); flex: none; }
.rb-inv h4 a:hover { color: var(--orange-ink); }
.rb-inv p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.rb-inv p a { color: var(--orange-ink); font-weight: 600; }
@media (min-width: 1000px) { .rb-inv { grid-template-columns: repeat(3, 1fr); align-items: start; } }
@media (min-width: 700px) {
  .rb-reg ol, .rb-reg__head { grid-template-columns: repeat(6, 1fr) !important; }
}
.rb-more-sect .rb-p { margin-top: 14px; }
.rb-inv__head { list-style: none; cursor: default; }
.rb-inv__head::-webkit-details-marker { display: none; }
@media (max-width: 699px) {
  .rb-inv__head { cursor: pointer; }
  .rb-inv__head b::after { content: " +"; }
  .rb-inv__col[open] .rb-inv__head b::after { content: " −"; }
}

/* ролик первого экрана вместо снимка реестра (26.10.2026) */
.rb-reel { background: #12161A; }
.rb-reel video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; }
.rb-reel__btn { position: absolute; right: 12px; top: 12px; min-height: 36px; padding: 0 14px; border: 0; background: rgba(18,22,26,.82); color: #fff; font: 600 13px/36px Inter, sans-serif; cursor: pointer; }
.rb-reel__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 699px) { .rb-reel video { aspect-ratio: 1000 / 1250; } }

/* ролик первого экрана на ПК не во всю сетку: владелец 26.10.2026 «очень большое» */
@media (min-width: 700px) { .rb-hero__shot { width: 100%; max-width: min(880px, calc((100vh - 220px) * 1.6)); margin-left: auto; margin-right: auto; } }
