/* =========================================================
   Публикация в электронной методической библиотеке — 2026 (portalpedagoga.ru)
   ========================================================= */

.si-page { max-width: 1064px; margin: 0 auto; }

/* кнопки прокрутки на этой странице не нужны */
.s2026-scroll { display: none !important; }

/* ---------- шапка ---------- */
.si-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.si-crumbs a { color: var(--brand); text-decoration: none; }
.si-crumbs a:hover { text-decoration: underline; }
.si-crumbs span { opacity: .5; }

.si-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.si-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.s2026-main .si-page .si-head h1 {
  margin: 10px 0 10px;
  font-family: var(--font);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--heading);
}
.si-lead {
  max-width: 68ch;
  margin: 0;
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- факты ---------- */
.s2026-main .si-page .si-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.s2026-main .si-page .si-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.si-facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bg);
}
.si-facts li:first-child::before { background: var(--yellow); }

/* ---------- раскладка ---------- */
.si-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
  margin-top: clamp(20px, 3vw, 30px);
}
.si-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- карточка образцов ---------- */
.si-docs { position: sticky; top: 18px; }
.si-docs__card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.si-docs__bar {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--tint-5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.s2026-main .si-page .si-docs__list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.s2026-main .si-page .si-docs__list li { margin: 0; }
/* селектор сильнее глобального правила .s2026-main:not(...) button из site-2026.css */
.s2026-main .si-page .si-docs .si-doc {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  background-image: none;
  color: var(--text) !important;
  font: inherit;
  font-weight: 400;
  text-align: left;
  text-shadow: none;
  cursor: pointer;
  box-shadow: none;
  filter: none;
  transition: border-color .15s ease, background .15s ease;
}
.s2026-main .si-page .si-docs .si-doc:hover {
  border-color: var(--brand);
  background: var(--tint-2);
  filter: none;
}
.s2026-main .si-page .si-docs .si-doc:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .18);
}
.si-doc img {
  display: block;
  width: 68px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(23, 58, 82, .18);
  background: #fff;
}
.si-doc__body { min-width: 0; }
.si-doc__body b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.si-doc__body span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.si-docs__hint {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* ---------- блоки ---------- */
.si-block {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.s2026-main .si-page .si-block h2 {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}

/* ---------- обращение ---------- */
.si-quote {
  background: linear-gradient(180deg, var(--tint-2), var(--surface) 70%);
  border-left: 4px solid var(--brand);
}
.s2026-main .si-page .si-quote b {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading);
}
.s2026-main .si-page .si-quote p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- шаги ---------- */
.s2026-main .si-page .si-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: si-step;
  display: grid;
  gap: 18px;
}
.s2026-main .si-page .si-steps > li {
  position: relative;
  margin: 0;
  padding-left: 46px;
  counter-increment: si-step;
}
.s2026-main .si-page .si-steps > li::before {
  content: counter(si-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint-3);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.s2026-main .si-page .si-steps > li > b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.s2026-main .si-page .si-steps p {
  margin: 3px 0 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- inline-ссылки ---------- */
.s2026-main .si-page .si-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand) !important;
  text-decoration: none !important;
}
.s2026-main .si-page .si-link:hover { text-decoration: underline !important; }
.s2026-main .si-page .si-link span { font-size: 15px; line-height: 1; }

