/* RabinBIM — «окно Revit»: сайт устроен как программа. Лента, диспетчер проекта, вкладки видов, палитра свойств. */
:root { --ui: #E9ECF1; --ui2: #DDE2EA; --panel: #F6F8FB; --line: #C9D0DB; --txt: #1B1F24; --muted: #5E6773; --acc: #1677FF; --acc-d: #1559A6; --good: #237804; --bad: #C62828;
  --ink: #1B1F24; --paper: #fff; --graphite: #5E6773; --hair: #C9D0DB; --accent: #1677FF; --text: #1B1F24; --s3: #C9D0DB; --s4: #9AA3B0; --signal: #1677FF; --good: #17B26A;
  --sp-75: 8px; --sp-100: 12px; --sp-200: 16px; --sp-300: 24px; --sp-50: 4px; --sp-25: 2px; --muted: #5E6773; --ease: cubic-bezier(0.22, 1, 0.36, 1); --r-lg: 4px; --r-xl: 6px; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 13px/18px "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--txt); background: var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 32px 26px auto minmax(0, 1fr) 24px; width: 100%; height: 100dvh; overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 8px; padding-left: 10px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; }
.ttitle { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlogo { filter: invert(1) hue-rotate(180deg); }
.tctl { display: flex; height: 100%; } .tctl b { width: 46px; position: relative; } .tctl b::after { content: ""; position: absolute; left: 18px; top: 15px; width: 10px; height: 1px; background: #555; }
.tctl b:nth-child(2)::after { top: 11px; height: 9px; background: none; border: 1px solid #555; } .tctl b:nth-child(3)::after { top: 10px; left: 17px; width: 12px; height: 12px; background: linear-gradient(45deg, transparent 5px, #555 5px, #555 6.5px, transparent 6.5px), linear-gradient(-45deg, transparent 5px, #555 5px, #555 6.5px, transparent 6.5px); }
.rtabs { display: flex; align-items: flex-end; gap: 2px; padding: 0 8px; background: var(--ui); overflow-x: auto; scrollbar-width: none; }
.rtabs span { padding: 4px 14px 3px; color: var(--muted); white-space: nowrap; }
.rtabs .on { background: var(--panel); color: var(--acc-d); font-weight: 600; border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0; }
.ribbon { display: flex; align-items: stretch; gap: 0; padding: 6px 8px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; }
.rgroup { display: flex; flex-direction: column; padding: 0 8px 0 8px; border-right: 1px solid var(--line); min-width: max-content; }
.rgroup b { text-align: center; font-weight: 400; font-size: 11px; color: var(--muted); padding: 3px 0 4px; }
.rrow { display: flex; gap: 2px; flex: 1; }
.rbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 6px 2px 4px; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 11.5px; line-height: 14px; text-align: center; transition: background-color 150ms, border-color 150ms; }
.rbtn:hover { background: #E4EEFF; border-color: #A9C8FF; } .rbtn.on { background: #CFE2FF; border-color: var(--acc); }
.rcol { display: flex; flex-direction: column; gap: 1px; justify-content: center; flex: 1; }
.rsmall { text-align: left; padding: 3px 12px; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; } .rsmall:hover { background: #E4EEFF; border-color: #A9C8FF; }
.rdl { margin-left: auto; border-right: 0; }
.rdl button.rbig { border: 0; cursor: pointer; }
[data-installer-download]:disabled { cursor: wait; }
.rbig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; padding: 6px 18px; background: var(--acc); color: #fff; text-decoration: none; border-radius: 3px; font-weight: 600; text-align: center; line-height: 14px; font-size: 12px; transition: background-color 150ms; } .rbig:hover { background: var(--acc-d); }
.work { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; min-height: 0; background: var(--ui); }
.pane-h { padding: 5px 10px; background: var(--ui2); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 12px; }
.browser, .props { background: var(--panel); border-right: 1px solid var(--line); overflow: auto; min-height: 0; } .props { border-right: 0; border-left: 1px solid var(--line); }
.tree { padding: 6px 0; } .tree ul { padding-left: 14px; }
.node { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 10px; background: transparent; border: 0; text-align: left; text-decoration: none; color: inherit; cursor: pointer; } .node:hover { background: #E4EEFF; }
.node.on { background: var(--acc); color: #fff; } .folder { font-weight: 600; cursor: default; } .folder::before { content: "▾"; font-size: 10px; color: var(--muted); } .folder small { color: var(--muted); font-weight: 400; }
.ic { width: 16px; text-align: center; color: var(--acc-d); } .node.on .ic { color: #fff; } .node img { filter: none; }
.canvas { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.vtabs { display: flex; gap: 1px; background: var(--ui2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; min-height: 28px; }
.vtab { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; background: var(--ui); border: 0; border-right: 1px solid var(--line); cursor: pointer; white-space: nowrap; } .vtab[aria-selected="true"] { background: #fff; font-weight: 600; box-shadow: inset 0 2px 0 var(--acc); }
.vtab .x { width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 2px; color: var(--muted); } .vtab .x:hover { background: #ddd; color: #000; }
.views { flex: 1; overflow: auto; min-height: 0; position: relative; }
.view { min-height: 100%; } .view[hidden] { display: none; }
.view-head { padding: 28px 32px 8px; max-width: 760px; } .view-head h2 { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; } .view-head p { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
.stage-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 32px 40px; background-image: radial-gradient(#d5dae2 1px, transparent 1px); background-size: 20px 20px; min-height: calc(100% - 90px); gap: 12px; }
.shot-body img { width: 100%; max-width: 900px; height: auto; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(20, 30, 50, 0.16); background: #fff; }
.home {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: #fff;
}
.home-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(16px, 4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(20, 30, 50, 0.14);
  border-radius: 6px;
}
.home-card p { font-size: 15px; line-height: 22px; color: #3b434e; }
.home-card .eyebrow { font-size: 12px; font-weight: 600; color: var(--acc-d); text-transform: uppercase; letter-spacing: 0.06em; }
.home-card h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.11; font-weight: 600; letter-spacing: -0.02em; }
.home-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.home-cta .zip-download { color: var(--acc-d); background: #fff; border-color: var(--line); text-align: left; }
.home-cta .zip-download:hover:not(:disabled) { background: #e4eeff; border-color: #a9c8ff; }
.home-cta .zip-download:disabled { color: var(--muted); cursor: wait; }
.home-card .zip-download-status { margin: -8px 0 16px; color: var(--muted); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.zip-download-status:empty { display: none; }
.proof { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.proof dt { font-size: 28px; line-height: 30px; font-weight: 600; }
.proof dd { color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; align-items: center; padding: 8px 16px; background: var(--acc); color: #fff; border: 1px solid var(--acc); border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; } .btn:hover { background: var(--acc-d); }
.btn.ghost { background: #fff; color: var(--txt); border-color: var(--line); font-weight: 400; } .btn.ghost:hover { background: #E4EEFF; border-color: #A9C8FF; }
.how { padding: 8px 32px 32px; max-width: 760px; } .how li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); } .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 20px; font-weight: 600; display: grid; place-items: center; }
.how h3 { font-size: 18px; line-height: 24px; font-weight: 600; } .how p { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 4px; }
.tiers { padding: 8px 32px 32px; max-width: 760px; } .tiers table { width: 100%; border-collapse: collapse; font-size: 14px; } .tiers th { text-align: left; background: var(--ui2); padding: 8px 12px; font-size: 12px; border: 1px solid var(--line); } .tiers td { padding: 8px 12px; border: 1px solid var(--line); } .tiers tr:nth-child(even) td { background: #F6F8FB; }
.tg { padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; } .tg.free { background: #E5F6EE; color: #237804; } .tg.pro { background: #DDEBFF; color: #1559A6; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.faq { padding: 8px 32px 32px; max-width: 760px; } .faq details { border-bottom: 1px solid var(--line); } .faq summary { padding: 14px 4px; cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; } .faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "+"; color: var(--acc-d); font-size: 18px; } .faq details[open] summary::after { content: "–"; } .faq p { padding: 0 4px 16px; color: #3b434e; font-size: 14px; line-height: 21px; max-width: 64ch; }
.pbody { padding: 12px; } .pthumb { display: grid; place-items: center; height: 96px; background: #fff; border: 1px solid var(--line); } .pthumb img { filter: invert(1) hue-rotate(180deg); }
.pname { margin: 10px 0 8px; font-weight: 600; font-size: 14px; } .ptable { width: 100%; border-collapse: collapse; } .ptable th, .ptable td { padding: 4px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; } .ptable th { background: var(--ui); width: 42%; color: var(--muted); }
.pdesc { margin: 12px 0 8px; color: #3b434e; } .plink { color: var(--acc-d); }
.status { display: flex; align-items: center; gap: 18px; padding: 0 10px; background: var(--ui2); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); } .grow { flex: 1; }
@media (max-width: 560px) {
  .status:has([data-download-status]) > span:not(#s-view) { display: none; }
}
.qr-body { gap: 20px; } .qr { position: relative; width: 168px; height: 168px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(20,30,50,.16); overflow: hidden; } .qr-grid { display: grid; grid-template-columns: repeat(11, 1fr); width: 100%; height: 100%; } .qr-grid i.k { background: #111; }
.scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: scan 2.6s ease-in-out infinite alternate; } @keyframes scan { from { top: 8%; } to { top: 92%; } }
.qr-cap { display: flex; gap: 10px; align-items: center; } .qr-cap b { padding: 2px 8px; background: #17B26A; color: #fff; border-radius: 10px; font-weight: 600; }
.lesson-body { gap: 18px; } .mini { display: flex; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(20,30,50,.16); } .rb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 8px 2px; font-size: 12px; text-align: center; } .rb img { width: 32px; height: 32px; }
.rb.target .ring { position: absolute; inset: -4px; border: 2px solid #FF4F1A; border-radius: 4px; animation: ring 1.6s ease-in-out infinite; } @keyframes ring { 50% { transform: scale(1.08); opacity: .5; } }
.coach { width: min(420px, 100%); padding: 14px 16px; background: #1B1F24; color: #fff; border-radius: 6px; } .coach .step { position: relative; height: 22px; font-size: 14px; } .coach .step span { position: absolute; inset: 0; opacity: 0; animation: coach 9s infinite; } .coach .step .s2 { animation-delay: 3s; } .coach .step .s3 { animation-delay: 6s; }
@keyframes coach { 0%, 4% { opacity: 0; transform: translateY(6px); } 8%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } } .coach .bar { margin-top: 10px; height: 4px; background: rgba(255,255,255,.2); } .coach .bar i { display: block; height: 100%; width: 0; background: var(--acc); animation: prog 9s linear infinite; } @keyframes prog { to { width: 100%; } }
@media (max-width: 1100px) { .work { grid-template-columns: 210px minmax(0, 1fr); } .props { display: none; } }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } .browser { display: none; } .rtabs { display: none; } .app { grid-template-rows: 32px auto minmax(0, 1fr) 24px; } .view-head, .how, .tiers, .faq { padding-left: 16px; padding-right: 16px; } .stage-body { padding: 16px 8px; } .ttitle { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }

.rpanels { display: flex; flex: none; }
.rpanels[hidden] { display: none; }
.rsections .rsmall[aria-pressed="true"] { background: #CFE2FF; border-color: var(--acc); font-weight: 600; }
.rsections { min-width: 56px; }
.rmenu { display: flex; }
.rmenu-pop {
  position: fixed; inset: auto; margin: 0; width: min(240px, calc(100vw - 8px));
  padding: 4px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel); color: var(--txt); box-shadow: 0 6px 18px #14203233;
}
.rmenu-pop .rbtn { flex-direction: row; width: 100%; min-height: 36px; gap: 8px; padding: 3px 8px; text-align: left; }
.rmenu-pop img { width: 24px; height: 24px; }

.ribbon > .rgroup:has(.rsections) {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
}

.ribbon > .rdl { position: sticky; left: 0; z-index: 2; flex: 0 0 108px; min-width: 108px; margin-left: 0; background: var(--panel); border-right: 1px solid var(--line); }
.ribbon > .rgroup:has(.rsections) { left: 108px; }
.guide-page { max-width: 960px; padding: clamp(16px, 4vw, 32px); line-height: 1.55; overflow-wrap: anywhere; }
.guide-page h1, .guide-page h2 { font-size: 24px; line-height: 1.2; margin: 12px 0; }
.guide-page h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.guide-page h3 { font-size: 18px; margin: 18px 0 6px; }
.guide-page h4 { font-size: 15px; margin: 14px 0 6px; }
.guide-page dl.defs dt { font-weight: 600; color: var(--txt); margin-top: 10px; }
.guide-page dl.defs dd { margin: 2px 0 8px 16px; color: #3b434e; }
.guide-page .tag { flex-shrink: 0; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.guide-page .tag.free { background: #E5F6EE; color: #237804; }
.guide-page .tag.pro { background: #DDEBFF; color: #1559A6; }
.guide-page p, .guide-page figure { margin: 8px 0; }
.guide-page ol, .guide-page ul:not(.guide-index) { padding-left: 22px; margin: 8px 0; }
.guide-page ol { list-style: decimal; }
.guide-page ul:not(.guide-index) { list-style: disc; }
.guide-page li + li { margin-top: 4px; }
.guide-page img { max-width: 100%; height: auto; }
.guide-page figcaption { color: var(--muted); }
.guide-page a { color: var(--acc-d); }
.guide-page table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; overflow-wrap: normal; }
.guide-page th, .guide-page td { padding: 5px 8px; border: 1px solid var(--line); }
.guide-page td:first-child { white-space: nowrap; }
.guide-index { max-width: 760px; border: 1px solid var(--line); background: var(--panel); }
.guide-index li + li { margin-top: 0; border-top: 1px solid var(--line); }
.guide-index .node { min-height: 32px; justify-content: space-between; gap: 10px; }

@media (min-width: 761px) {
  .guide-page::after { content: ""; display: block; clear: both; }
  .guide-page .shot.side { float: right; max-width: 280px; margin: 4px 0 12px 20px; }
  .guide-page .shot.side.side-l { max-width: 280px; }
}

@media (max-width: 760px) {
  .guide-page .shot.side { float: none; max-width: 100%; }
  .guide-page .shot.side img { max-height: 420px; width: auto; object-fit: contain; }
}
.guide-back, .guide-link { color: var(--acc-d); }
.guide-link { margin-top: 6px; }

.inline-guide { border-top: 1px solid var(--line); }
.guide-preview { min-height: 0; }
.guide-preview img { width: auto; max-width: min(100%, 900px); }
