/* 1RoboMarket — раздел «Решения»: хаб solutions.html и восемь отраслевых страниц solutions-*.html.
   Подключать после css/styles.css и css/catalog.css.
   Хаб: ночной первый экран с двумя роботами разного масштаба, бенто из восьми отраслей с перекрытием, шаги подбора.
   Отрасль: светлый первый экран с роботом и задачами по зонам, «боли» в панели с перекрытием,
   расписание проходов, зоны объекта (H3), роль типов роботов, стартовые модели, экономика, кейс или сценарий пилота. */

/* ================= хаб ================= */

/* ---------- ночной первый экран: два робота разного масштаба ---------- */
.hub-hero {
  --overlap: 0px; /* блоки не наезжают на первый экран (правка 13.10.2026) */
  overflow: hidden;
  padding-bottom: calc(clamp(40px, 5vw, 72px) + var(--overlap));
}
.hub-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.1rem + 3vw, 4rem); }
.hub-hero .hero-page__lead { max-width: 54ch; }
@media (min-width: 960px) {
  .hub-hero .hero-page__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

.hub-duo {
  position: relative;
  justify-self: center;
  width: min(100%, 580px);
  aspect-ratio: 1.22 / 1;
}
.hub-duo__podium {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 5%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 70% at 50% 36%, #FFFFFF 0%, var(--c-lavender-tile) 46%, color-mix(in srgb, var(--c-lavender-tile), var(--c-violet) 26%) 100%);
  box-shadow: 0 30px 70px -24px rgba(113, 55, 237, .6);
}
.hub-duo__robot { position: absolute; bottom: 14%; }
.hub-duo__robot--small { left: 10%; height: 50%; z-index: 2; }
.hub-duo__robot--big { right: 10%; height: 78%; z-index: 1; }
.hub-duo__tag {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  max-width: 214px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-md);
  background: var(--c-night-raised);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55);
  color: var(--c-on-night-muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.hub-duo__tag b { color: var(--c-surface); font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.hub-duo__tag--small { left: 0; top: 6%; }
.hub-duo__tag--big { right: 0; bottom: 0; }
@media (max-width: 639px) {
  .hub-duo { aspect-ratio: 1.05 / 1; }
  .hub-duo__tag { max-width: 48%; padding: 9px 11px; font-size: .75rem; }
  .hub-duo__tag b { font-size: .875rem; }
}

/* ---------- бенто из восьми отраслей: каждая плитка — раздел с H2 ---------- */
.ind-bento {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--sec-space); /* общий шаг между блоками (правка 13.10.2026) */
}
.ind-tile {
  position: relative;
  display: grid;
  gap: 20px 28px;
  align-content: start;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-rest);
}
.ind-tile--lavender { background: var(--c-lavender-tile); box-shadow: none; }
.ind-bento > .ind-tile:first-child { box-shadow: 0 2px 4px rgba(20, 18, 43, .08), 0 28px 56px -20px rgba(20, 18, 43, .35); }
.ind-tile__copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ind-tile h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); max-width: 16ch; scroll-margin-top: 120px; }
.ind-tile__zones { color: var(--c-violet-deep); }
.ind-tile__text { color: var(--c-ink-muted); line-height: 1.55; max-width: 58ch; }
.ind-tile__models { display: grid; gap: 8px; margin-top: 4px; }
.ind-tile__models .t-label { color: var(--c-ink-muted); }
.ind-tile--lavender .mchips span { box-shadow: inset 0 0 0 1px rgba(113, 55, 237, .22); }
.ind-tile__go { align-self: flex-start; margin-top: 2px; }
.ind-tile__robot { justify-self: center; align-self: end; width: min(64%, 240px); }
@media (max-width: 719px) {
  .ind-tile__robot { width: min(44%, 170px); margin-top: 4px; }
}
@media (min-width: 720px) {
  .ind-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-tile--wide { grid-column: span 2; }
  .ind-tile--wide.ind-tile--object { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: start; } /* текст сверху, как у соседних плиток; робот внизу (align-self: end) — polish 14.10.2026, пункт 86 */
  .ind-tile--wide .ind-tile__robot { width: min(100%, 250px); margin-top: 24px; }
}
@media (min-width: 1100px) {
  .ind-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
  .ind-tile--tall { grid-row: span 2; grid-template-rows: auto 1fr; }
  .ind-tile--tall .ind-tile__robot { width: min(78%, 270px); }
}