/* ---------- кнопки ---------- */
.si-cta {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--tint-2), var(--surface));
  box-shadow: var(--shadow-sm);
}
.s2026-main .si-page a.si-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px !important;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand-bg);
  background-image: none !important;
  color: #ffffff !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.s2026-main .si-page a.si-btn:hover {
  background: var(--brand-bg-hover);
  border-color: var(--brand-d);
  box-shadow: 0 6px 16px rgba(30, 98, 141, .2);
}
.s2026-main .si-page a.si-btn--primary {
  background: #1e628d !important;
  border-color: #1e628d !important;
}
.s2026-main .si-page a.si-btn--primary:hover {
  background: #154a6b !important;
  border-color: #154a6b !important;
}
.s2026-main .si-page a.si-btn--ghost {
  background: var(--surface) !important;
  border-color: var(--line);
  color: var(--brand) !important;
}
.s2026-main .si-page a.si-btn--ghost:hover {
  border-color: var(--brand);
  background: var(--tint-2) !important;
}
.s2026-main .si-page a.si-btn--inline {
  display: inline-flex;
  width: auto;
  min-width: 260px;
  max-width: 100%;
  margin-top: 4px;
}
.si-cta__note {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* тёмная тема: правило сайта красит все ссылки в --brand важным приоритетом */
html[data-theme="dark"] .s2026-main .si-page a.si-btn { color: #ffffff !important; }
html[data-theme="dark"] .s2026-main .si-page a.si-btn {
  background: #1f5d85 !important;
  border-color: #1f5d85 !important;
}
html[data-theme="dark"] .s2026-main .si-page a.si-btn:hover {
  background: #184a69 !important;
  border-color: #184a69 !important;
}
html[data-theme="dark"] .s2026-main .si-page a.si-btn--primary { background: #1f5d85 !important; border-color: #1f5d85 !important; }
html[data-theme="dark"] .s2026-main .si-page a.si-btn--ghost {
  background: var(--surface) !important;
  border-color: #2e4a5e !important;
  color: #a9d6ef !important;
}
html[data-theme="dark"] .s2026-main .si-page a.si-btn--ghost:hover {
  background: var(--tint-2) !important;
  border-color: #6fb8e2 !important;
  color: #c9e7f8 !important;
}

/* ---------- рецензия ---------- */
.si-promo {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid #f0d27a;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff7dd, #fffdf7);
}
.si-promo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.si-promo__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--yellow);
  color: #173a52;
}
.si-promo__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s2026-main .si-page .si-promo__head b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #204964;
}
.s2026-main .si-page .si-promo p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1d2f3c;
}
html[data-theme="dark"] .si-promo {
  border-color: #57451a;
  background: linear-gradient(180deg, #26210f, #1d1b12);
}
html[data-theme="dark"] .s2026-main .si-page .si-promo__head b { color: #f4e6bd; }
html[data-theme="dark"] .s2026-main .si-page .si-promo p { color: #e6eef4; }

/* ---------- материалы библиотеки ---------- */
.s2026-main .si-page .si-archive p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- благодарственное письмо ---------- */
.si-thanks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid #f0d27a;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff7dd, #fffdf7);
}
.si-thanks b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #204964;
}
.si-thanks span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: #1d2f3c;
}
.s2026-main .si-page .si-thanks a.si-btn {
  width: auto;
  min-width: 190px;
  flex: 0 0 auto;
}
html[data-theme="dark"] .si-thanks {
  border-color: #57451a;
  background: linear-gradient(180deg, #26210f, #1d1b12);
}
html[data-theme="dark"] .si-thanks b { color: #f4e6bd; }
html[data-theme="dark"] .si-thanks span { color: #e6eef4; }

/* ---------- модальный просмотр ---------- */
.si-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 16, 24, .84);
}
.si-modal[hidden] { display: none; }
.si-modal img {
  max-width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.si-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #173a52;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.si-modal__close:hover { background: #ffffff; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .si-layout { grid-template-columns: minmax(0, 1fr); }
  .si-main { order: 1; }
  .si-docs { position: static; order: 2; }
  .si-docs__list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 560px) {
  .si-kicker { font-size: 10.5px; letter-spacing: .08em; }
  .s2026-main .si-page a.si-btn { font-size: 14px !important; padding: 11px 12px !important; }
  .si-block, .si-cta, .si-thanks, .si-promo { padding: 16px; border-radius: 14px; }
  .si-docs__list { grid-template-columns: 1fr; }
  .si-facts { gap: 6px; }
  .si-facts li { font-size: 12.5px; padding: 6px 11px; }
  .si-thanks { flex-direction: column; align-items: stretch; }
  .s2026-main .si-page .si-thanks a.si-btn { width: 100%; }
  .s2026-main .si-page a.si-btn--inline { width: 100%; min-width: 0; }
  .si-modal { padding: 14px; }
}
