/* Тестовая площадка тендеров CRT: слой демо поверх стилей пилота (style.css). Цвета — токены пилота. */

/* полоса «это демо» над рабочей областью */
.demo-strip { display: flex; align-items: center; gap: 12px; padding: 10px 36px; background: linear-gradient(90deg, #e7f7fb, #f2fbfd); border-bottom: 1px solid #cfeaf2; font-size: 13.5px; color: var(--ink); }
.demo-strip p { margin: 0; flex: 1; min-width: 0; line-height: 1.4; }
.demo-strip p b { font-weight: 800; }
.ds-badge { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--cyan-dark); border-radius: 6px; padding: 3px 8px; }
.ds-tour, .ds-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.ds-tour { background: #fff; border: 1px solid #bfe3ee; color: var(--cyan-dark); }
.ds-tour:hover { border-color: var(--cyan); }
.ds-cta { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.ds-cta:hover { background: var(--navy-2); }

/* «здесь будет ваше»: пунктир и ярлык */
.yours { position: relative; outline: 1.5px dashed #5fd6ef99; outline-offset: 6px; border-radius: 6px; }
.ytag { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1; text-transform: uppercase; color: var(--cyan-dark); background: var(--cyan-pale); border: 1px dashed var(--cyan); border-radius: 999px; padding: 5px 9px; }
.brand .ytag, .mobile-brand .ytag { color: #5fd6ef; background: #ffffff10; border-color: #5fd6ef88; }
.brand .ytag { display: block; width: max-content; margin: 12px 0 0; }
.brand-note { display: block; margin: 8px 0 0; font-size: 12px; color: #8fa1b5; line-height: 1.35; }

/* подсказка «?» */
.dq { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; padding: 0; vertical-align: middle; border-radius: 50%; border: 1.5px solid var(--cyan); background: #fff; color: var(--cyan-dark); font: 800 12px/1 'Nunito Sans', system-ui, sans-serif; letter-spacing: 0; text-transform: none; flex: none; cursor: help; transition: background .15s, color .15s; }
.dq:hover, .dq:focus-visible { background: var(--cyan); color: #fff; }
h1 .dq { width: 24px; height: 24px; font-size: 14px; margin-left: 10px; position: relative; top: -2px; }
.subtitle .dq { width: 18px; height: 18px; font-size: 11px; margin-left: 6px; }
.panel-title .dq { margin-left: 6px; }
.dq-pop { position: fixed; z-index: 75; width: min(300px, calc(100vw - 24px)); background: var(--navy); color: #dbe5ef; border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 40px #0d182640; font-size: 13.5px; line-height: 1.45; animation: dq-in .16s ease-out; }
.dq-pop b { display: block; color: #fff; font-weight: 800; margin-bottom: 3px; }
.dq-pop p { margin: 0; }
@keyframes dq-in { from { opacity: 0; transform: translateY(4px); } }

/* призыв в боковой панели */
.side-cta { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, #1f3a55, #182c44); border: 1px solid #ffffff1c; color: #c3d3e2; font-size: 12.5px; line-height: 1.4; }
.side-cta b { color: #fff; font-size: 13.5px; font-weight: 800; }
.side-cta .btn { margin-top: 6px; justify-content: center; background: var(--cyan); border-color: var(--cyan); color: #06243a; font-weight: 800; }
.side-cta .btn:hover { background: #3fc8e6; }
button.side-guide { background: none; border: 0; text-align: left; width: 100%; }
.mobile-brand .ytag { margin-left: 6px; font-size: 9.5px; padding: 3px 6px; }

/* блок «настроим под вас» на страницах «Поиск» и «Компания» */
.demo-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--cyan); background: var(--cyan-pale); }
.demo-cta b { font-size: 16px; font-weight: 800; }
.demo-cta p { margin: 4px 0 0; color: var(--muted); max-width: 52em; }
.demo-cta .btn { flex: none; }

/* приветствие */
.wel { border: 0; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 18px; color: var(--ink); box-shadow: 0 30px 80px #0d182655; overflow: auto; }
.wel::backdrop { background: #0d1826a8; }
.wel__top { background: var(--navy); color: #c3d3e2; padding: 24px 26px 22px; position: relative; overflow: hidden; }
.wel__top::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid #ffffff0d; border-top-color: #17b8dc55; }
.wel__k { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5fd6ef; }
.wel h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.3px; color: #fff; font-weight: 800; max-width: 15em; }
.wel__lead { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 34em; }
.wel__steps { list-style: none; margin: 0; padding: 20px 26px 4px; display: grid; gap: 12px; counter-reset: w; }
.wel__steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; counter-increment: w; }
.wel__steps li::before { content: counter(w); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--cyan-pale); color: var(--cyan-dark); font-weight: 800; }
.wel__steps b { display: block; font-weight: 800; }
.wel__steps span { color: var(--muted); font-size: 13.5px; }
.wel__note { margin: 14px 26px 0; padding: 10px 12px; border-radius: 10px; background: #f4f7f9; color: var(--muted); font-size: 13px; }
.wel__act { display: flex; gap: 10px; padding: 18px 26px 24px; flex-wrap: wrap; }
.wel__act .btn { min-height: 44px; padding: 0 18px; font-weight: 800; }
.wel__act .btn.primary { background: var(--cyan); border-color: var(--cyan); color: #06243a; }

/* тур */
.touring body { overflow: hidden; }
.tour-block { position: fixed; inset: 0; z-index: 80; }
.tour-hole { position: fixed; z-index: 81; border-radius: 12px; box-shadow: 0 0 0 9999px #0d1826b3; outline: 2px solid var(--cyan); pointer-events: none; transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease; }
.tour-pop { position: fixed; z-index: 82; width: 360px; max-width: calc(100vw - 24px); background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px 16px; box-shadow: 0 24px 60px #0d18264d; transition: top .28s ease, left .28s ease, opacity .15s; }
.tour-pop.is-busy { opacity: 0; }
.tour-pop .tp-k { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-dark); }
.tour-pop h3 { margin: 0 28px 6px 0; font-size: 18px; line-height: 1.25; font-weight: 800; }
.tour-pop .tp-p { margin: 0; color: #3d5068; font-size: 14px; line-height: 1.5; }
.tp-act { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tp-act button, .tp-act a { min-height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; }
.tp-back, .tp-skip, .tp-stay { background: none; border: 1px solid var(--border); color: var(--muted); }
.tp-next { margin-left: auto; background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.tp-next:hover { background: var(--navy-2); }
a.tp-next { background: var(--cyan); border-color: var(--cyan); color: #06243a; }
.tp-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 22px; line-height: 1; }
.tp-x:hover { background: #f2f5f7; color: var(--ink); }

@media (max-width: 860px) {
  .demo-strip { flex-wrap: wrap; padding: 10px 16px; gap: 8px 10px; font-size: 13px; }
  .demo-strip p { flex-basis: calc(100% - 70px); }
  .ds-more { display: none; }
  .ds-tour, .ds-cta { flex: 1; justify-content: center; min-height: 38px; }
  .demo-cta { flex-direction: column; align-items: stretch; }
  .wel h2 { font-size: 22px; }
  .wel__top { padding: 20px 20px 18px; }
  .wel__steps { padding: 16px 20px 2px; }
  .wel__note { margin: 12px 20px 0; }
  .wel__act { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  .wel__act .btn { flex: 1; justify-content: center; }
  .tour-pop.is-sheet { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); top: auto; }
  .tour-pop.is-sheet.is-top { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
  h1 .dq { width: 22px; height: 22px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-pop { transition: none; } }
