/* Отдельный слой визуального редизайна. Старые стили и компоненты не удаляются. */
:root {
  --ux-blue: #2457d6;
  --ux-blue-dark: #173b91;
  --ux-blue-soft: #edf3ff;
  --ux-ink: #14233b;
  --ux-muted: #60708a;
}
.hero--scene {
  color: var(--ux-ink);
  background: #f5f8ff;
  border-bottom: 1px solid #e5ecf8;
}
.hero--scene .hero__title { color: var(--ux-ink); max-width: 760px; letter-spacing: -.035em; }
.hero--scene .lead { color: #40516d; max-width: 48ch; line-height: 1.65; }
.hero--scene .hero__chips a { color: var(--ux-blue-dark); border-bottom-color: #cbd8f0; }
.hero--scene .hero__chips a:hover,
.hero--scene .hero__chips a:focus-visible { color: var(--ux-blue); border-color: var(--ux-blue); }
.hero--scene .hero__note { color: var(--ux-muted); }
.hero--scene .hero__note a { color: var(--ux-blue); }
.hero--scene .btn--light { color: var(--ux-blue-dark); background: #fff; border: 1px solid #d7e1f2; }
.hero--scene .scene { padding: 12px; border: 1px solid #dfe8f7; border-radius: 24px; background: #eaf1fc; box-shadow: 0 18px 50px rgba(35, 72, 135, .10); }
.hero--scene .sc-card { color: var(--ux-ink); background: rgba(255,255,255,.94); border-color: #dce5f4; box-shadow: 0 8px 24px rgba(29,55,100,.08); }
.hero--scene .sc-card__title { color: var(--ux-ink); }
.hero--scene .sc-card__text { color: #52627a; }
.hero--scene .sc-card__tag { color: var(--ux-blue-dark); background: var(--ux-blue-soft); }
.hero--scene .sc-card__more { color: var(--ux-blue); }
.hero--scene .sc-card__close { color: var(--ux-ink); background: #edf2fa; }
.hero--scene .sc-tab { color: var(--ux-blue-dark); background: #fff; border-color: #d5e0f2; }
.hero--scene .sc-tab:hover,
.hero--scene .sc-tab.is-on { color: #fff; background: var(--ux-blue); border-color: var(--ux-blue); }
.hero--scene .sc-tab[aria-pressed="true"] { color: #fff; background: var(--ux-blue-dark); border-color: var(--ux-blue-dark); }
.direction-hub { padding-top: 72px; padding-bottom: 76px; }
.direction-hub__intro { max-width: 720px; margin-bottom: 28px; }
.direction-hub__eyebrow { margin: 0 0 10px; color: var(--ux-blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.direction-hub__intro h2 { margin: 0 0 12px; color: var(--ux-ink); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.direction-hub__intro > p:last-child { margin: 0; color: var(--ux-muted); font-size: 17px; line-height: 1.65; }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.direction-card { min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid #e1e8f3; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(28,55,100,.055); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.direction-card:hover { transform: translateY(-4px); border-color: #c4d5f4; box-shadow: 0 18px 42px rgba(28,55,100,.11); }
.direction-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.direction-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--ux-blue); background: var(--ux-blue-soft); font-size: 13px; font-weight: 800; }
.direction-card__label { color: var(--ux-muted); font-size: 13px; font-weight: 650; }
.direction-card h3 { margin: 0 0 12px; color: var(--ux-ink); font-size: 21px; line-height: 1.28; letter-spacing: -.02em; }
.direction-card > p { margin: 0 0 22px; color: #52627a; line-height: 1.6; }
.direction-card__result { display: grid; gap: 5px; margin-top: auto; margin-bottom: 22px; padding: 14px 15px; border-radius: 12px; background: #f5f8fd; color: #52627a; font-size: 14px; line-height: 1.5; }
.direction-card__result b { color: var(--ux-ink); font-size: 13px; }
.direction-card .btn { align-self: flex-start; }
@media (max-width: 900px) { .direction-grid { grid-template-columns: 1fr; } .direction-card { padding: 22px; } }
@media (max-width: 600px) {
  .hero--scene { padding-top: 28px; }
  .hero--scene .hero__title { font-size: clamp(28px, 8vw, 36px); }
  .hero--scene .scene { margin: 8px -4px 0; padding: 6px; border-radius: 16px; }
  .direction-hub { padding-top: 48px; padding-bottom: 52px; }
  .direction-card { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .direction-card { transition: none; }
  .direction-card:hover { transform: none; }
}
/* Офис — главный визуальный объект: увеличиваем существующую сцену, не меняя SVG-геометрию. */
@media (min-width: 981px) {
  .hero--scene .hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 34px; align-items: center; }
  .hero--scene .scene { max-width: 700px; }
  .hero--scene { padding-top: 48px; padding-bottom: 60px; }
}
.hero--scene .scene { isolation: isolate; }
.hero--scene .scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(67, 125, 226, .15), rgba(67, 125, 226, 0) 70%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero--scene .scene { max-width: 760px; margin-inline: auto; }
}


/* Единый помощник на страницах направлений: персонаж встроен в интерфейс, не перекрывает формы. */
.ux-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 920px;
  margin: 22px auto 30px;
  padding: 17px 21px;
  border: 1px solid #dce7fa;
  border-radius: 18px;
  background: linear-gradient(110deg, #f1f6ff 0%, #fff 72%);
  box-shadow: 0 8px 26px rgba(30, 65, 125, .055);
}
.ux-guide__avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #e5efff;
}
.ux-guide__avatar svg { display: block; width: 54px; height: 54px; }
.ux-guide__body { min-width: 0; }
.ux-guide__name {
  display: block;
  margin-bottom: 4px;
  color: var(--ux-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ux-guide__body p { margin: 0; color: #40516d; font-size: 15px; line-height: 1.55; }
@media (max-width: 600px) {
  .ux-guide { align-items: flex-start; gap: 12px; margin: 16px 16px 24px; padding: 14px; border-radius: 15px; }
  .ux-guide__avatar { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
  .ux-guide__avatar svg { width: 46px; height: 46px; }
  .ux-guide__body p { font-size: 14px; }
}


/* Единая подача коротких рабочих сценариев на страницах направлений. */
.ux-step-grid { margin: 22px 0 8px; }
.ux-step {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid #e1e9f6;
  border-radius: 17px;
  background: #fff;
}
.ux-step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 17px;
  border-radius: 11px;
  background: #edf3ff;
  color: #2457d6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ux-step h3 { margin-bottom: 8px; color: #172b4b; }
.ux-step p { margin: 0; line-height: 1.55; }
@media (max-width: 900px) {
  .ux-step-grid { grid-template-columns: 1fr; }
  .ux-step { min-height: 0; }
}


/* ИБ-помощник в стартовом состоянии интерактивного офиса. */
.hero--scene .sc-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.hero--scene .sc-guide__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eaf1ff;
}
.hero--scene .sc-guide__avatar svg { display: block; width: 44px; height: 44px; }
.hero--scene .sc-guide__copy { display: grid; gap: 2px; min-width: 0; }
.hero--scene .sc-guide__name { color: #173b91; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero--scene .sc-guide__hint { color: #52627a; font-size: 13px; line-height: 1.45; }



/* Композиция первого экрана v3: сцена и текст работают как единое полотно.
   Офис плавает справа, текст естественно обтекает его и раскрывается на всю ширину ниже. */
@media (min-width: 1100px) {
  .hero--scene { padding-top: 34px; padding-bottom: 52px; }
  .hero--scene .hero__title { max-width: 820px; margin-bottom: 22px; }
  .hero--scene .hero__grid { display: flow-root; }
  .hero--scene .scene {
    float: right;
    width: 66%;
    max-width: none;
    margin: -6px 0 22px 34px;
    padding: 8px;
    border-radius: 28px;
    background: linear-gradient(145deg,#f2f6ff,#e8effb);
    border: 1px solid #dce6f6;
    box-shadow: 0 22px 60px rgba(30,65,125,.12);
  }
  .hero--scene .sc-stage { width: 100%; margin: 0; }
  .hero--scene .hero__copy { min-width: 0; }
  .hero--scene .hero__copy .lead { max-width: 35ch; font-size: 18px; line-height: 1.72; }
  .hero--scene .hero__copy .actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero--scene .hero__flow { display:flex; align-items:center; gap:13px; margin-top:30px; padding:18px 0 0; border-top:1px solid #e0e8f4; color:#53647e; font-size:14px; font-weight:650; }
  .hero--scene .hero__flow i { width:24px; height:1px; background:#9bb2d7; position:relative; }
  .hero--scene .hero__flow i:after { content:""; position:absolute; right:0; top:-3px; width:6px; height:6px; border-top:1px solid #9bb2d7; border-right:1px solid #9bb2d7; transform:rotate(45deg); }
}
.hero--scene .sc-bots { display:none !important; }
.hero--scene .sc-callouts { display:none !important; }
.hero--scene .sc-tabs {
  display:flex !important;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:10px 4px 0;
}
.hero--scene .sc-tab {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 13px;
  border:1px solid #d7e2f3;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#365071;
  font-size:12px;
  font-weight:650;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.hero--scene .sc-tab:hover { transform:translateY(-2px); border-color:#9bb8eb; }
.hero--scene .sc-tab[aria-pressed="true"] { background:#2457d6; border-color:#2457d6; color:#fff; }
.hero--scene .sc-card { margin:12px 4px 2px; border-radius:16px; }
.hero--scene .sc-guide { padding:2px 0; }
.hero--scene .sc-guide__avatar { border-radius:12px; background:#edf3ff; }
.hero--scene .sc-guide__avatar svg { width:38px; height:38px; }
.hero--scene .hero__flow { display:none; }
@media (min-width: 701px) and (max-width: 1099px) {
  .hero--scene .hero__grid { display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr); gap:22px; align-items:center; }
  .hero--scene .scene { width:100%; max-width:none; margin:0; padding:8px; border-radius:22px; }
  .hero--scene .sc-stage { width:100%; }
}
@media (max-width:700px) {
  .hero--scene .hero__grid { display:flex; flex-direction:column; gap:14px; }
  .hero--scene .scene { order:2; width:100%; max-width:none; margin:0; padding:5px; border-radius:16px; }
  .hero--scene .hero__copy { order:1; }
  .hero--scene .sc-tabs { order:3; }
  .hero--scene .sc-card { order:4; }
  .hero--scene .hero__flow { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .hero--scene .sc-tab { transition:none; }
  .hero--scene .sc-tab:hover { transform:none; }
}
