/* /uslugi/servicedesk/updates/1-6/ — страница выпуска сервис-деска 1.6.
   Скоуп .sdu, чтобы не задеть шаблон. Токены — нейтральная часть Linear из docs/ux/ВИД-LINEAR-В-1С.md §4:
   рамка #e7e8ec, текст #17181a / #62666d, радиус 10. Синий акцент продукта (#5e6ad2) НЕ используем:
   на rial-soft.ru прямой запрет заказчика на синий, кнопки сайта тёмные. Синий живёт только внутри снимков. */

.sdu {
  --ink: #17181a;
  --mut: #62666d;
  --bd: #e7e8ec;
  --pan: #f7f8f9;
  --r: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
}
.sdu * { box-sizing: border-box; }
.sdu h1, .sdu h2, .sdu h3 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
.sdu h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; }
.sdu h2 { font-size: clamp(23px, 2.6vw, 33px); line-height: 1.2; }
.sdu h3 { font-size: 18px; line-height: 1.3; }
.sdu p { margin: 12px 0 0; color: var(--mut); }
.sdu a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sdu a:visited { color: var(--ink); }
.sdu a:hover { text-decoration-thickness: 2px; }

.sdu-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sdu-wrap--narrow { max-width: 740px; }
.sdu > section { padding: clamp(46px, 7vw, 86px) 0; }
.sdu-more, .sdu-day { background: var(--pan); }

.sdu-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mut);
}

/* первый экран */
.sdu-hero { padding-top: clamp(34px, 5vw, 64px) !important; }
.sdu-hero .sdu-lead { max-width: 720px; font-size: clamp(17px, 1.6vw, 20px); }
.sdu-lead { color: var(--mut); }

/* кнопки — тёмные, как везде на сайте */
.sdu-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sdu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff !important; text-decoration: none !important;
  font-size: 15px; font-weight: 550; transition: background .15s, color .15s, border-color .15s;
}
.sdu-btn:hover { background: #000; border-color: #000; color: #fff !important; }
.sdu-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--bd); }
.sdu-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.sdu-arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* блок «текст + снимок» */
.sdu-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sdu-row + .sdu-row { margin-top: clamp(44px, 6vw, 84px); }
.sdu-row__t { min-width: 0; }
.sdu-row--rev .sdu-row__t { order: 2; }

/* снимок */
.sdu-shot { margin: 0; min-width: 0; }
.sdu-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--bd); border-radius: var(--r); box-shadow: 0 1px 2px rgba(23,24,26,.04), 0 12px 32px rgba(23,24,26,.07); }
.sdu-hero .sdu-shot { margin-top: clamp(30px, 4vw, 54px); }
.sdu-shot--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 210px; padding: 26px; text-align: center;
  border: 1px dashed var(--bd); border-radius: var(--r); background: var(--pan);
}
.sdu-shot--wide.sdu-shot--empty { min-height: 300px; }
.sdu-shot__t { font-size: 14px; font-weight: 600; color: var(--mut); }
.sdu-shot__d { font-size: 13px; color: var(--mut); opacity: .8; max-width: 440px; }

/* сетка коротких карточек */
.sdu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.sdu-card { padding: 22px; background: #fff; border: 1px solid var(--bd); border-radius: var(--r); }
.sdu-card p { font-size: 15px; }

/* день обновления */
.sdu-day .sdu-lead { max-width: 680px; margin-top: 10px; }
.sdu-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.sdu-step { padding: 22px; background: #fff; border: 1px solid var(--bd); border-radius: var(--r); }
.sdu-step b { display: block; font-size: 16px; font-weight: 650; }
.sdu-step p { font-size: 15px; }

.sdu-note { font-size: 15px; }
.sdu-note b { color: var(--ink); }
.sdu-end p { font-size: 16px; }

@media (max-width: 900px) {
  .sdu-grid, .sdu-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sdu { font-size: 16px; }
  .sdu-row { grid-template-columns: 1fr; }
  .sdu-row--rev .sdu-row__t { order: 0; }
  .sdu-grid, .sdu-steps { grid-template-columns: 1fr; }
  .sdu-btns .sdu-btn { flex: 1 1 100%; justify-content: center; }
}

/* пара «было/стало» — появляется, только когда есть оба кадра */
.sdu-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.sdu-pair .sdu-shot { display: flex; flex-direction: column; gap: 8px; }
.sdu-pair figcaption { font-size: 13px; font-weight: 600; color: var(--mut); }
.sdu-pair .sdu-shot:last-child figcaption { color: var(--ink); }
@media (max-width: 760px) { .sdu-pair { grid-template-columns: 1fr; } }

