/* ============================================================
   Lcom — техпідтримка й документи.
   Спільний файл для /tehnichna-pidtrymka, /dokumenty і /doc/*.
   Префікс класів: sup-  (support / документи).
   Кольори й типографіка — тільки токени з site.css.
   Підключається <link> у тілі сторінки: build.js шукає css
   за іменем сторінки, а тут один файл на чотири адреси.
   ============================================================ */

/* шапка розділу: h1 + підзаголовок */
.sup-hd .lead{margin-top:16px}
/* секція, що йде одразу за шапкою, не дублює верхній відступ */
.sup-flush{padding-top:0}

/* ---------- двоколонковий макет: бокова навігація + текст ---------- */
.sup-layout{display:grid;grid-template-columns:264px minmax(0,1fr);gap:44px;align-items:start}
.sup-side{position:sticky;top:calc(var(--header-h) + 22px);display:flex;
  flex-direction:column;gap:18px}
.sup-main{min-width:0}

/* ---------- бокова навігація ---------- */
.sup-nav{border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;background:#fff}
.sup-nav__cap{font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-4);margin:0 0 8px;padding:0 10px}
.sup-nav__cap + .sup-nav__cap,.sup-nav ul + .sup-nav__cap{margin-top:16px}
.sup-nav ul{list-style:none;margin:0;padding:0}
.sup-nav a{display:block;padding:8px 10px;border-radius:10px;font-size:14px;
  font-weight:500;color:var(--ink-2);line-height:1.35}
.sup-nav a:hover{background:var(--soft);color:var(--ink)}
.sup-nav a.is-cur{background:var(--indigo-soft);color:var(--indigo);font-weight:600}

/* картка допомоги під навігацією */
.sup-aside-help{padding:20px}
.sup-aside-help h3{font-size:16px;margin-bottom:8px}
.sup-aside-help .btn{margin-top:12px}

/* ---------- групи інструкцій ---------- */
.sup-group + .sup-group{margin-top:52px}
.sup-group__head{margin-bottom:22px}
.sup-group__head h2{font-size:clamp(23px,2.6vw,30px)}

/* ---------- акордеон інструкції ---------- */
.sup-item{border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;
  transition:box-shadow .3s var(--ease),border-color .3s var(--ease)}
.sup-item + .sup-item{margin-top:12px}
.sup-item.is-open{border-color:var(--line-2);box-shadow:var(--shadow-1)}
.sup-item__h{margin:0}
.sup-item__btn{display:flex;width:100%;align-items:center;gap:14px;padding:19px 22px;
  text-align:left;font-size:17px;font-weight:700;letter-spacing:-.02em;color:var(--ink);
  border-radius:var(--r-lg)}
.sup-item__btn:hover{color:var(--indigo)}
.sup-item__num{flex:none;font-family:var(--mono);font-size:11px;font-weight:500;
  letter-spacing:.06em;color:var(--ink-4)}
.sup-item__ico{flex:none;margin-left:auto;width:26px;height:26px;border-radius:50%;
  background:var(--soft);display:grid;place-items:center;color:var(--ink-2);
  transition:transform .3s var(--ease),background .2s var(--ease)}
.sup-item__ico svg{width:14px;height:14px}
.sup-item.is-open .sup-item__ico{transform:rotate(180deg);background:var(--indigo-soft);color:var(--indigo)}
.sup-item__body{padding:2px 22px 26px}
.sup-item__body > :first-child{margin-top:0}

/* якірне посилання на інструкцію */
.sup-anchor{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;
  font-family:var(--mono);font-size:11px;letter-spacing:.06em;color:var(--ink-4)}
.sup-anchor:hover{color:var(--indigo)}
.sup-anchor svg{width:13px;height:13px}

/* ---------- нумеровані кроки ---------- */
.sup-steps{list-style:none;counter-reset:supstep;margin:0;padding:0}
.sup-steps > li{position:relative;counter-increment:supstep;padding:0 0 20px 46px}
.sup-steps > li:last-child{padding-bottom:0}
.sup-steps > li::before{content:counter(supstep);position:absolute;left:0;top:-1px;
  width:30px;height:30px;border-radius:50%;background:var(--indigo-soft);color:var(--indigo);
  font-family:var(--mono);font-size:13px;font-weight:500;display:grid;place-items:center}
.sup-steps > li:not(:last-child)::after{content:"";position:absolute;left:14px;top:36px;
  bottom:2px;width:1px;background:var(--line)}
.sup-steps p{margin-bottom:10px}
.sup-steps strong{font-weight:700;color:var(--ink)}

/* підзаголовок усередині інструкції */
.sup-sub{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.12em;
  text-transform:uppercase;color:var(--orange);margin:28px 0 14px}