/* ---------- шаги подбора и пилота ---------- */
.steps__out { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: .875rem; line-height: 1.45; color: var(--c-ink); }
.steps__out b { color: var(--c-violet-deep); font-weight: 650; }
@media (min-width: 1100px) { .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hub-lead { margin-top: var(--sec-space); }
.hub-lead__title { color: var(--c-surface); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); max-width: 14ch; }

/* ================= отраслевая страница ================= */

/* ---------- первый экран: робот на подиуме и задачи по зонам ---------- */
.ind-hero h1 { max-width: 19ch; }
.ind-object { position: relative; justify-self: center; width: min(100%, 560px); }
.ind-stage { position: relative; aspect-ratio: 1.22 / 1; }
.ind-stage__podium {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 4%;
  height: 27%;
  border-radius: 50%;
  background: radial-gradient(ellipse 72% 70% at 50% 36%, #FFFFFF 0%, #F8F6FF 50%, #DED6FA 100%);
  box-shadow: 0 28px 56px -26px rgba(90, 34, 211, .55);
}
.ind-stage__robot { position: absolute; left: 50%; bottom: 13%; z-index: 1; height: 82%; max-width: 74%; translate: -50% 0; }
.ind-stage__robot--wide { height: auto; width: 80%; max-width: none; bottom: 17%; }
.ind-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ind-tag {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-lift);
  color: var(--c-ink-muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.ind-tag b { color: var(--c-ink); font-family: var(--font-display); font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.ind-object__caption { margin-top: 12px; color: var(--c-ink-muted); font-size: .8125rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.ind-object__caption a { color: var(--c-ink); font-weight: 650; }
@media (min-width: 640px) {
  .ind-tags { position: absolute; inset: 0; z-index: 2; display: block; margin: 0; pointer-events: none; }
  .ind-tag { position: absolute; max-width: 212px; pointer-events: auto; }
  .ind-tag--1 { left: 0; top: 4%; }
  .ind-tag--2 { right: 0; top: 44%; }
}

/* ---------- задачи и боли: четыре колонки в панели с перекрытием ---------- */
.pains { display: grid; }
.pains__item { display: grid; gap: 8px; align-content: start; padding: 18px 0; border-top: 1px solid var(--c-line); }
.pains__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.pains__text { color: var(--c-ink-muted); font-size: .9688rem; line-height: 1.55; }
.pains__need { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-size: .9063rem; font-weight: 550; line-height: 1.45; }
.pains__need::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-aqua) var(--i-check-ink) center / 13px no-repeat;
}
@media (min-width: 720px) {
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1200px) {
  .pains { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .pains__item { padding: 4px 24px 4px; border-top: 0; border-left: 1px solid var(--c-line); }
  .pains__item:first-child { padding-left: 0; border-left: 0; }
  .pains__item:last-child { padding-right: 0; }
}

/* ---------- расписание проходов (.sched): одна серия (робот), сетка по 6 часов ---------- */
.sched { margin: 0; padding: var(--panel-pad); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-rest); }
.sched__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.sched__rows { display: grid; gap: 12px; }
.sched__row,
.sched__scale { display: grid; grid-template-columns: clamp(120px, 22%, 250px) minmax(0, 1fr); gap: 6px 20px; align-items: center; }
.sched__zone { font-weight: 650; font-size: .9375rem; line-height: 1.3; }
.sched__track {
  position: relative;
  height: 30px;
  border-radius: var(--r-xs);
  background-color: var(--c-lavender-ground);
  background-image: linear-gradient(90deg, rgba(113, 55, 237, .16) 1px, transparent 1px);
  background-size: 25% 100%;
}
.sched__seg {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: calc(var(--s) / 24 * 100%);
  width: calc((var(--e) - var(--s)) / 24 * 100% - 2px);
  min-width: 6px;
  border-radius: 4px;
  background: var(--c-violet);
}
.sched__seg:hover { background: var(--c-violet-deep); }
.sched__scale { margin-top: 8px; color: var(--c-ink-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.sched__ticks { position: relative; height: 16px; }
.sched__ticks span { position: absolute; top: 0; left: calc(var(--t) / 24 * 100%); translate: -50% 0; white-space: nowrap; }
.sched__ticks span:first-child { translate: 0 0; }
.sched__ticks span:last-child { translate: -100% 0; }
.sched__note { margin-top: 18px; color: var(--c-ink-muted); font-size: .875rem; line-height: 1.5; max-width: 90ch; }
@media (max-width: 639px) {
  .sched__row, .sched__scale { grid-template-columns: minmax(0, 1fr); }
  .sched__scale > span:first-child { display: none; }
  .sched__zone { font-size: .875rem; }
  .sched__track { height: 24px; }
  .sched__seg { top: 5px; bottom: 5px; }
}

/* ---------- зоны объекта: H3 и разделение «робот / персонал» ---------- */
.zones { margin-top: var(--grid-gap); padding: clamp(4px, 1vw, 12px) var(--panel-pad); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-rest); }
.zone { display: grid; gap: 10px 32px; padding: 22px 0; border-top: 1px solid var(--c-line); }
.zone:first-child { border-top: 0; }
.zone h3 { font-size: clamp(1.125rem, 1rem + .45vw, 1.4375rem); }
.zone__when { margin-top: 6px; color: var(--c-violet-deep); font-size: .8125rem; font-weight: 650; line-height: 1.35; }
.zone__do { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; line-height: 1.5; }
.zone__do b { font-weight: 650; color: var(--c-ink); }
.zone__do::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-aqua) var(--i-check-ink) center / 14px no-repeat;
}
.zone__do--crew { color: var(--c-ink-muted); }
.zone__do--crew::before {
  background: var(--c-lavender-tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D5A7A' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 960px) {
  .zone { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 5fr); }
}

/* ---------- роль типов роботов на объекте ---------- */
.types { padding: clamp(8px, 1.6vw, 20px) var(--panel-pad); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--shadow-rest); }
.types__table { width: 100%; border-collapse: collapse; }
.types__table thead th { padding: 12px 16px 12px 0; color: var(--c-ink-muted); font-size: var(--t-label-size); font-weight: var(--t-label-weight); letter-spacing: .03em; text-align: left; }
.types__table tbody th,
.types__table td { padding: 18px 18px 18px 0; border-top: 1px solid var(--c-line); vertical-align: top; text-align: left; font-size: .9688rem; line-height: 1.5; }
.types__table tbody th { width: 23%; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.types__table td.types__role { width: 17%; }
.types__table td.types__where { width: 27%; }
.types__table td.types__why { color: var(--c-ink-muted); }
.types__row--no th { color: var(--c-ink-muted); }
.verdict { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.verdict--main { background: var(--c-violet); color: var(--c-surface); }
.verdict--part { background: var(--c-surface); color: var(--c-violet-deep); box-shadow: inset 0 0 0 1.5px rgba(113, 55, 237, .5); }
.verdict--no { background: var(--c-lavender-tile); color: var(--c-ink-muted); }
@media (max-width: 759px) {
  .types__table, .types__table tbody, .types__table tr, .types__table th, .types__table td { display: block; }
  .types__table thead { display: none; }
  .types__table tr { padding: 16px 0; border-top: 1px solid var(--c-line); }
  .types__table tbody tr:first-child { border-top: 0; }
  .types__table tbody th, .types__table td { width: auto !important; padding: 0; border: 0; }
  .types__table td { margin-top: 10px; }
  .types__table td.types__where::before,
  .types__table td.types__why::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--c-ink-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
  }
}

/* ---------- стартовые модели: обе строки описания карточки — серые .mcard__type, как в каталоге (polish 14.10.2026, пункт 85, выбор В; класс .mcard__fit убран) ---------- */
.fit-more {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: var(--panel-pad); /* один отступ панелей (polish 14.10.2026, пункт 38) */
  border-radius: var(--r-xl);
  background: var(--c-lavender-tile);
}
.fit-more__text { color: var(--c-ink-muted); line-height: 1.55; max-width: 52ch; }
.fit-more .link-more { justify-self: start; white-space: normal; }
@media (min-width: 900px) { .fit-more--wide { grid-column: span 2; } }
.fit-foot { margin-top: clamp(20px, 2.4vw, 32px); color: var(--c-ink-muted); line-height: 1.55; max-width: 84ch; }
.fit-foot a { font-weight: 600; }

/* ---------- экономика: «сейчас» и «с роботом» ---------- */
.econ__cols { display: grid; gap: 20px 32px; margin-top: 4px; }
.econ__k { margin-bottom: 10px; color: var(--c-ink-muted); font-size: var(--t-label-size); font-weight: 600; letter-spacing: .03em; }
.econ__list { display: grid; gap: 8px; }
.econ__list li { position: relative; padding-left: 20px; line-height: 1.45; }
.econ__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-violet); }
.econ__list--now li::before { background: var(--c-surface); box-shadow: inset 0 0 0 2px var(--c-ink-muted); }
.econ__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: auto; }
@media (min-width: 640px) { .econ__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- кейс или сценарий пилота ---------- */
.case { display: grid; gap: 20px; padding: var(--panel-pad); border-radius: var(--r-xl); background: var(--c-lavender-tile); }
.case__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.case__status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-violet-deep); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.case__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-violet); }
.case__status--check::before { background: var(--c-surface); box-shadow: inset 0 0 0 2px var(--c-violet); }
.case__rows { display: grid; border-top: 1px solid rgba(113, 55, 237, .2); }
.case__rows > div { display: grid; gap: 4px 32px; padding: 14px 0; border-bottom: 1px solid rgba(113, 55, 237, .2); }
.case__rows dt { color: var(--c-ink-muted); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.case__rows dd { line-height: 1.55; max-width: 76ch; }
.case__figs { display: grid; gap: 6px; }
.case__figs .t-data { margin-right: 6px; }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; color: var(--c-ink-muted); font-size: .875rem; line-height: 1.5; }
.case__foot .link-more { font-size: 1rem; }
@media (min-width: 760px) {
  .case__rows > div { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
}

/* ---------- ночная полоса: подпись под подиумом, а не поверх него ---------- */
.nband--object .nband__object { margin-bottom: 28px; }
.nband--object .nband__caption { bottom: -30px; }

/* ---------- хаб «Решения»: светлый первый экран, заголовок «Выберите свой сценарий» из прототипа, бенто — все плитки белые (13.10.2026) ---------- */
.hub-hero.hero-page--tile h1 { color: var(--c-ink); }
.ind-hub-head { margin-top: var(--sec-space); }
.ind-hub-head + .ind-bento { margin-top: 0; }
.ind-bento > .ind-tile:first-child { box-shadow: var(--shadow-rest); }
/* Плитки отраслей: компактнее, вся плитка — ссылка, отклик при наведении (13.10.2026) */
.ind-tile { padding: clamp(20px, 2vw, 28px); gap: 16px 24px; transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.ind-tile h2 { font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); line-height: 1.15; }
.ind-tile__text { font-size: .9375rem; }
.ind-tile__copy { gap: 10px; }
.ind-tile__robot { width: min(52%, 190px); transition: transform .45s var(--ease-out); }
@media (min-width: 720px) { .ind-tile--wide .ind-tile__robot { width: min(100%, 200px); margin-top: 12px; } }
@media (min-width: 1100px) { .ind-tile--tall .ind-tile__robot { width: min(62%, 210px); } }
.ind-tile__go::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ind-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.ind-tile:hover .ind-tile__robot { transform: translateY(-6px); }
.ind-tile:hover .ind-tile__go { background: var(--c-aqua-deep); } /* как у карточек на главной */
.ind-tile:has(.ind-tile__go:focus-visible) { outline: 2px solid var(--c-violet); outline-offset: 3px; }
@media (min-width: 720px) { .ind-bento > .ind-tile--wide:last-child .ind-tile__robot { width: min(100%, 150px); } }

/* ---------- polish 14.10.2026: хаб на планшете — плитка «Торговые центры» во всю ширину, как широкие, робот справа; без пустой колонки рядом (пункт 84) ---------- */
@media (min-width: 720px) and (max-width: 1099px) {
  .ind-tile--tall { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); }
  .ind-tile--tall .ind-tile__robot { width: min(100%, 180px); margin-top: 12px; }
}
/* ---------- polish 14.10.2026: фильтр моделей — счётчик на одной линии с чипом, без лишнего отступа снизу панели (пункт 87) ---------- */
.mfilter .mgrid__count { margin: 0; }
/* ---------- polish 14.10.2026: единственная плашка под роботом на телефоне — во всю ширину (пункт 88) ---------- */
@media (max-width: 639px) {
  .ind-tag:only-child { grid-column: 1 / -1; }
}
/* ---------- polish 14.10.2026: хаб — круглые стрелки прижаты к низу плитки, в ряду стоят на одной линии (пункт 89, выбор А) ---------- */
.ind-tile { align-content: stretch; }
.ind-tile__copy { align-self: stretch; }
.ind-tile__go { margin-top: auto; }
/* высокая плитка «Торговые центры»: текст сверху, робот, стрелка внизу — на одной линии со стрелкой соседней плитки «Склады» */
@media (min-width: 1100px) {
  .ind-tile--tall { grid-template-rows: auto auto 1fr auto; row-gap: 10px; }
  .ind-tile--tall .ind-tile__copy { display: contents; }
  .ind-tile--tall .ind-tile__robot { grid-row: 3; margin-block: 14px; }
  .ind-tile--tall .ind-tile__go { grid-row: 4; }
}
