/* GR Unionprom: дополнения к общим стилям gr-aluprom.ru (assets/site.css берётся из
   webapp/site). Вид тот же (запрос 13.11.2026): синий акцент интерфейса, Onest, тёмный
   первый экран со схемой, светлые карточки со схемами. Кирпичный #A4302A — только в
   логотипе (цвет направления, не для кнопок). */

/* Подпись над заголовком раздела */
.up-eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.up-hero .line-eyebrow { margin-bottom: 14px; }

/* Первый экран: схема станка неподвижная, во весь кадр */
.up-hero-fig .hero-press-view { aspect-ratio: 16 / 11; }
.up-hero-fig .iso-svg { display: block; width: 100%; height: 100%; }

/* Карточки тем. Металлообработка: первая (лазер) — на две колонки. */
.up-topics { padding-top: 88px; }
.up-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.up-card .dir-scheme { aspect-ratio: 16 / 10; object-fit: contain; padding: 18px 22px; }
.up-card-wide { grid-column: span 2; }
.up-card-wide .dir-scheme { aspect-ratio: auto; height: 100%; max-height: 330px; }
.up-card .dir-title { font-size: 1.4rem; }
.up-card-wide .dir-title { font-size: 1.75rem; }
.up-card .dir-body { flex: 1; padding: 22px 24px 26px; }
.up-card .dir-link { margin-top: auto; padding-top: 6px; }
.up-industries { background: var(--surface-2); }
.up-industries .dir { box-shadow: none; }

/* Как проходит поставка: семь шагов с номерами; под заголовком — подзаголовок поменьше */
.up-subtitle { margin-top: 10px; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.up-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px;
}
.up-step { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 28px; border-top: 1px solid var(--line); }
.up-step-num { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.up-step h3 { font-size: 1.15rem; }
.up-step p { color: var(--muted); font-size: 16px; }

.up-stats { padding: 0 0 88px; }
.up-stats-list { margin-top: 0; }

@media (max-width: 1080px) {
  .up-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .up-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-card-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .up-topics { padding-top: 64px; }
  .up-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .up-card-wide { grid-column: auto; }
  .up-card-wide .dir-scheme { aspect-ratio: 16 / 10; height: auto; }
  .up-card-wide .dir-title { font-size: 1.4rem; }
  .up-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Тёмная схема первого экрана: искры у точки реза и лист металла (светлые — в самих
   картинках-схемах, figure/parts.mjs) */
.line .ln-spark { fill: none; stroke: #e8641c; stroke-width: .7px; stroke-linecap: round; }
.line .up-sheet {
  --anatomy-paper: #1a2433; --anatomy-face: #233044; --anatomy-top: #2c3b52;
  --anatomy-shade-0: #1d2838; --anatomy-shade-1: #212d3f; --anatomy-shade-2: #253246; --anatomy-shade-3: #29374d;
  --anatomy-hi: #c3cfde; --anatomy-faint: #364660;
}

/* Схема, встроенная в разметку (assets/unionprom.js), — тех же размеров, что картинка */
.up-card svg.dir-scheme {
  display: block; flex: none; width: 100%; height: auto; min-height: 0;
  aspect-ratio: 16 / 10; padding: 18px 22px; box-sizing: border-box; background: var(--surface-2);
}
.up-card-wide svg.dir-scheme { aspect-ratio: auto; height: 100%; max-height: 330px; }
@media (max-width: 640px) {
  .up-card-wide svg.dir-scheme { aspect-ratio: 16 / 10; height: auto; }
}

/* Станок работает (наведение, .is-playing): искры у точки реза и сварки мерцают.
   Сами ходы деталей — ключевые кадры внутри каждой схемы (figure/parts.mjs). */
@keyframes up-flick { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.is-playing .ln-spark { animation: up-flick .18s steps(1, end) infinite; }
.up-card { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .is-playing .mv, .is-playing .ln-spark { animation: none !important; }
}

/* Менеджеры: номер, рядом имя, под ними почта */
.contact-phone { display: flex; flex-wrap: wrap; column-gap: 6px; }
.contact-name { color: var(--muted); }
.contact-email { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.contact-phone + .contact-phone { margin-top: 6px; }