.sup-item__body > .sup-sub:first-child{margin-top:0}

/* фінальна репліка інструкції */
.sup-done{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:14px 16px;
  border-radius:var(--r-sm);background:var(--ok-soft);color:var(--ok);
  font-size:14px;font-weight:600}
.sup-done svg{width:17px;height:17px;flex:none;margin-top:1px}
.sup-done span{color:var(--ok)}

/* ---------- панель керування акордеоном ---------- */
.sup-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}

/* мобільний селект розділів */
.sup-jump{display:none}

/* ---------- контакти підтримки ---------- */
.sup-contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:14px;
  margin-top:32px}
.sup-tel{display:block;padding:15px 18px;border-radius:var(--r-md);background:#fff;
  border:1px solid var(--line);transition:border-color .2s var(--ease),transform .2s var(--ease)}
.sup-tel:hover{border-color:var(--ink-4);transform:translateY(-2px)}
.sup-tel__op{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.08em;
  color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-tel__num{display:block;font-size:19px;font-weight:700;letter-spacing:-.02em;
  color:var(--ink);margin-top:4px;white-space:nowrap}
.sup-tel--mail .sup-tel__num{font-size:15px;letter-spacing:0;overflow-wrap:anywhere;
  white-space:normal}
.sup-tel:hover .sup-tel__num{color:var(--indigo)}

/* ---------- хаб документів ---------- */
.sup-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.sup-cat{display:flex;flex-direction:column;height:100%}
.sup-cat h3{margin-bottom:8px}
.sup-cat__list{list-style:none;margin:14px 0 0;padding:0;display:flex;
  flex-direction:column;gap:2px;flex:1}
.sup-cat__list li{border-top:1px solid var(--line)}
.sup-cat__list a{display:flex;align-items:center;gap:10px;padding:11px 0;
  font-size:15px;font-weight:500;color:var(--ink-2)}
.sup-cat__list a:hover{color:var(--indigo)}
.sup-cat__list a::after{content:"\2192";margin-left:auto;color:var(--ink-4);
  transition:transform .25s var(--ease)}
.sup-cat__list a:hover::after{transform:translateX(4px);color:var(--indigo)}

/* перелік файлів, які видаються в офісі */
.sup-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.sup-files li{display:flex;align-items:flex-start;gap:12px;padding:13px 0;
  border-top:1px solid var(--line);font-size:15px}
.sup-files li:first-child{border-top:0}
.sup-files__t{font-weight:600;color:var(--ink);display:block}
.sup-files__n{font-family:var(--mono);font-size:11px;color:var(--ink-4);
  letter-spacing:.03em;display:block;margin-top:3px;word-break:break-all}
.sup-files__ico{flex:none;width:34px;height:34px;border-radius:9px;background:var(--soft);
  display:grid;place-items:center;color:var(--ink-4)}
.sup-files__ico svg{width:16px;height:16px}

/* ---------- юридичний документ ---------- */
.sup-doc-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.sup-legal{max-width:74ch}
.sup-doc-sec + .sup-doc-sec{margin-top:44px}
.sup-doc-sec h2{font-size:clamp(21px,2.4vw,27px);padding-bottom:14px;margin-bottom:18px;
  border-bottom:1px solid var(--line)}
.sup-legal p{font-size:15.5px;line-height:1.7;color:var(--ink-2);margin-bottom:14px}
.sup-legal .sup-lv3{padding-left:22px}
.sup-legal .sup-lead-in{font-weight:600;color:var(--ink)}
.sup-sign{display:grid;gap:4px;padding:18px 20px;border-left:3px solid var(--orange);
  background:var(--soft);border-radius:0 var(--r-sm) var(--r-sm) 0;margin-bottom:26px}
.sup-sign b{font-size:15px}

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  .sup-layout{grid-template-columns:230px minmax(0,1fr);gap:32px}
}
@media (max-width:900px){
  .sup-layout{grid-template-columns:1fr;gap:26px}
  .sup-side{position:static}
  .sup-nav{display:none}
  .sup-jump{display:block}
  .sup-cards{grid-template-columns:1fr}
  .sup-legal{max-width:none}
}
@media (max-width:620px){
  .sup-item__btn{padding:16px 16px;font-size:16px;gap:10px}
  .sup-item__body{padding:0 16px 22px}
  .sup-steps > li{padding-left:38px}
  .sup-steps > li::before{width:26px;height:26px;font-size:12px}
  .sup-steps > li:not(:last-child)::after{left:12px;top:31px}
  .sup-legal .sup-lv3{padding-left:12px}
  .sup-legal p{font-size:15px}
  .sup-group + .sup-group{margin-top:38px}
}
