/* Дополнение к docs.css для страниц-объяснений: карточки разделов,
   скриншоты в рамке, пошаговые списки. Базовая палитра и типографика —
   из docs.css, тут только то, чего там не было. */

header { padding: 54px 0 28px; }
header h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 14px 0 0; }
section { padding: 38px 0 0; }
section > h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 6px; }
.sub { color: var(--ink-2); max-width: 66ch; margin: 10px 0 0; }

/* ---- Оглавление: плитки разделов ---- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 22px; }
.tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 20px; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--buyer); transform: translateY(-2px); }
.tile .ic { font-size: 22px; }
.tile b { display: block; margin: 9px 0 5px; font-size: 17px; font-family: "Bricolage Grotesque", sans-serif; }
.tile span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---- Блок раздела: заголовок + объяснение + картинка ---- */
.feat { border-top: 1px solid var(--line-soft); padding-top: 30px; margin-top: 34px; }
.feat:first-of-type { border-top: 0; }
.feat h3 {
  font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px;
  scroll-margin-top: 76px;
}
.feat h3 .ic { font-size: 22px; }
.feat > p { color: var(--ink-2); max-width: 66ch; margin: 10px 0 0; }
.feat .plain {
  margin-top: 12px; padding: 13px 15px; border-radius: 11px;
  background: var(--buyer-soft); border-left: 3px solid var(--buyer);
  color: var(--ink); font-size: 15px; max-width: 66ch;
}
.feat .plain b { font-family: "IBM Plex Sans", sans-serif; }

/* ---- Пошагово ---- */
ol.steps2 { counter-reset: st; list-style: none; padding: 0; margin: 18px 0 0; max-width: 68ch; }
ol.steps2 li {
  counter-increment: st; position: relative; padding: 0 0 0 40px; margin-bottom: 14px;
  color: var(--ink-2); line-height: 1.55;
}
ol.steps2 li::before {
  content: counter(st); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--buyer); color: var(--ground); font-weight: 700; font-size: 13.5px;
  font-family: "IBM Plex Mono", monospace;
}
ol.steps2 li b { color: var(--ink); }

/* ---- Скриншот в рамке окна ---- */
figure.shot2 { margin: 22px 0 0; }
figure.shot2 .frame {
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
  background: var(--shot-bg); box-shadow: 0 10px 34px rgba(0,0,0,.14);
}
figure.shot2 .bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: var(--shot-surface-2); border-bottom: 1px solid var(--shot-line);
}
figure.shot2 .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--shot-line); }
figure.shot2 .bar em {
  margin-left: 8px; font-style: normal; font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; color: var(--shot-ink-3);
}
figure.shot2 img { display: block; width: 100%; height: auto; }
figure.shot2 figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); max-width: 66ch; }

/* ---- Заметка «на что смотреть» ---- */
.look {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); max-width: 70ch;
}
.look > b { display: block; margin-bottom: 6px; font-family: "Bricolage Grotesque", sans-serif; }
.look ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.look li { margin-bottom: 5px; }

/* ---- Предупреждение о граблях ---- */
.trap {
  margin-top: 14px; padding: 13px 15px; border-radius: 11px; max-width: 68ch;
  background: var(--surface-2); border-left: 3px solid var(--warn);
  color: var(--ink-2); font-size: 15px;
}
.trap b { color: var(--ink); }

/* ---- Мини-оглавление сбоку страницы ---- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface);
}
.toc a:hover { border-color: var(--buyer); color: var(--ink); }

/* ---- Подвал ---- */
footer.foot {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 14.5px;
}
footer.foot a { color: var(--buyer); }

/* ---- Вертикальные скрины телефона: карта гостя ---- */
.phones { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 22px; }
.phone { margin: 0; }
.phone .screen {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #111110; box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.phone img { display: block; width: 100%; height: auto; }
.phone figcaption { margin-top: 9px; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
