/* =========================================================
   Мероприятие онлайн-конкурсов (portalpedagoga.ru)
   ========================================================= */

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

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

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

.oe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.oe-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.oe-badge--type { background: var(--tint-3); border-color: transparent; color: var(--brand); }
.oe-badge--online::before {
  content: "";
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f8a5b;
}
html[data-theme="dark"] .oe-badge--type { background: #1b3648; color: #a9d6ef; }

.s2026-main .oe-page .oe-head h1 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--heading);
  overflow-wrap: break-word;
}

.s2026-main .oe-page .oe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s2026-main .oe-page .oe-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;
}
.oe-facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-bg);
}
.oe-facts li:first-child::before { background: var(--yellow); }

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

/* ---------- блоки ---------- */
.oe-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 .oe-page .oe-block p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.s2026-main .oe-page .oe-block p:last-child { margin-bottom: 0; }
.s2026-main .oe-page .oe-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);
}
.s2026-main .oe-page .oe-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.s2026-main .oe-page .oe-desc p { margin: 0 0 12px; }
.s2026-main .oe-page .oe-desc ul { margin: 0 0 12px; padding-left: 20px; }
.s2026-main .oe-page .oe-desc li { margin-bottom: 6px; line-height: 1.6; }
.s2026-main .oe-page .oe-desc a { color: var(--brand) !important; }

/* положение */
.oe-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.oe-doc__body { min-width: 0; flex: 1 1 320px; }
.oe-doc__body b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--heading);
}
.oe-doc__body span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.oe-doc__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* баллы */
.s2026-main .oe-page .oe-awards {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.s2026-main .oe-page .oe-awards li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: var(--tint-5);
}
.s2026-main .oe-page .oe-awards li:nth-child(1) { border-left-color: #c9a227; }
.s2026-main .oe-page .oe-awards li:nth-child(2) { border-left-color: #7d8f9d; }
.s2026-main .oe-page .oe-awards li:nth-child(3) { border-left-color: #b07a4a; }
.s2026-main .oe-page .oe-awards li:nth-child(4) { border-left-color: var(--line); }
.s2026-main .oe-page .oe-awards b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.s2026-main .oe-page .oe-awards span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.s2026-main .oe-page .oe-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* назад */
.s2026-main .oe-page .oe-back { margin: 0; font-size: 13.5px; }
.s2026-main .oe-page .oe-back a { color: var(--brand) !important; text-decoration: none !important; }
.s2026-main .oe-page .oe-back a:hover { text-decoration: underline !important; }

/* ---------- сайдбар ---------- */
.oe-side { position: sticky; top: 18px; }
.oe-side__card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--tint-2), var(--surface));
  box-shadow: var(--shadow-sm);
}
.oe-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.oe-price span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oe-price b { font-size: 26px; font-weight: 700; color: var(--heading); }

/* ---------- кнопки ---------- */
.s2026-main .oe-page a.oe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px !important;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--brand) !important;
  font-family: var(--font) !important;
  font-size: 14.5px !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 .oe-page a.oe-btn:hover {
  border-color: var(--brand);
  background: var(--tint-2) !important;
}
.s2026-main .oe-page a.oe-btn--primary {
  border-color: #1e628d !important;
  background: #1e628d !important;
  color: #fff !important;
}
.s2026-main .oe-page a.oe-btn--primary:hover {
  background: #154a6b !important;
  border-color: #154a6b !important;
  box-shadow: 0 6px 16px rgba(30, 98, 141, .2);
}
.oe-doc__actions .oe-btn { width: auto; min-width: 150px; }
.oe-side__note {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
html[data-theme="dark"] .s2026-main .oe-page a.oe-btn--primary {
  background: #1f5d85 !important;
  border-color: #1f5d85 !important;
  color: #fff !important;
}
html[data-theme="dark"] .s2026-main .oe-page a.oe-btn {
  border-color: #2e4a5e;
  color: #a9d6ef !important;
}
html[data-theme="dark"] .s2026-main .oe-page a.oe-btn:hover {
  border-color: #6fb8e2;
  color: #c9e7f8 !important;
}

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .oe-layout { grid-template-columns: minmax(0, 1fr); }
  .oe-main { order: 1; }
  .oe-side { position: static; order: 2; }
}
@media (max-width: 560px) {
  .oe-block { padding: 16px; border-radius: 14px; }
  .oe-facts { gap: 6px; }
  .oe-facts li { font-size: 12.5px; padding: 6px 11px; }
  .oe-doc { flex-direction: column; align-items: stretch; }
  /* в колонке flex-basis 320px превращался в высоту и растягивал карточку */
  .oe-doc__body { flex: 0 0 auto; }
  .oe-doc__actions { flex-direction: column; }
  .oe-doc__actions .oe-btn { width: 100%; min-width: 0; }
  .s2026-main .oe-page .oe-awards { grid-template-columns: minmax(0, 1fr); }
}
